Documentation ¶
Index ¶
- func NewFakeStore() store.Store
- type MockStore
- type Store
- func (_m *Store) GetIdentifier(ctx context.Context) string
- func (_m *Store) GetNode(ctx context.Context, nodename string) (*types.Node, error)
- func (_m *Store) GetNodeStatus(ctx context.Context, nodename string) (*types.NodeStatus, error)
- func (_m *Store) ListPodNodes(ctx context.Context, all bool, podname string, labels map[string]string) ([]*types.Node, error)
- func (_m *Store) NodeStatusStream(ctx context.Context) (<-chan *types.NodeStatus, <-chan error)
- func (_m *Store) SetNodeStatus(ctx context.Context, ttl int64) error
- func (_m *Store) SetWorkloadStatus(ctx context.Context, status *types.WorkloadStatus, ttl int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeStore ¶
NewFakeStore returns a mock store instance created from mock
Types ¶
type MockStore ¶
MockStore .
func (*MockStore) GetMockWorkloadStatus ¶
func (m *MockStore) GetMockWorkloadStatus(ID string) *types.WorkloadStatus
GetMockWorkloadStatus returns the mock workload status by ID
func (*MockStore) StartNodeStatusStream ¶
func (m *MockStore) StartNodeStatusStream()
StartNodeStatusStream "faker" up, "fake" down.
func (*MockStore) StopNodeStatusStream ¶
func (m *MockStore) StopNodeStatusStream()
StopNodeStatusStream send an err to errChan.
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
func NewStore(t mockConstructorTestingTNewStore) *Store
NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Store) GetIdentifier ¶
GetIdentifier provides a mock function with given fields: ctx
func (*Store) GetNodeStatus ¶
GetNodeStatus provides a mock function with given fields: ctx, nodename
func (*Store) ListPodNodes ¶
func (_m *Store) ListPodNodes(ctx context.Context, all bool, podname string, labels map[string]string) ([]*types.Node, error)
ListPodNodes provides a mock function with given fields: ctx, all, podname, labels
func (*Store) NodeStatusStream ¶
NodeStatusStream provides a mock function with given fields: ctx
func (*Store) SetNodeStatus ¶
SetNodeStatus provides a mock function with given fields: ctx, ttl
func (*Store) SetWorkloadStatus ¶
func (_m *Store) SetWorkloadStatus(ctx context.Context, status *types.WorkloadStatus, ttl int64) error
SetWorkloadStatus provides a mock function with given fields: ctx, status, ttl