mock

package
v1.8.0-beta.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderMock

type ProviderMock struct {
	mock.Mock
}

ProviderMock is a structure that allows to define the behavior of a Provider

func (*ProviderMock) GetGroups

func (m *ProviderMock) GetGroups(ctx context.Context) (map[string][]string, error)

func (*ProviderMock) GetState

func (m *ProviderMock) GetState(ctx context.Context, name string) (instance.State, error)

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)

func (*ProviderMock) Start

func (m *ProviderMock) Start(ctx context.Context, name string) error

func (*ProviderMock) Stop

func (m *ProviderMock) Stop(ctx context.Context, name string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL