localclient
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package localclient provides an interface for all the local.Client methodskube needs to use, so that we can easily mock it in tests.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeFakeIPNBusWatcher¶
func (*FakeIPNBusWatcher)Close¶
func (f *FakeIPNBusWatcher) Close()error
typeFakeLocalClient¶
type FakeLocalClient struct {FakeIPNBusWatcher}func (*FakeLocalClient)WatchIPNBus¶
func (f *FakeLocalClient) WatchIPNBus(ctxcontext.Context, maskipn.NotifyWatchOpt) (IPNBusWatcher,error)
typeIPNBusWatcher¶
IPNBusWatcher is local.IPNBusWatcher's methods restated in an interface toallow for easier mocking in tests.
typeLocalClient¶
type LocalClient interface {WatchIPNBus(ctxcontext.Context, maskipn.NotifyWatchOpt) (IPNBusWatcher,error)CertIssuer}LocalClient is roughly a subset of the local.Client struct's methods, usedfor easier testing.
funcNew¶
func New(lc *local.Client)LocalClient
New returns a LocalClient that wraps the provided local.Client.