Documentation
¶
Overview ¶
Package localclient provides an interface for all the local.Client methods kube 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 ¶
type CertIssuer ¶
type FakeIPNBusWatcher ¶
func (*FakeIPNBusWatcher) Close ¶
func (f *FakeIPNBusWatcher) Close() error
type FakeLocalClient ¶
type FakeLocalClient struct {
FakeIPNBusWatcher
}
func (*FakeLocalClient) WatchIPNBus ¶
func (f *FakeLocalClient) WatchIPNBus(ctx context.Context, mask ipn.NotifyWatchOpt) (IPNBusWatcher, error)
type IPNBusWatcher ¶
IPNBusWatcher is local.IPNBusWatcher's methods restated in an interface to allow for easier mocking in tests.
type LocalClient ¶
type LocalClient interface {
WatchIPNBus(ctx context.Context, mask ipn.NotifyWatchOpt) (IPNBusWatcher, error)
CertIssuer
}
LocalClient is roughly a subset of the local.Client struct's methods, used for easier testing.
func New ¶
func New(lc *local.Client) LocalClient
New returns a LocalClient that wraps the provided local.Client.
Click to show internal directories.
Click to hide internal directories.