Documentation ¶
Index ¶
- type ProviderMock
- func (m *ProviderMock) GetGroups(ctx context.Context) (map[string][]string, error)
- func (m *ProviderMock) GetState(ctx context.Context, name string) (instance.State, error)
- func (m *ProviderMock) InstanceList(ctx context.Context, options providers.InstanceListOptions) ([]types.Instance, error)
- func (m *ProviderMock) NotifyInstanceStopped(ctx context.Context, instance chan<- string)
- func (m *ProviderMock) Start(ctx context.Context, name string) error
- func (m *ProviderMock) Stop(ctx context.Context, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderMock ¶
ProviderMock is a structure that allows to define the behavior of a Provider
func (*ProviderMock) InstanceList ¶
func (m *ProviderMock) InstanceList(ctx context.Context, options providers.InstanceListOptions) ([]types.Instance, error)
func (*ProviderMock) NotifyInstanceStopped ¶
func (m *ProviderMock) NotifyInstanceStopped(ctx context.Context, instance chan<- string)
Click to show internal directories.
Click to hide internal directories.