Fix golint failure in pkg/util/netsh/testing/

This commit is contained in:
ZP-AlwaysWin 2019-07-12 21:51:03 +08:00
parent baeff5bada
commit a988719722
2 changed files with 4 additions and 2 deletions

View File

@ -279,7 +279,6 @@ pkg/util/iptables
pkg/util/iptables/testing
pkg/util/labels
pkg/util/mount
pkg/util/netsh/testing
pkg/util/normalizer
pkg/util/oom
pkg/util/procfs

View File

@ -22,15 +22,18 @@ import (
"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 {
}
// NewFake returns a fakenetsh no-op implementation of the netsh Interface
func NewFake() *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) {
// Do Nothing
return true, nil
}