Documentation ¶
Index ¶
- type DhcpServer
- type Manager
- func (m *Manager) AcknowledgeVm(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) AddAddressesToPool(addresses []proto.Address) error
- func (m *Manager) AddVmVolumes(ipAddr net.IP, authInfo *srpc.AuthInformation, volumeSizes []uint64) error
- func (m *Manager) BecomePrimaryVmOwner(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) ChangeOwners(ownerGroups, ownerUsers []string) error
- func (m *Manager) ChangeVmConsoleType(ipAddr net.IP, authInfo *srpc.AuthInformation, consoleType proto.ConsoleType) error
- func (m *Manager) ChangeVmDestroyProtection(ipAddr net.IP, authInfo *srpc.AuthInformation, destroyProtection bool) error
- func (m *Manager) ChangeVmOwnerUsers(ipAddr net.IP, authInfo *srpc.AuthInformation, extraUsers []string) error
- func (m *Manager) ChangeVmSize(ipAddr net.IP, authInfo *srpc.AuthInformation, memoryInMiB uint64, ...) error
- func (m *Manager) ChangeVmTags(ipAddr net.IP, authInfo *srpc.AuthInformation, tgs tags.Tags) error
- func (m *Manager) CheckOwnership(authInfo *srpc.AuthInformation) bool
- func (m *Manager) CheckVmHasHealthAgent(ipAddr net.IP) (bool, error)
- func (m *Manager) CloseUpdateChannel(channel <-chan proto.Update)
- func (m *Manager) CommitImportedVm(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) ConnectToVmConsole(ipAddr net.IP, authInfo *srpc.AuthInformation) (net.Conn, error)
- func (m *Manager) ConnectToVmSerialPort(ipAddr net.IP, authInfo *srpc.AuthInformation, portNumber uint) (chan<- byte, <-chan byte, error)
- func (m *Manager) CopyVm(conn *srpc.Conn, request proto.CopyVmRequest) error
- func (m *Manager) CreateVm(conn *srpc.Conn) error
- func (m *Manager) DeleteVmVolume(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte, ...) error
- func (m *Manager) DestroyVm(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte) error
- func (m *Manager) DiscardVmAccessToken(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte) error
- func (m *Manager) DiscardVmOldImage(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) DiscardVmOldUserData(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) DiscardVmSnapshot(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) ExportLocalVm(authInfo *srpc.AuthInformation, request proto.ExportLocalVmRequest) (*proto.ExportLocalVmInfo, error)
- func (m *Manager) GetHealthStatus() string
- func (m *Manager) GetImageServerAddress() string
- func (m *Manager) GetNumVMs() (uint, uint)
- func (m *Manager) GetRootCookiePath() string
- func (m *Manager) GetVmAccessToken(ipAddr net.IP, authInfo *srpc.AuthInformation, lifetime time.Duration) ([]byte, error)
- func (m *Manager) GetVmBootLog(ipAddr net.IP) (io.ReadCloser, error)
- func (m *Manager) GetVmInfo(ipAddr net.IP) (proto.VmInfo, error)
- func (m *Manager) GetVmUserData(ipAddr net.IP) (io.ReadCloser, error)
- func (m *Manager) GetVmUserDataRPC(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte) (io.ReadCloser, uint64, error)
- func (m *Manager) GetVmVolume(conn *srpc.Conn) error
- func (m *Manager) ImportLocalVm(authInfo *srpc.AuthInformation, request proto.ImportLocalVmRequest) error
- func (m *Manager) ListAvailableAddresses() []proto.Address
- func (m *Manager) ListRegisteredAddresses() []proto.Address
- func (m *Manager) ListSubnets(doSort bool) []proto.Subnet
- func (m *Manager) ListVMs(ownerUsers []string, doSort bool) []string
- func (m *Manager) ListVolumeDirectories() []string
- func (m *Manager) MakeSubnetChannel() <-chan proto.Subnet
- func (m *Manager) MakeUpdateChannel() <-chan proto.Update
- func (m *Manager) MigrateVm(conn *srpc.Conn) error
- func (m *Manager) NotifyVmMetadataRequest(ipAddr net.IP, path string)
- func (m *Manager) PatchVmImage(conn *srpc.Conn, request proto.PatchVmImageRequest) error
- func (m *Manager) PowerOff(stopVMs bool) error
- func (m *Manager) PrepareVmForMigration(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte, enable bool) error
- func (m *Manager) RegisterVmMetadataNotifier(ipAddr net.IP, authInfo *srpc.AuthInformation, pathChannel chan<- string) error
- func (m *Manager) RemoveAddressesFromPool(addresses []proto.Address) error
- func (m *Manager) RemoveExcessAddressesFromPool(maxFree map[string]uint) error
- func (m *Manager) ReplaceVmImage(conn *srpc.Conn, authInfo *srpc.AuthInformation) error
- func (m *Manager) ReplaceVmUserData(ipAddr net.IP, reader io.Reader, size uint64, authInfo *srpc.AuthInformation) error
- func (m *Manager) RestoreVmFromSnapshot(ipAddr net.IP, authInfo *srpc.AuthInformation, forceIfNotStopped bool) error
- func (m *Manager) RestoreVmImage(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) RestoreVmUserData(ipAddr net.IP, authInfo *srpc.AuthInformation) error
- func (m *Manager) ScanVmRoot(ipAddr net.IP, authInfo *srpc.AuthInformation, scanFilter *filter.Filter) (*filesystem.FileSystem, error)
- func (m *Manager) ShutdownVMsAndExit()
- func (m *Manager) SnapshotVm(ipAddr net.IP, authInfo *srpc.AuthInformation, ...) error
- func (m *Manager) StartVm(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte, ...) (bool, error)
- func (m *Manager) StopVm(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte) error
- func (m *Manager) UnregisterVmMetadataNotifier(ipAddr net.IP, pathChannel chan<- string) error
- func (m *Manager) UpdateSubnets(request proto.UpdateSubnetsRequest) error
- func (m *Manager) WriteHtml(writer io.Writer)
- type StartOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DhcpServer ¶
type Manager ¶
type Manager struct { StartOptions // contains filtered or unexported fields }
func New ¶
func New(startOptions StartOptions) (*Manager, error)
func (*Manager) AcknowledgeVm ¶
func (*Manager) AddAddressesToPool ¶
func (*Manager) AddVmVolumes ¶
func (*Manager) BecomePrimaryVmOwner ¶
func (*Manager) ChangeOwners ¶
func (*Manager) ChangeVmConsoleType ¶
func (m *Manager) ChangeVmConsoleType(ipAddr net.IP, authInfo *srpc.AuthInformation, consoleType proto.ConsoleType) error
func (*Manager) ChangeVmDestroyProtection ¶
func (*Manager) ChangeVmOwnerUsers ¶
func (*Manager) ChangeVmSize ¶
func (*Manager) ChangeVmTags ¶
func (*Manager) CheckOwnership ¶
func (m *Manager) CheckOwnership(authInfo *srpc.AuthInformation) bool
func (*Manager) CheckVmHasHealthAgent ¶
func (*Manager) CloseUpdateChannel ¶
func (*Manager) CommitImportedVm ¶
func (*Manager) ConnectToVmConsole ¶
func (*Manager) ConnectToVmSerialPort ¶
func (*Manager) DeleteVmVolume ¶
func (*Manager) DiscardVmAccessToken ¶
func (*Manager) DiscardVmOldImage ¶
func (*Manager) DiscardVmOldUserData ¶
func (*Manager) DiscardVmSnapshot ¶
func (*Manager) ExportLocalVm ¶
func (m *Manager) ExportLocalVm(authInfo *srpc.AuthInformation, request proto.ExportLocalVmRequest) (*proto.ExportLocalVmInfo, error)
func (*Manager) GetHealthStatus ¶
func (*Manager) GetImageServerAddress ¶
func (*Manager) GetRootCookiePath ¶
func (*Manager) GetVmAccessToken ¶
func (*Manager) GetVmBootLog ¶
func (*Manager) GetVmUserData ¶
func (*Manager) GetVmUserDataRPC ¶
func (m *Manager) GetVmUserDataRPC(ipAddr net.IP, authInfo *srpc.AuthInformation, accessToken []byte) ( io.ReadCloser, uint64, error)
func (*Manager) ImportLocalVm ¶
func (m *Manager) ImportLocalVm(authInfo *srpc.AuthInformation, request proto.ImportLocalVmRequest) error
func (*Manager) ListAvailableAddresses ¶
func (*Manager) ListRegisteredAddresses ¶
func (*Manager) ListVolumeDirectories ¶
func (*Manager) MakeSubnetChannel ¶
func (*Manager) MakeUpdateChannel ¶
func (*Manager) NotifyVmMetadataRequest ¶
func (*Manager) PatchVmImage ¶
func (*Manager) PrepareVmForMigration ¶
func (*Manager) RegisterVmMetadataNotifier ¶
func (*Manager) RemoveAddressesFromPool ¶
func (*Manager) RemoveExcessAddressesFromPool ¶
func (*Manager) ReplaceVmImage ¶
func (*Manager) ReplaceVmUserData ¶
func (*Manager) RestoreVmFromSnapshot ¶
func (*Manager) RestoreVmImage ¶
func (*Manager) RestoreVmUserData ¶
func (*Manager) ScanVmRoot ¶
func (m *Manager) ScanVmRoot(ipAddr net.IP, authInfo *srpc.AuthInformation, scanFilter *filter.Filter) (*filesystem.FileSystem, error)
func (*Manager) ShutdownVMsAndExit ¶
func (m *Manager) ShutdownVMsAndExit()
func (*Manager) SnapshotVm ¶
func (*Manager) UnregisterVmMetadataNotifier ¶
func (*Manager) UpdateSubnets ¶
func (m *Manager) UpdateSubnets(request proto.UpdateSubnetsRequest) error
type StartOptions ¶
type StartOptions struct { BridgeMap map[string]net.Interface // Key: interface name. DhcpServer DhcpServer ImageServerAddress string Logger log.DebugLogger ObjectCacheBytes uint64 ShowVgaConsole bool StateDir string Username string VlanIdToBridge map[uint]string // Key: VLAN ID, value: bridge interface. VolumeDirectories []string }
Click to show internal directories.
Click to hide internal directories.