servicetest

package
v0.0.0-...-ab49fd9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedContainer

type MockedContainer struct {
	mock.Mock
}

func (*MockedContainer) SaveImage

func (m *MockedContainer) SaveImage(ctx context.Context, containerID, name string) error

func (*MockedContainer) Start

func (m *MockedContainer) Start(ctx context.Context, serviceName, image string) <-chan service.ContainerStatus

func (*MockedContainer) Stop

func (m *MockedContainer) Stop(ctx context.Context, containerID string, remove bool) error

type MockedService

type MockedService struct {
	mock.Mock
}

func (*MockedService) IsOnline

func (m *MockedService) IsOnline(ctx context.Context) (bool, error)

func (*MockedService) Save

func (m *MockedService) Save(ctx context.Context, name string) error

func (*MockedService) Start

func (m *MockedService) Start(ctx context.Context) error

func (*MockedService) Stop

func (m *MockedService) Stop(ctx context.Context, remove bool) error

type MockedServiceStorage

type MockedServiceStorage struct {
	mock.Mock
}

func (*MockedServiceStorage) Create

func (s *MockedServiceStorage) Create(ctx context.Context, service *model.Service) error

func (*MockedServiceStorage) Delete

func (s *MockedServiceStorage) Delete(ctx context.Context, serviceID string) error

func (*MockedServiceStorage) List

func (*MockedServiceStorage) Read

func (s *MockedServiceStorage) Read(ctx context.Context, service *model.Service) error

func (*MockedServiceStorage) Update

func (s *MockedServiceStorage) Update(ctx context.Context, service *model.Service) error

Jump to

Keyboard shortcuts

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