Documentation ¶
Index ¶
- type Datastore
- func (d *Datastore) GetCluster(clusterID string) (*types.SubmarinerCluster, error)
- func (d *Datastore) GetClusters(colorCodes []string) ([]types.SubmarinerCluster, error)
- func (d *Datastore) GetEndpoint(clusterID, cableName string) (*types.SubmarinerEndpoint, error)
- func (d *Datastore) GetEndpoints(clusterID string) ([]types.SubmarinerEndpoint, error)
- func (d *Datastore) RemoveCluster(clusterID string) error
- func (d *Datastore) RemoveEndpoint(clusterID, cableName string) error
- func (d *Datastore) SetCluster(cluster *types.SubmarinerCluster) error
- func (d *Datastore) SetEndpoint(endpoint *types.SubmarinerEndpoint) error
- func (d *Datastore) SetupErrOnFirstRemoveEndpoint(err error)
- func (d *Datastore) SetupErrOnFirstSetCluster() error
- func (d *Datastore) SetupErrOnFirstSetEndpoint(err error)
- func (d *Datastore) SetupGetEndpoints(clusterID string, err error, endpoints ...types.SubmarinerEndpoint)
- func (d *Datastore) VerifyNoSetCluster()
- func (d *Datastore) VerifyNoSetEndpoint()
- func (d *Datastore) VerifyRemoveEndpoint(clusterID, cableName string)
- func (d *Datastore) VerifySetCluster(expected *types.SubmarinerCluster)
- func (d *Datastore) VerifySetEndpoint(expected *types.SubmarinerEndpoint)
- func (d *Datastore) VerifyWatchClusters() datastore.OnClusterChange
- func (d *Datastore) VerifyWatchEndpoints() datastore.OnEndpointChange
- func (d *Datastore) WatchClusters(ctx context.Context, selfClusterID string, icolorCodes []string, ...) error
- func (d *Datastore) WatchEndpoints(ctx context.Context, selfClusterID string, colorCodes []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
func (*Datastore) GetCluster ¶
func (d *Datastore) GetCluster(clusterID string) (*types.SubmarinerCluster, error)
func (*Datastore) GetClusters ¶
func (d *Datastore) GetClusters(colorCodes []string) ([]types.SubmarinerCluster, error)
func (*Datastore) GetEndpoint ¶
func (d *Datastore) GetEndpoint(clusterID, cableName string) (*types.SubmarinerEndpoint, error)
func (*Datastore) GetEndpoints ¶
func (d *Datastore) GetEndpoints(clusterID string) ([]types.SubmarinerEndpoint, error)
func (*Datastore) RemoveCluster ¶
func (*Datastore) RemoveEndpoint ¶
func (*Datastore) SetCluster ¶
func (d *Datastore) SetCluster(cluster *types.SubmarinerCluster) error
func (*Datastore) SetEndpoint ¶
func (d *Datastore) SetEndpoint(endpoint *types.SubmarinerEndpoint) error
func (*Datastore) SetupErrOnFirstRemoveEndpoint ¶
func (*Datastore) SetupErrOnFirstSetCluster ¶
func (*Datastore) SetupErrOnFirstSetEndpoint ¶
func (*Datastore) SetupGetEndpoints ¶
func (d *Datastore) SetupGetEndpoints(clusterID string, err error, endpoints ...types.SubmarinerEndpoint)
func (*Datastore) VerifyNoSetCluster ¶
func (d *Datastore) VerifyNoSetCluster()
func (*Datastore) VerifyNoSetEndpoint ¶
func (d *Datastore) VerifyNoSetEndpoint()
func (*Datastore) VerifyRemoveEndpoint ¶
func (*Datastore) VerifySetCluster ¶
func (d *Datastore) VerifySetCluster(expected *types.SubmarinerCluster)
func (*Datastore) VerifySetEndpoint ¶
func (d *Datastore) VerifySetEndpoint(expected *types.SubmarinerEndpoint)
func (*Datastore) VerifyWatchClusters ¶
func (d *Datastore) VerifyWatchClusters() datastore.OnClusterChange
func (*Datastore) VerifyWatchEndpoints ¶
func (d *Datastore) VerifyWatchEndpoints() datastore.OnEndpointChange
func (*Datastore) WatchClusters ¶
func (*Datastore) WatchEndpoints ¶
Click to show internal directories.
Click to hide internal directories.