Skip to content

Commit

Permalink
chore: Fix linter findings for revive:exported in `plugins/inputs/k…
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-pawel authored and s-r-engineer committed Nov 11, 2024
1 parent 72eefb8 commit 03af908
Show file tree
Hide file tree
Showing 19 changed files with 448 additions and 445 deletions.
6 changes: 4 additions & 2 deletions plugins/inputs/bcache/bcache_notlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ type Bcache struct {
Log telegraf.Logger `toml:"-"`
}

func (*Bcache) SampleConfig() string { return sampleConfig }

func (b *Bcache) Init() error {
b.Log.Warn("current platform is not supported")
b.Log.Warn("Current platform is not supported")
return nil
}
func (*Bcache) SampleConfig() string { return sampleConfig }

func (*Bcache) Gather(_ telegraf.Accumulator) error { return nil }

func init() {
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/conntrack/conntrack_notlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Conntrack struct {
func (*Conntrack) SampleConfig() string { return sampleConfig }

func (c *Conntrack) Init() error {
c.Log.Warn("current platform is not supported")
c.Log.Warn("Current platform is not supported")
return nil
}

Expand Down
6 changes: 4 additions & 2 deletions plugins/inputs/dpdk/dpdk_notlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ type Dpdk struct {
Log telegraf.Logger `toml:"-"`
}

func (*Dpdk) SampleConfig() string { return sampleConfig }

func (d *Dpdk) Init() error {
d.Log.Warn("current platform is not supported")
d.Log.Warn("Current platform is not supported")
return nil
}
func (*Dpdk) SampleConfig() string { return sampleConfig }

func (*Dpdk) Gather(_ telegraf.Accumulator) error { return nil }

func init() {
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/hugepages/hugepages_notlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (*Hugepages) SampleConfig() string {
}

func (h *Hugepages) Init() error {
h.Log.Warn("current platform is not supported")
h.Log.Warn("Current platform is not supported")
return nil
}

Expand Down
Loading

0 comments on commit 03af908

Please sign in to comment.