Documentation
¶
Index ¶
- type ChangeMachineTagsRequest
- type ChangeMachineTagsResponse
- type GetHypervisorForVMRequest
- type GetHypervisorForVMResponse
- type GetHypervisorsInLocationRequest
- type GetHypervisorsInLocationResponse
- type GetMachineInfoRequest
- type GetMachineInfoResponse
- type GetUpdatesRequest
- type HardwareAddr
- type Hypervisor
- type ListHypervisorLocationsRequest
- type ListHypervisorLocationsResponse
- type ListHypervisorsInLocationRequest
- type ListHypervisorsInLocationResponse
- type ListVMsInLocationRequest
- type ListVMsInLocationResponse
- type Machine
- type MoveIpAddressesRequest
- type MoveIpAddressesResponse
- type NetworkEntry
- type PowerOnMachineRequest
- type PowerOnMachineResponse
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeMachineTagsResponse ¶
type ChangeMachineTagsResponse struct {
Error string
}
type GetHypervisorsInLocationRequest ¶ added in v0.3.3
type GetHypervisorsInLocationResponse ¶ added in v0.3.3
type GetHypervisorsInLocationResponse struct { Error string Hypervisors []Hypervisor `json:",omitempty"` }
type GetMachineInfoRequest ¶
type GetMachineInfoResponse ¶
type GetUpdatesRequest ¶
type HardwareAddr ¶
type HardwareAddr net.HardwareAddr
func (HardwareAddr) MarshalText ¶
func (addr HardwareAddr) MarshalText() (text []byte, err error)
func (HardwareAddr) String ¶
func (addr HardwareAddr) String() string
func (*HardwareAddr) UnmarshalText ¶
func (addr *HardwareAddr) UnmarshalText(text []byte) error
type Hypervisor ¶ added in v0.3.3
type ListHypervisorLocationsRequest ¶
type ListHypervisorLocationsRequest struct {
TopLocation string
}
type ListVMsInLocationResponse ¶
A stream of ListVMsInLocationResponse messages is sent, until either the length of the IpAddresses field is zero, or the Error field != "".
type Machine ¶
type Machine struct { GatewaySubnetId string `json:",omitempty"` Location string `json:",omitempty"` MemoryInMiB uint64 `json:",omitempty"` NetworkEntry `json:",omitempty"` NumCPUs uint `json:",omitempty"` IPMI NetworkEntry `json:",omitempty"` OwnerGroups []string `json:",omitempty"` OwnerUsers []string `json:",omitempty"` SecondaryNetworkEntries []NetworkEntry `json:",omitempty"` Tags tags.Tags `json:",omitempty"` TotalVolumeBytes uint64 `json:",omitempty"` }
type MoveIpAddressesRequest ¶
type MoveIpAddressesResponse ¶
type MoveIpAddressesResponse struct {
Error string
}
type NetworkEntry ¶
type NetworkEntry struct { Hostname string `json:",omitempty"` HostIpAddress net.IP `json:",omitempty"` HostMacAddress HardwareAddr `json:",omitempty"` SubnetId string `json:",omitempty"` VlanTrunk bool `json:",omitempty"` }
func (*NetworkEntry) Equal ¶
func (left *NetworkEntry) Equal(right *NetworkEntry) bool
type PowerOnMachineRequest ¶
type PowerOnMachineRequest struct {
Hostname string
}
type PowerOnMachineResponse ¶
type PowerOnMachineResponse struct {
Error string
}
type Update ¶
type Update struct { ChangedMachines []*Machine `json:",omitempty"` ChangedVMs map[string]*proto.VmInfo `json:",omitempty"` // Key: IPaddr DeletedMachines []string `json:",omitempty"` // Hostname DeletedVMs []string `json:",omitempty"` // IPaddr Error string `json:",omitempty"` VmToHypervisor map[string]string `json:",omitempty"` // IP:hostname }
Click to show internal directories.
Click to hide internal directories.