fleetmanager

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 40

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 GetHypervisorsInLocationRequest added in v0.3.3

type GetHypervisorsInLocationRequest struct {
	HypervisorTagsToMatch tags.MatchTags // Empty: match all tags.
	IncludeUnhealthy      bool
	IncludeVMs            bool
	Location              string
	SubnetId              string
}

type GetHypervisorsInLocationResponse added in v0.3.3

type GetHypervisorsInLocationResponse struct {
	Error       string
	Hypervisors []Hypervisor `json:",omitempty"`
}

type GetMachineInfoRequest

type GetMachineInfoRequest struct {
	Hostname               string
	IgnoreMissingLocalTags bool
}

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 {
	IgnoreMissingLocalTags bool
	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 Hypervisor added in v0.3.3

type Hypervisor struct {
	AllocatedMilliCPUs   uint64 `json:",omitempty"`
	AllocatedMemory      uint64 `json:",omitempty"`
	AllocatedVolumeBytes uint64 `json:",omitempty"`
	Machine
	VMs []proto.VmInfo `json:",omitempty"`
}

type ListHypervisorLocationsRequest

type ListHypervisorLocationsRequest struct {
	TopLocation string
}

type ListHypervisorLocationsResponse

type ListHypervisorLocationsResponse struct {
	Locations []string
	Error     string
}

type ListHypervisorsInLocationRequest

type ListHypervisorsInLocationRequest struct {
	HypervisorTagsToMatch tags.MatchTags // Empty: match all tags.
	IncludeUnhealthy      bool
	Location              string
	SubnetId              string
	TagsToInclude         []string
}

type ListHypervisorsInLocationResponse

type ListHypervisorsInLocationResponse struct {
	Error               string
	HypervisorAddresses []string    // host:port
	TagsForHypervisors  []tags.Tags `json:",omitempty"`
}

type ListVMsInLocationRequest

type ListVMsInLocationRequest struct {
	HypervisorTagsToMatch tags.MatchTags // Empty: match all tags.
	Location              string
	OwnerGroups           []string
	OwnerUsers            []string
	VmTagsToMatch         tags.MatchTags // Empty: match all tags.
}

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

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

Jump to

Keyboard shortcuts

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