Documentation
¶
Index ¶
- Variables
- type Manager
- func (m *Manager) AddDisk(ctx context.Context, instanceID string, volume *api.VolumeStatus) error
- func (m *Manager) AddNIC(ctx context.Context, instanceID string, nic *api.NetworkInterfaceStatus) error
- func (m *Manager) CreateVM(ctx context.Context, machine *api.Machine) error
- func (m *Manager) Delete(ctx context.Context, instanceID string) error
- func (m *Manager) FreeApiSocket(ctx context.Context, socket string)
- func (m *Manager) GetFreeApiSocket() (*string, error)
- func (m *Manager) GetVM(ctx context.Context, instanceID string) (*client.VmInfo, error)
- func (m *Manager) Ping(ctx context.Context, instanceID string) error
- func (m *Manager) PowerOff(ctx context.Context, instanceID string) error
- func (m *Manager) PowerOn(ctx context.Context, instanceID string) error
- func (m *Manager) RemoveDevice(ctx context.Context, instanceID string, deviceID string) error
- func (m *Manager) RemoveNIC(ctx context.Context, instanceID string, nicName string) error
- type ManagerOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrAlreadyExists = errors.New("already exists") ErrResourceVersionNotLatest = errors.New("resourceVersion is not latest") ErrVmInitialized = errors.New("vm already initialized") ErrBrokenSocket = errors.New("broken socket") ErrVmNotCreated = errors.New("vm is not created") )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetFreeApiSocket ¶
func (*Manager) RemoveDevice ¶
type ManagerOptions ¶
Click to show internal directories.
Click to hide internal directories.