Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRemoteNodeNotFound = errors.New("remote node not found")
)
Errors.
Functions ¶
This section is empty.
Types ¶
type RemoteTracker ¶
type RemoteTracker interface {
SetProviderID(ctx context.Context, cluster types.NamespacedName, nodeName string, providerID string) error
}
RemoteTracker wraps a remote.ClusterCacheTracker for easier testing.
func NewRemoteTracker ¶
func NewRemoteTracker(tracker *remote.ClusterCacheTracker) RemoteTracker
type RemoteTrackerMock ¶
type RemoteTrackerMock struct {
// contains filtered or unexported fields
}
This is a manually crafted mock. The reason of not using gomock is that we need this mock to be "global" and used across different tests, which gomock does not support.
func NewRemoteTrackerMock ¶
func NewRemoteTrackerMock() *RemoteTrackerMock
func (*RemoteTrackerMock) AddCall ¶
func (r *RemoteTrackerMock) AddCall(cluster types.NamespacedName, call RemoteTrackerMockCall)
func (*RemoteTrackerMock) SetProviderID ¶
func (r *RemoteTrackerMock) SetProviderID(_ context.Context, cluster types.NamespacedName, nodeName string, providerID string) error
type RemoteTrackerMockCall ¶
Click to show internal directories.
Click to hide internal directories.