fleetmanager

package
v0.0.0-...-aa74118 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeMachineTagsRequest

type ChangeMachineTagsRequest struct {
	Hostname string
	Tags     tags.Tags
}

type ChangeMachineTagsResponse

type ChangeMachineTagsResponse struct {
	Error string
}

type GetHypervisorForVMRequest

type GetHypervisorForVMRequest struct {
	IpAddress net.IP
}

type GetHypervisorForVMResponse

type GetHypervisorForVMResponse struct {
	HypervisorAddress string // host:port
	Error             string
}

type GetMachineInfoRequest

type GetMachineInfoRequest struct {
	Hostname string
}

type GetMachineInfoResponse

type GetMachineInfoResponse struct {
	Error    string          `json:",omitempty"`
	Location string          `json:",omitempty"`
	Machine  Machine         `json:",omitempty"`
	Subnets  []*proto.Subnet `json:",omitempty"`
}

type GetUpdatesRequest

type GetUpdatesRequest struct {
	Location   string
	MaxUpdates uint64 // Zero means infinite.
}

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 ListHypervisorLocationsRequest

type ListHypervisorLocationsRequest struct {
	TopLocation string
}

type ListHypervisorLocationsResponse

type ListHypervisorLocationsResponse struct {
	Locations []string
	Error     string
}

type ListHypervisorsInLocationRequest

type ListHypervisorsInLocationRequest struct {
	IncludeUnhealthy bool
	Location         string
	SubnetId         string
}

type ListHypervisorsInLocationResponse

type ListHypervisorsInLocationResponse struct {
	HypervisorAddresses []string // host:port
	Error               string
}

type ListVMsInLocationRequest

type ListVMsInLocationRequest struct {
	Location string
}

type ListVMsInLocationResponse

type ListVMsInLocationResponse struct {
	IpAddresses []net.IP
	Error       string
}

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 {
	NetworkEntry            `json:",omitempty"`
	IPMI                    NetworkEntry   `json:",omitempty"`
	OwnerGroups             []string       `json:",omitempty"`
	OwnerUsers              []string       `json:",omitempty"`
	SecondaryNetworkEntries []NetworkEntry `json:",omitempty"`
	Tags                    tags.Tags      `json:",omitempty"`
}

func (*Machine) Equal

func (left *Machine) Equal(right *Machine) bool

type MoveIpAddressesRequest

type MoveIpAddressesRequest struct {
	HypervisorHostname string
	IpAddresses        []net.IP
}

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"`
}

func (*NetworkEntry) Equal

func (left *NetworkEntry) Equal(right *NetworkEntry) bool

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"`
}

Jump to

Keyboard shortcuts

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