mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix golint failure in pkg/util/netsh/testing/
This commit is contained in:
parent
baeff5bada
commit
a988719722
@ -279,7 +279,6 @@ pkg/util/iptables
|
|||||||
pkg/util/iptables/testing
|
pkg/util/iptables/testing
|
||||||
pkg/util/labels
|
pkg/util/labels
|
||||||
pkg/util/mount
|
pkg/util/mount
|
||||||
pkg/util/netsh/testing
|
|
||||||
pkg/util/normalizer
|
pkg/util/normalizer
|
||||||
pkg/util/oom
|
pkg/util/oom
|
||||||
pkg/util/procfs
|
pkg/util/procfs
|
||||||
|
@ -22,15 +22,18 @@ import (
|
|||||||
"k8s.io/kubernetes/pkg/util/netsh"
|
"k8s.io/kubernetes/pkg/util/netsh"
|
||||||
)
|
)
|
||||||
|
|
||||||
// no-op implementation of netsh Interface
|
// FakeNetsh is a no-op implementation of the netsh Interface
|
||||||
type FakeNetsh struct {
|
type FakeNetsh struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewFake returns a fakenetsh no-op implementation of the netsh Interface
|
||||||
func NewFake() *FakeNetsh {
|
func NewFake() *FakeNetsh {
|
||||||
return &FakeNetsh{}
|
return &FakeNetsh{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// EnsurePortProxyRule function implementing the netsh interface and always returns true and nil without any error
|
||||||
func (*FakeNetsh) EnsurePortProxyRule(args []string) (bool, error) {
|
func (*FakeNetsh) EnsurePortProxyRule(args []string) (bool, error) {
|
||||||
|
// Do Nothing
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user