mock

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*lab.ManagerSvc  // Embed the ManagerSvc
	ListFunc         func() ([]*types.Lab, error)
	GetFunc          func(name string) (*types.Lab, error)
	GetFromCloudFunc func(name string) (*types.Lab, error)
	CreateFunc       func(lab *types.Lab) error
	DeleteFunc       func(name string, force bool) error
}

Manager implements lab.ManagerSvc for testing

func (*Manager) Create

func (m *Manager) Create(lab *types.Lab) error

func (*Manager) Delete

func (m *Manager) Delete(name string, force bool) error

func (*Manager) Get

func (m *Manager) Get(name string) (*types.Lab, error)

func (*Manager) GetFromCloud

func (m *Manager) GetFromCloud(name string) (*types.Lab, error)

func (*Manager) List

func (m *Manager) List() ([]*types.Lab, error)

Jump to

Keyboard shortcuts

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