crimson

package
Version: v0.0.0-...-ddee7fb Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_crimson_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_datacenters_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_dracs_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_hosts_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_ips_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_kvms_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_machines_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_nics_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_oses_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_physical_hosts_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_platforms_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_racks_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_switches_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_vlans_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_vm_slots_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_crimson_v1_vms_proto protoreflect.FileDescriptor

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterCrimsonServer

func RegisterCrimsonServer(s prpc.Registrar, srv CrimsonServer)

Types

type CreateDRACRequest

type CreateDRACRequest struct {

	// The DRAC to create in the database.
	Drac *DRAC `protobuf:"bytes,1,opt,name=drac,proto3" json:"drac,omitempty"`
	// contains filtered or unexported fields
}

A request to create a new DRAC in the database.

func (*CreateDRACRequest) Descriptor deprecated

func (*CreateDRACRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDRACRequest.ProtoReflect.Descriptor instead.

func (*CreateDRACRequest) GetDrac

func (x *CreateDRACRequest) GetDrac() *DRAC

func (*CreateDRACRequest) ProtoMessage

func (*CreateDRACRequest) ProtoMessage()

func (*CreateDRACRequest) ProtoReflect

func (x *CreateDRACRequest) ProtoReflect() protoreflect.Message

func (*CreateDRACRequest) Reset

func (x *CreateDRACRequest) Reset()

func (*CreateDRACRequest) String

func (x *CreateDRACRequest) String() string

type CreateMachineRequest

type CreateMachineRequest struct {

	// The machine to create in the database.
	Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"`
	// contains filtered or unexported fields
}

A request to create a new machine in the database.

func (*CreateMachineRequest) Descriptor deprecated

func (*CreateMachineRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMachineRequest.ProtoReflect.Descriptor instead.

func (*CreateMachineRequest) GetMachine

func (x *CreateMachineRequest) GetMachine() *Machine

func (*CreateMachineRequest) ProtoMessage

func (*CreateMachineRequest) ProtoMessage()

func (*CreateMachineRequest) ProtoReflect

func (x *CreateMachineRequest) ProtoReflect() protoreflect.Message

func (*CreateMachineRequest) Reset

func (x *CreateMachineRequest) Reset()

func (*CreateMachineRequest) String

func (x *CreateMachineRequest) String() string

type CreateNICRequest

type CreateNICRequest struct {

	// The NIC to create in the database.
	Nic *NIC `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"`
	// contains filtered or unexported fields
}

A request to create a new NIC in the database.

func (*CreateNICRequest) Descriptor deprecated

func (*CreateNICRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateNICRequest.ProtoReflect.Descriptor instead.

func (*CreateNICRequest) GetNic

func (x *CreateNICRequest) GetNic() *NIC

func (*CreateNICRequest) ProtoMessage

func (*CreateNICRequest) ProtoMessage()

func (*CreateNICRequest) ProtoReflect

func (x *CreateNICRequest) ProtoReflect() protoreflect.Message

func (*CreateNICRequest) Reset

func (x *CreateNICRequest) Reset()

func (*CreateNICRequest) String

func (x *CreateNICRequest) String() string

type CreatePhysicalHostRequest

type CreatePhysicalHostRequest struct {

	// The host to create in the database.
	Host *PhysicalHost `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

A request to create a new physical host in the database.

func (*CreatePhysicalHostRequest) Descriptor deprecated

func (*CreatePhysicalHostRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePhysicalHostRequest.ProtoReflect.Descriptor instead.

func (*CreatePhysicalHostRequest) GetHost

func (*CreatePhysicalHostRequest) ProtoMessage

func (*CreatePhysicalHostRequest) ProtoMessage()

func (*CreatePhysicalHostRequest) ProtoReflect

func (*CreatePhysicalHostRequest) Reset

func (x *CreatePhysicalHostRequest) Reset()

func (*CreatePhysicalHostRequest) String

func (x *CreatePhysicalHostRequest) String() string

type CreateVMRequest

type CreateVMRequest struct {

	// The VM to create in the database.
	Vm *VM `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
	// contains filtered or unexported fields
}

A request to create a new VM in the database.

func (*CreateVMRequest) Descriptor deprecated

func (*CreateVMRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateVMRequest.ProtoReflect.Descriptor instead.

func (*CreateVMRequest) GetVm

func (x *CreateVMRequest) GetVm() *VM

func (*CreateVMRequest) ProtoMessage

func (*CreateVMRequest) ProtoMessage()

func (*CreateVMRequest) ProtoReflect

func (x *CreateVMRequest) ProtoReflect() protoreflect.Message

func (*CreateVMRequest) Reset

func (x *CreateVMRequest) Reset()

func (*CreateVMRequest) String

func (x *CreateVMRequest) String() string

type CrimsonClient

type CrimsonClient interface {
	// Lists datacenters in the database.
	ListDatacenters(ctx context.Context, in *ListDatacentersRequest, opts ...grpc.CallOption) (*ListDatacentersResponse, error)
	// Lists free IP addresses in the database.
	ListFreeIPs(ctx context.Context, in *ListFreeIPsRequest, opts ...grpc.CallOption) (*ListIPsResponse, error)
	// Lists KVMs in the database.
	ListKVMs(ctx context.Context, in *ListKVMsRequest, opts ...grpc.CallOption) (*ListKVMsResponse, error)
	// Lists operating systems in the database.
	ListOSes(ctx context.Context, in *ListOSesRequest, opts ...grpc.CallOption) (*ListOSesResponse, error)
	// Lists platforms in the database.
	ListPlatforms(ctx context.Context, in *ListPlatformsRequest, opts ...grpc.CallOption) (*ListPlatformsResponse, error)
	// Lists racks in the database.
	ListRacks(ctx context.Context, in *ListRacksRequest, opts ...grpc.CallOption) (*ListRacksResponse, error)
	// Lists switches in the database.
	ListSwitches(ctx context.Context, in *ListSwitchesRequest, opts ...grpc.CallOption) (*ListSwitchesResponse, error)
	// Lists VLANs in the database.
	ListVLANs(ctx context.Context, in *ListVLANsRequest, opts ...grpc.CallOption) (*ListVLANsResponse, error)
	// Creates a new machine in the database.
	CreateMachine(ctx context.Context, in *CreateMachineRequest, opts ...grpc.CallOption) (*Machine, error)
	// Deletes a machine from the database.
	DeleteMachine(ctx context.Context, in *DeleteMachineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Lists machines in the database.
	ListMachines(ctx context.Context, in *ListMachinesRequest, opts ...grpc.CallOption) (*ListMachinesResponse, error)
	// Renames a machine in the database.
	RenameMachine(ctx context.Context, in *RenameMachineRequest, opts ...grpc.CallOption) (*Machine, error)
	// Updates a machine in the database.
	UpdateMachine(ctx context.Context, in *UpdateMachineRequest, opts ...grpc.CallOption) (*Machine, error)
	// Creates a new NIC in the database.
	CreateNIC(ctx context.Context, in *CreateNICRequest, opts ...grpc.CallOption) (*NIC, error)
	// Deletes a NIC from the database.
	DeleteNIC(ctx context.Context, in *DeleteNICRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Lists NICs in the database.
	ListNICs(ctx context.Context, in *ListNICsRequest, opts ...grpc.CallOption) (*ListNICsResponse, error)
	// Updates a NIC in the database.
	UpdateNIC(ctx context.Context, in *UpdateNICRequest, opts ...grpc.CallOption) (*NIC, error)
	// Creates a new DRAC in the database.
	CreateDRAC(ctx context.Context, in *CreateDRACRequest, opts ...grpc.CallOption) (*DRAC, error)
	// Lists DRACs in the database.
	ListDRACs(ctx context.Context, in *ListDRACsRequest, opts ...grpc.CallOption) (*ListDRACsResponse, error)
	// Updates a DRAC in the database.
	UpdateDRAC(ctx context.Context, in *UpdateDRACRequest, opts ...grpc.CallOption) (*DRAC, error)
	// Creates a new physical host in the database.
	CreatePhysicalHost(ctx context.Context, in *CreatePhysicalHostRequest, opts ...grpc.CallOption) (*PhysicalHost, error)
	// Lists physical hosts in the database.
	ListPhysicalHosts(ctx context.Context, in *ListPhysicalHostsRequest, opts ...grpc.CallOption) (*ListPhysicalHostsResponse, error)
	// Updates a physical host in the database.
	UpdatePhysicalHost(ctx context.Context, in *UpdatePhysicalHostRequest, opts ...grpc.CallOption) (*PhysicalHost, error)
	// Finds available VM slots in the database.
	FindVMSlots(ctx context.Context, in *FindVMSlotsRequest, opts ...grpc.CallOption) (*FindVMSlotsResponse, error)
	// Creates a new VM in the database.
	CreateVM(ctx context.Context, in *CreateVMRequest, opts ...grpc.CallOption) (*VM, error)
	// Lists VMs in the database.
	ListVMs(ctx context.Context, in *ListVMsRequest, opts ...grpc.CallOption) (*ListVMsResponse, error)
	// Updates a VM in the database.
	UpdateVM(ctx context.Context, in *UpdateVMRequest, opts ...grpc.CallOption) (*VM, error)
	// Deletes a physical or virtual host from the database.
	DeleteHost(ctx context.Context, in *DeleteHostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

CrimsonClient is the client API for Crimson service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCrimsonClient

func NewCrimsonClient(cc grpc.ClientConnInterface) CrimsonClient

func NewCrimsonPRPCClient

func NewCrimsonPRPCClient(client *prpc.Client) CrimsonClient

type CrimsonServer

type CrimsonServer interface {
	// Lists datacenters in the database.
	ListDatacenters(context.Context, *ListDatacentersRequest) (*ListDatacentersResponse, error)
	// Lists free IP addresses in the database.
	ListFreeIPs(context.Context, *ListFreeIPsRequest) (*ListIPsResponse, error)
	// Lists KVMs in the database.
	ListKVMs(context.Context, *ListKVMsRequest) (*ListKVMsResponse, error)
	// Lists operating systems in the database.
	ListOSes(context.Context, *ListOSesRequest) (*ListOSesResponse, error)
	// Lists platforms in the database.
	ListPlatforms(context.Context, *ListPlatformsRequest) (*ListPlatformsResponse, error)
	// Lists racks in the database.
	ListRacks(context.Context, *ListRacksRequest) (*ListRacksResponse, error)
	// Lists switches in the database.
	ListSwitches(context.Context, *ListSwitchesRequest) (*ListSwitchesResponse, error)
	// Lists VLANs in the database.
	ListVLANs(context.Context, *ListVLANsRequest) (*ListVLANsResponse, error)
	// Creates a new machine in the database.
	CreateMachine(context.Context, *CreateMachineRequest) (*Machine, error)
	// Deletes a machine from the database.
	DeleteMachine(context.Context, *DeleteMachineRequest) (*emptypb.Empty, error)
	// Lists machines in the database.
	ListMachines(context.Context, *ListMachinesRequest) (*ListMachinesResponse, error)
	// Renames a machine in the database.
	RenameMachine(context.Context, *RenameMachineRequest) (*Machine, error)
	// Updates a machine in the database.
	UpdateMachine(context.Context, *UpdateMachineRequest) (*Machine, error)
	// Creates a new NIC in the database.
	CreateNIC(context.Context, *CreateNICRequest) (*NIC, error)
	// Deletes a NIC from the database.
	DeleteNIC(context.Context, *DeleteNICRequest) (*emptypb.Empty, error)
	// Lists NICs in the database.
	ListNICs(context.Context, *ListNICsRequest) (*ListNICsResponse, error)
	// Updates a NIC in the database.
	UpdateNIC(context.Context, *UpdateNICRequest) (*NIC, error)
	// Creates a new DRAC in the database.
	CreateDRAC(context.Context, *CreateDRACRequest) (*DRAC, error)
	// Lists DRACs in the database.
	ListDRACs(context.Context, *ListDRACsRequest) (*ListDRACsResponse, error)
	// Updates a DRAC in the database.
	UpdateDRAC(context.Context, *UpdateDRACRequest) (*DRAC, error)
	// Creates a new physical host in the database.
	CreatePhysicalHost(context.Context, *CreatePhysicalHostRequest) (*PhysicalHost, error)
	// Lists physical hosts in the database.
	ListPhysicalHosts(context.Context, *ListPhysicalHostsRequest) (*ListPhysicalHostsResponse, error)
	// Updates a physical host in the database.
	UpdatePhysicalHost(context.Context, *UpdatePhysicalHostRequest) (*PhysicalHost, error)
	// Finds available VM slots in the database.
	FindVMSlots(context.Context, *FindVMSlotsRequest) (*FindVMSlotsResponse, error)
	// Creates a new VM in the database.
	CreateVM(context.Context, *CreateVMRequest) (*VM, error)
	// Lists VMs in the database.
	ListVMs(context.Context, *ListVMsRequest) (*ListVMsResponse, error)
	// Updates a VM in the database.
	UpdateVM(context.Context, *UpdateVMRequest) (*VM, error)
	// Deletes a physical or virtual host from the database.
	DeleteHost(context.Context, *DeleteHostRequest) (*emptypb.Empty, error)
}

CrimsonServer is the server API for Crimson service.

type DRAC

type DRAC struct {

	// The name of this DRAC on the network. Uniquely identifies this DRAC.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The machine this DRAC belongs to. Uniquely identifies this DRAC.
	Machine string `protobuf:"bytes,2,opt,name=machine,proto3" json:"machine,omitempty"`
	// The IPv4 address associated with this DRAC.
	Ipv4 string `protobuf:"bytes,3,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	// The VLAN this DRAC belongs to.
	// When creating a DRAC, omit this field. It will be inferred from the IPv4 address.
	Vlan int64 `protobuf:"varint,4,opt,name=vlan,proto3" json:"vlan,omitempty"`
	// The MAC address associated with this DRAC.
	MacAddress string `protobuf:"bytes,5,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	// The switch this DRAC is connected to.
	Switch string `protobuf:"bytes,6,opt,name=switch,proto3" json:"switch,omitempty"`
	// The switchport this DRAC is connected to.
	Switchport int32 `protobuf:"varint,7,opt,name=switchport,proto3" json:"switchport,omitempty"`
	// contains filtered or unexported fields
}

A DRAC in the database.

func (*DRAC) Descriptor deprecated

func (*DRAC) Descriptor() ([]byte, []int)

Deprecated: Use DRAC.ProtoReflect.Descriptor instead.

func (*DRAC) GetIpv4

func (x *DRAC) GetIpv4() string

func (*DRAC) GetMacAddress

func (x *DRAC) GetMacAddress() string

func (*DRAC) GetMachine

func (x *DRAC) GetMachine() string

func (*DRAC) GetName

func (x *DRAC) GetName() string

func (*DRAC) GetSwitch

func (x *DRAC) GetSwitch() string

func (*DRAC) GetSwitchport

func (x *DRAC) GetSwitchport() int32

func (*DRAC) GetVlan

func (x *DRAC) GetVlan() int64

func (*DRAC) ProtoMessage

func (*DRAC) ProtoMessage()

func (*DRAC) ProtoReflect

func (x *DRAC) ProtoReflect() protoreflect.Message

func (*DRAC) Reset

func (x *DRAC) Reset()

func (*DRAC) String

func (x *DRAC) String() string

type Datacenter

type Datacenter struct {

	// The name of this datacenter. Uniquely identifies this datacenter.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of this datacenter.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The state of this datacenter.
	State v1.State `protobuf:"varint,3,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

A datacenter in the database.

func (*Datacenter) Descriptor deprecated

func (*Datacenter) Descriptor() ([]byte, []int)

Deprecated: Use Datacenter.ProtoReflect.Descriptor instead.

func (*Datacenter) GetDescription

func (x *Datacenter) GetDescription() string

func (*Datacenter) GetName

func (x *Datacenter) GetName() string

func (*Datacenter) GetState

func (x *Datacenter) GetState() v1.State

func (*Datacenter) ProtoMessage

func (*Datacenter) ProtoMessage()

func (*Datacenter) ProtoReflect

func (x *Datacenter) ProtoReflect() protoreflect.Message

func (*Datacenter) Reset

func (x *Datacenter) Reset()

func (*Datacenter) String

func (x *Datacenter) String() string

type DecoratedCrimson

type DecoratedCrimson struct {
	// Service is the service to decorate.
	Service CrimsonServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedCrimson) CreateDRAC

func (s *DecoratedCrimson) CreateDRAC(ctx context.Context, req *CreateDRACRequest) (rsp *DRAC, err error)

func (*DecoratedCrimson) CreateMachine

func (s *DecoratedCrimson) CreateMachine(ctx context.Context, req *CreateMachineRequest) (rsp *Machine, err error)

func (*DecoratedCrimson) CreateNIC

func (s *DecoratedCrimson) CreateNIC(ctx context.Context, req *CreateNICRequest) (rsp *NIC, err error)

func (*DecoratedCrimson) CreatePhysicalHost

func (s *DecoratedCrimson) CreatePhysicalHost(ctx context.Context, req *CreatePhysicalHostRequest) (rsp *PhysicalHost, err error)

func (*DecoratedCrimson) CreateVM

func (s *DecoratedCrimson) CreateVM(ctx context.Context, req *CreateVMRequest) (rsp *VM, err error)

func (*DecoratedCrimson) DeleteHost

func (s *DecoratedCrimson) DeleteHost(ctx context.Context, req *DeleteHostRequest) (rsp *emptypb.Empty, err error)

func (*DecoratedCrimson) DeleteMachine

func (s *DecoratedCrimson) DeleteMachine(ctx context.Context, req *DeleteMachineRequest) (rsp *emptypb.Empty, err error)

func (*DecoratedCrimson) DeleteNIC

func (s *DecoratedCrimson) DeleteNIC(ctx context.Context, req *DeleteNICRequest) (rsp *emptypb.Empty, err error)

func (*DecoratedCrimson) FindVMSlots

func (s *DecoratedCrimson) FindVMSlots(ctx context.Context, req *FindVMSlotsRequest) (rsp *FindVMSlotsResponse, err error)

func (*DecoratedCrimson) ListDRACs

func (s *DecoratedCrimson) ListDRACs(ctx context.Context, req *ListDRACsRequest) (rsp *ListDRACsResponse, err error)

func (*DecoratedCrimson) ListDatacenters

func (s *DecoratedCrimson) ListDatacenters(ctx context.Context, req *ListDatacentersRequest) (rsp *ListDatacentersResponse, err error)

func (*DecoratedCrimson) ListFreeIPs

func (s *DecoratedCrimson) ListFreeIPs(ctx context.Context, req *ListFreeIPsRequest) (rsp *ListIPsResponse, err error)

func (*DecoratedCrimson) ListKVMs

func (s *DecoratedCrimson) ListKVMs(ctx context.Context, req *ListKVMsRequest) (rsp *ListKVMsResponse, err error)

func (*DecoratedCrimson) ListMachines

func (s *DecoratedCrimson) ListMachines(ctx context.Context, req *ListMachinesRequest) (rsp *ListMachinesResponse, err error)

func (*DecoratedCrimson) ListNICs

func (s *DecoratedCrimson) ListNICs(ctx context.Context, req *ListNICsRequest) (rsp *ListNICsResponse, err error)

func (*DecoratedCrimson) ListOSes

func (s *DecoratedCrimson) ListOSes(ctx context.Context, req *ListOSesRequest) (rsp *ListOSesResponse, err error)

func (*DecoratedCrimson) ListPhysicalHosts

func (s *DecoratedCrimson) ListPhysicalHosts(ctx context.Context, req *ListPhysicalHostsRequest) (rsp *ListPhysicalHostsResponse, err error)

func (*DecoratedCrimson) ListPlatforms

func (s *DecoratedCrimson) ListPlatforms(ctx context.Context, req *ListPlatformsRequest) (rsp *ListPlatformsResponse, err error)

func (*DecoratedCrimson) ListRacks

func (s *DecoratedCrimson) ListRacks(ctx context.Context, req *ListRacksRequest) (rsp *ListRacksResponse, err error)

func (*DecoratedCrimson) ListSwitches

func (s *DecoratedCrimson) ListSwitches(ctx context.Context, req *ListSwitchesRequest) (rsp *ListSwitchesResponse, err error)

func (*DecoratedCrimson) ListVLANs

func (s *DecoratedCrimson) ListVLANs(ctx context.Context, req *ListVLANsRequest) (rsp *ListVLANsResponse, err error)

func (*DecoratedCrimson) ListVMs

func (s *DecoratedCrimson) ListVMs(ctx context.Context, req *ListVMsRequest) (rsp *ListVMsResponse, err error)

func (*DecoratedCrimson) RenameMachine

func (s *DecoratedCrimson) RenameMachine(ctx context.Context, req *RenameMachineRequest) (rsp *Machine, err error)

func (*DecoratedCrimson) UpdateDRAC

func (s *DecoratedCrimson) UpdateDRAC(ctx context.Context, req *UpdateDRACRequest) (rsp *DRAC, err error)

func (*DecoratedCrimson) UpdateMachine

func (s *DecoratedCrimson) UpdateMachine(ctx context.Context, req *UpdateMachineRequest) (rsp *Machine, err error)

func (*DecoratedCrimson) UpdateNIC

func (s *DecoratedCrimson) UpdateNIC(ctx context.Context, req *UpdateNICRequest) (rsp *NIC, err error)

func (*DecoratedCrimson) UpdatePhysicalHost

func (s *DecoratedCrimson) UpdatePhysicalHost(ctx context.Context, req *UpdatePhysicalHostRequest) (rsp *PhysicalHost, err error)

func (*DecoratedCrimson) UpdateVM

func (s *DecoratedCrimson) UpdateVM(ctx context.Context, req *UpdateVMRequest) (rsp *VM, err error)

type DeleteHostRequest

type DeleteHostRequest struct {

	// The name of the host to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The VLAN the host belongs to.
	Vlan int64 `protobuf:"varint,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
	// contains filtered or unexported fields
}

A request to delete a physical or virtual host from the database.

func (*DeleteHostRequest) Descriptor deprecated

func (*DeleteHostRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteHostRequest.ProtoReflect.Descriptor instead.

func (*DeleteHostRequest) GetName

func (x *DeleteHostRequest) GetName() string

func (*DeleteHostRequest) GetVlan

func (x *DeleteHostRequest) GetVlan() int64

func (*DeleteHostRequest) ProtoMessage

func (*DeleteHostRequest) ProtoMessage()

func (*DeleteHostRequest) ProtoReflect

func (x *DeleteHostRequest) ProtoReflect() protoreflect.Message

func (*DeleteHostRequest) Reset

func (x *DeleteHostRequest) Reset()

func (*DeleteHostRequest) String

func (x *DeleteHostRequest) String() string

type DeleteMachineRequest

type DeleteMachineRequest struct {

	// The name of the machine to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request to delete a machine from the database.

func (*DeleteMachineRequest) Descriptor deprecated

func (*DeleteMachineRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMachineRequest.ProtoReflect.Descriptor instead.

func (*DeleteMachineRequest) GetName

func (x *DeleteMachineRequest) GetName() string

func (*DeleteMachineRequest) ProtoMessage

func (*DeleteMachineRequest) ProtoMessage()

func (*DeleteMachineRequest) ProtoReflect

func (x *DeleteMachineRequest) ProtoReflect() protoreflect.Message

func (*DeleteMachineRequest) Reset

func (x *DeleteMachineRequest) Reset()

func (*DeleteMachineRequest) String

func (x *DeleteMachineRequest) String() string

type DeleteNICRequest

type DeleteNICRequest struct {

	// The name of the NIC to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The machine the NIC belongs to.
	Machine string `protobuf:"bytes,2,opt,name=machine,proto3" json:"machine,omitempty"`
	// contains filtered or unexported fields
}

A request to delete a NIC from the database.

func (*DeleteNICRequest) Descriptor deprecated

func (*DeleteNICRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteNICRequest.ProtoReflect.Descriptor instead.

func (*DeleteNICRequest) GetMachine

func (x *DeleteNICRequest) GetMachine() string

func (*DeleteNICRequest) GetName

func (x *DeleteNICRequest) GetName() string

func (*DeleteNICRequest) ProtoMessage

func (*DeleteNICRequest) ProtoMessage()

func (*DeleteNICRequest) ProtoReflect

func (x *DeleteNICRequest) ProtoReflect() protoreflect.Message

func (*DeleteNICRequest) Reset

func (x *DeleteNICRequest) Reset()

func (*DeleteNICRequest) String

func (x *DeleteNICRequest) String() string

type FindVMSlotsRequest

type FindVMSlotsRequest struct {

	// The number of available VM slots to find.
	// Values < 1 return all available VM slots.
	Slots int32 `protobuf:"varint,1,opt,name=slots,proto3" json:"slots,omitempty"`
	// The platform manufacturers to filter found VM slots on.
	Manufacturers []string `protobuf:"bytes,2,rep,name=manufacturers,proto3" json:"manufacturers,omitempty"`
	// The virtual datacenter to filter found VM slots on.
	VirtualDatacenters []string `protobuf:"bytes,3,rep,name=virtual_datacenters,json=virtualDatacenters,proto3" json:"virtual_datacenters,omitempty"`
	// The states to filter found VM slots on.
	States []v1.State `protobuf:"varint,6,rep,packed,name=states,proto3,enum=common.State" json:"states,omitempty"`
	// contains filtered or unexported fields
}

A request to find available VM slots in the database.

func (*FindVMSlotsRequest) Descriptor deprecated

func (*FindVMSlotsRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindVMSlotsRequest.ProtoReflect.Descriptor instead.

func (*FindVMSlotsRequest) GetManufacturers

func (x *FindVMSlotsRequest) GetManufacturers() []string

func (*FindVMSlotsRequest) GetSlots

func (x *FindVMSlotsRequest) GetSlots() int32

func (*FindVMSlotsRequest) GetStates

func (x *FindVMSlotsRequest) GetStates() []v1.State

func (*FindVMSlotsRequest) GetVirtualDatacenters

func (x *FindVMSlotsRequest) GetVirtualDatacenters() []string

func (*FindVMSlotsRequest) ProtoMessage

func (*FindVMSlotsRequest) ProtoMessage()

func (*FindVMSlotsRequest) ProtoReflect

func (x *FindVMSlotsRequest) ProtoReflect() protoreflect.Message

func (*FindVMSlotsRequest) Reset

func (x *FindVMSlotsRequest) Reset()

func (*FindVMSlotsRequest) String

func (x *FindVMSlotsRequest) String() string

type FindVMSlotsResponse

type FindVMSlotsResponse struct {

	// The hosts with available VM slots.
	// Only includes name, vlan_id, and vm_slots.
	// vm_slots in this context means the number of available VM slots.
	Hosts []*PhysicalHost `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of available VM slots in the database.

func (*FindVMSlotsResponse) Descriptor deprecated

func (*FindVMSlotsResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindVMSlotsResponse.ProtoReflect.Descriptor instead.

func (*FindVMSlotsResponse) GetHosts

func (x *FindVMSlotsResponse) GetHosts() []*PhysicalHost

func (*FindVMSlotsResponse) ProtoMessage

func (*FindVMSlotsResponse) ProtoMessage()

func (*FindVMSlotsResponse) ProtoReflect

func (x *FindVMSlotsResponse) ProtoReflect() protoreflect.Message

func (*FindVMSlotsResponse) Reset

func (x *FindVMSlotsResponse) Reset()

func (*FindVMSlotsResponse) String

func (x *FindVMSlotsResponse) String() string

type IP

type IP struct {

	// The IPv4 address. Uniquely identifies this IP address.
	Ipv4 string `protobuf:"bytes,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	// The VLAN this IP address belongs to.
	Vlan int64 `protobuf:"varint,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
	// The hostname this IP address is assigned to.
	Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

An IP address in the database.

func (*IP) Descriptor deprecated

func (*IP) Descriptor() ([]byte, []int)

Deprecated: Use IP.ProtoReflect.Descriptor instead.

func (*IP) GetHostname

func (x *IP) GetHostname() string

func (*IP) GetIpv4

func (x *IP) GetIpv4() string

func (*IP) GetVlan

func (x *IP) GetVlan() int64

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

func (x *IP) ProtoReflect() protoreflect.Message

func (*IP) Reset

func (x *IP) Reset()

func (*IP) String

func (x *IP) String() string

type KVM

type KVM struct {

	// The name of this KVM on the network. Uniquely identifies this KVM.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The VLAN this KVM belongs to.
	Vlan int64 `protobuf:"varint,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
	// The type of platform this KVM is.
	Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
	// The datacenter this KVM belongs to.
	Datacenter string `protobuf:"bytes,4,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	// The rack this KVM belongs to.
	Rack string `protobuf:"bytes,5,opt,name=rack,proto3" json:"rack,omitempty"`
	// A description of this KVM.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// The MAC address associated with this KVM.
	MacAddress string `protobuf:"bytes,7,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	// The IPv4 address associated with this KVM.
	Ipv4 string `protobuf:"bytes,8,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	// The state of this KVM.
	State v1.State `protobuf:"varint,9,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

A KVM in the database.

func (*KVM) Descriptor deprecated

func (*KVM) Descriptor() ([]byte, []int)

Deprecated: Use KVM.ProtoReflect.Descriptor instead.

func (*KVM) GetDatacenter

func (x *KVM) GetDatacenter() string

func (*KVM) GetDescription

func (x *KVM) GetDescription() string

func (*KVM) GetIpv4

func (x *KVM) GetIpv4() string

func (*KVM) GetMacAddress

func (x *KVM) GetMacAddress() string

func (*KVM) GetName

func (x *KVM) GetName() string

func (*KVM) GetPlatform

func (x *KVM) GetPlatform() string

func (*KVM) GetRack

func (x *KVM) GetRack() string

func (*KVM) GetState

func (x *KVM) GetState() v1.State

func (*KVM) GetVlan

func (x *KVM) GetVlan() int64

func (*KVM) ProtoMessage

func (*KVM) ProtoMessage()

func (*KVM) ProtoReflect

func (x *KVM) ProtoReflect() protoreflect.Message

func (*KVM) Reset

func (x *KVM) Reset()

func (*KVM) String

func (x *KVM) String() string

type ListDRACsRequest

type ListDRACsRequest struct {

	// The names of DRACs to get.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The machines to filter retrieved DRACs on.
	Machines []string `protobuf:"bytes,2,rep,name=machines,proto3" json:"machines,omitempty"`
	// The IPv4 addresses to filter retrieved DRACs on.
	Ipv4S []string `protobuf:"bytes,3,rep,name=ipv4s,proto3" json:"ipv4s,omitempty"`
	// The VLANs to filter retrieved DRACs on.
	Vlans []int64 `protobuf:"varint,4,rep,packed,name=vlans,proto3" json:"vlans,omitempty"`
	// The MAC addresses to filter retrieved DRACs on.
	MacAddresses []string `protobuf:"bytes,5,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
	// The switches to filter retrieved DRACs on.
	Switches []string `protobuf:"bytes,6,rep,name=switches,proto3" json:"switches,omitempty"`
	// contains filtered or unexported fields
}

A request to list DRACs in the database.

func (*ListDRACsRequest) Descriptor deprecated

func (*ListDRACsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDRACsRequest.ProtoReflect.Descriptor instead.

func (*ListDRACsRequest) GetIpv4S

func (x *ListDRACsRequest) GetIpv4S() []string

func (*ListDRACsRequest) GetMacAddresses

func (x *ListDRACsRequest) GetMacAddresses() []string

func (*ListDRACsRequest) GetMachines

func (x *ListDRACsRequest) GetMachines() []string

func (*ListDRACsRequest) GetNames

func (x *ListDRACsRequest) GetNames() []string

func (*ListDRACsRequest) GetSwitches

func (x *ListDRACsRequest) GetSwitches() []string

func (*ListDRACsRequest) GetVlans

func (x *ListDRACsRequest) GetVlans() []int64

func (*ListDRACsRequest) ProtoMessage

func (*ListDRACsRequest) ProtoMessage()

func (*ListDRACsRequest) ProtoReflect

func (x *ListDRACsRequest) ProtoReflect() protoreflect.Message

func (*ListDRACsRequest) Reset

func (x *ListDRACsRequest) Reset()

func (*ListDRACsRequest) String

func (x *ListDRACsRequest) String() string

type ListDRACsResponse

type ListDRACsResponse struct {

	// The DRACs matching this request.
	Dracs []*DRAC `protobuf:"bytes,1,rep,name=dracs,proto3" json:"dracs,omitempty"` // TODO(smut): Support page tokens.
	// contains filtered or unexported fields
}

A response containing a list of DRACs in the database.

func (*ListDRACsResponse) Descriptor deprecated

func (*ListDRACsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDRACsResponse.ProtoReflect.Descriptor instead.

func (*ListDRACsResponse) GetDracs

func (x *ListDRACsResponse) GetDracs() []*DRAC

func (*ListDRACsResponse) ProtoMessage

func (*ListDRACsResponse) ProtoMessage()

func (*ListDRACsResponse) ProtoReflect

func (x *ListDRACsResponse) ProtoReflect() protoreflect.Message

func (*ListDRACsResponse) Reset

func (x *ListDRACsResponse) Reset()

func (*ListDRACsResponse) String

func (x *ListDRACsResponse) String() string

type ListDatacentersRequest

type ListDatacentersRequest struct {

	// The names of datacenters to retrieve.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

A request to list datacenters in the database.

func (*ListDatacentersRequest) Descriptor deprecated

func (*ListDatacentersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDatacentersRequest.ProtoReflect.Descriptor instead.

func (*ListDatacentersRequest) GetNames

func (x *ListDatacentersRequest) GetNames() []string

func (*ListDatacentersRequest) ProtoMessage

func (*ListDatacentersRequest) ProtoMessage()

func (*ListDatacentersRequest) ProtoReflect

func (x *ListDatacentersRequest) ProtoReflect() protoreflect.Message

func (*ListDatacentersRequest) Reset

func (x *ListDatacentersRequest) Reset()

func (*ListDatacentersRequest) String

func (x *ListDatacentersRequest) String() string

type ListDatacentersResponse

type ListDatacentersResponse struct {

	// The datacenters matching the request.
	Datacenters []*Datacenter `protobuf:"bytes,1,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of datacenters in the database.

func (*ListDatacentersResponse) Descriptor deprecated

func (*ListDatacentersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDatacentersResponse.ProtoReflect.Descriptor instead.

func (*ListDatacentersResponse) GetDatacenters

func (x *ListDatacentersResponse) GetDatacenters() []*Datacenter

func (*ListDatacentersResponse) ProtoMessage

func (*ListDatacentersResponse) ProtoMessage()

func (*ListDatacentersResponse) ProtoReflect

func (x *ListDatacentersResponse) ProtoReflect() protoreflect.Message

func (*ListDatacentersResponse) Reset

func (x *ListDatacentersResponse) Reset()

func (*ListDatacentersResponse) String

func (x *ListDatacentersResponse) String() string

type ListFreeIPsRequest

type ListFreeIPsRequest struct {

	// The VLAN to list free IP addresses on.
	Vlan int64 `protobuf:"varint,1,opt,name=vlan,proto3" json:"vlan,omitempty"`
	// The maximum number of free IP addresses to return, or 0 to let the server decide.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

A request to list free IP addresses in the database.

func (*ListFreeIPsRequest) Descriptor deprecated

func (*ListFreeIPsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListFreeIPsRequest.ProtoReflect.Descriptor instead.

func (*ListFreeIPsRequest) GetPageSize

func (x *ListFreeIPsRequest) GetPageSize() int32

func (*ListFreeIPsRequest) GetVlan

func (x *ListFreeIPsRequest) GetVlan() int64

func (*ListFreeIPsRequest) ProtoMessage

func (*ListFreeIPsRequest) ProtoMessage()

func (*ListFreeIPsRequest) ProtoReflect

func (x *ListFreeIPsRequest) ProtoReflect() protoreflect.Message

func (*ListFreeIPsRequest) Reset

func (x *ListFreeIPsRequest) Reset()

func (*ListFreeIPsRequest) String

func (x *ListFreeIPsRequest) String() string

type ListIPsResponse

type ListIPsResponse struct {

	// The IP addresses matching this request.
	Ips []*IP `protobuf:"bytes,1,rep,name=ips,proto3" json:"ips,omitempty"` // TODO(smut): Support page tokens.
	// contains filtered or unexported fields
}

A response containing a list of IP addresses in the database.

func (*ListIPsResponse) Descriptor deprecated

func (*ListIPsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListIPsResponse.ProtoReflect.Descriptor instead.

func (*ListIPsResponse) GetIps

func (x *ListIPsResponse) GetIps() []*IP

func (*ListIPsResponse) ProtoMessage

func (*ListIPsResponse) ProtoMessage()

func (*ListIPsResponse) ProtoReflect

func (x *ListIPsResponse) ProtoReflect() protoreflect.Message

func (*ListIPsResponse) Reset

func (x *ListIPsResponse) Reset()

func (*ListIPsResponse) String

func (x *ListIPsResponse) String() string

type ListKVMsRequest

type ListKVMsRequest struct {

	// The names of KVMs to retrieve.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The VLANs to filter retrieved KVMs on.
	Vlans []int64 `protobuf:"varint,2,rep,packed,name=vlans,proto3" json:"vlans,omitempty"`
	// The platforms to filter retrieved KVMs on.
	Platforms []string `protobuf:"bytes,3,rep,name=platforms,proto3" json:"platforms,omitempty"`
	// The datacenters to filter retrieved KVMs on.
	Datacenters []string `protobuf:"bytes,4,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
	// The racks to filter retrieved KVMs on.
	Racks []string `protobuf:"bytes,5,rep,name=racks,proto3" json:"racks,omitempty"`
	// The MAC addresses to filter retrieved KVMs on.
	MacAddresses []string `protobuf:"bytes,6,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
	// The IPv4 addresses to filter retrieved KVMs on.
	Ipv4S []string `protobuf:"bytes,7,rep,name=ipv4s,proto3" json:"ipv4s,omitempty"`
	// The states to filter retrieved KVMs on.
	States []v1.State `protobuf:"varint,8,rep,packed,name=states,proto3,enum=common.State" json:"states,omitempty"`
	// contains filtered or unexported fields
}

A request to list KVMs in the database.

func (*ListKVMsRequest) Descriptor deprecated

func (*ListKVMsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListKVMsRequest.ProtoReflect.Descriptor instead.

func (*ListKVMsRequest) GetDatacenters

func (x *ListKVMsRequest) GetDatacenters() []string

func (*ListKVMsRequest) GetIpv4S

func (x *ListKVMsRequest) GetIpv4S() []string

func (*ListKVMsRequest) GetMacAddresses

func (x *ListKVMsRequest) GetMacAddresses() []string

func (*ListKVMsRequest) GetNames

func (x *ListKVMsRequest) GetNames() []string

func (*ListKVMsRequest) GetPlatforms

func (x *ListKVMsRequest) GetPlatforms() []string

func (*ListKVMsRequest) GetRacks

func (x *ListKVMsRequest) GetRacks() []string

func (*ListKVMsRequest) GetStates

func (x *ListKVMsRequest) GetStates() []v1.State

func (*ListKVMsRequest) GetVlans

func (x *ListKVMsRequest) GetVlans() []int64

func (*ListKVMsRequest) ProtoMessage

func (*ListKVMsRequest) ProtoMessage()

func (*ListKVMsRequest) ProtoReflect

func (x *ListKVMsRequest) ProtoReflect() protoreflect.Message

func (*ListKVMsRequest) Reset

func (x *ListKVMsRequest) Reset()

func (*ListKVMsRequest) String

func (x *ListKVMsRequest) String() string

type ListKVMsResponse

type ListKVMsResponse struct {

	// The KVMs matching the request.
	Kvms []*KVM `protobuf:"bytes,1,rep,name=kvms,proto3" json:"kvms,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of KVMs in the database.

func (*ListKVMsResponse) Descriptor deprecated

func (*ListKVMsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListKVMsResponse.ProtoReflect.Descriptor instead.

func (*ListKVMsResponse) GetKvms

func (x *ListKVMsResponse) GetKvms() []*KVM

func (*ListKVMsResponse) ProtoMessage

func (*ListKVMsResponse) ProtoMessage()

func (*ListKVMsResponse) ProtoReflect

func (x *ListKVMsResponse) ProtoReflect() protoreflect.Message

func (*ListKVMsResponse) Reset

func (x *ListKVMsResponse) Reset()

func (*ListKVMsResponse) String

func (x *ListKVMsResponse) String() string

type ListMachinesRequest

type ListMachinesRequest struct {

	// The names of machines to get.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The platforms to filter retrieved machines on.
	Platforms []string `protobuf:"bytes,2,rep,name=platforms,proto3" json:"platforms,omitempty"`
	// The racks to filter retrieved machines on.
	Racks []string `protobuf:"bytes,3,rep,name=racks,proto3" json:"racks,omitempty"`
	// The states to filter retrieved machines on.
	States []v1.State `protobuf:"varint,4,rep,packed,name=states,proto3,enum=common.State" json:"states,omitempty"`
	// The datacenters to filter retrieved machines on.
	Datacenters []string `protobuf:"bytes,5,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
	// contains filtered or unexported fields
}

A request to list machines in the database.

func (*ListMachinesRequest) Descriptor deprecated

func (*ListMachinesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMachinesRequest.ProtoReflect.Descriptor instead.

func (*ListMachinesRequest) GetDatacenters

func (x *ListMachinesRequest) GetDatacenters() []string

func (*ListMachinesRequest) GetNames

func (x *ListMachinesRequest) GetNames() []string

func (*ListMachinesRequest) GetPlatforms

func (x *ListMachinesRequest) GetPlatforms() []string

func (*ListMachinesRequest) GetRacks

func (x *ListMachinesRequest) GetRacks() []string

func (*ListMachinesRequest) GetStates

func (x *ListMachinesRequest) GetStates() []v1.State

func (*ListMachinesRequest) ProtoMessage

func (*ListMachinesRequest) ProtoMessage()

func (*ListMachinesRequest) ProtoReflect

func (x *ListMachinesRequest) ProtoReflect() protoreflect.Message

func (*ListMachinesRequest) Reset

func (x *ListMachinesRequest) Reset()

func (*ListMachinesRequest) String

func (x *ListMachinesRequest) String() string

type ListMachinesResponse

type ListMachinesResponse struct {

	// The machines matching this request.
	Machines []*Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"` // TODO(smut): Support page tokens.
	// contains filtered or unexported fields
}

A response containing a list of machines in the database.

func (*ListMachinesResponse) Descriptor deprecated

func (*ListMachinesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMachinesResponse.ProtoReflect.Descriptor instead.

func (*ListMachinesResponse) GetMachines

func (x *ListMachinesResponse) GetMachines() []*Machine

func (*ListMachinesResponse) ProtoMessage

func (*ListMachinesResponse) ProtoMessage()

func (*ListMachinesResponse) ProtoReflect

func (x *ListMachinesResponse) ProtoReflect() protoreflect.Message

func (*ListMachinesResponse) Reset

func (x *ListMachinesResponse) Reset()

func (*ListMachinesResponse) String

func (x *ListMachinesResponse) String() string

type ListNICsRequest

type ListNICsRequest struct {

	// The names of NICs to filter retrieved NICs on.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The machines to filter retrieved NICs on.
	Machines []string `protobuf:"bytes,2,rep,name=machines,proto3" json:"machines,omitempty"`
	// The MAC addresses to filter retrieved NICs on.
	MacAddresses []string `protobuf:"bytes,3,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
	// The switches to filter retrieved NICs on.
	Switches []string `protobuf:"bytes,4,rep,name=switches,proto3" json:"switches,omitempty"`
	// The hostnames of NICs to filter retrieved NICs on.
	Hostnames []string `protobuf:"bytes,5,rep,name=hostnames,proto3" json:"hostnames,omitempty"`
	// The IPv4 addresses of NICs to filter retrieved NICs on.
	Ipv4S []string `protobuf:"bytes,6,rep,name=ipv4s,proto3" json:"ipv4s,omitempty"`
	// contains filtered or unexported fields
}

A request to list NICs in the database.

func (*ListNICsRequest) Descriptor deprecated

func (*ListNICsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListNICsRequest.ProtoReflect.Descriptor instead.

func (*ListNICsRequest) GetHostnames

func (x *ListNICsRequest) GetHostnames() []string

func (*ListNICsRequest) GetIpv4S

func (x *ListNICsRequest) GetIpv4S() []string

func (*ListNICsRequest) GetMacAddresses

func (x *ListNICsRequest) GetMacAddresses() []string

func (*ListNICsRequest) GetMachines

func (x *ListNICsRequest) GetMachines() []string

func (*ListNICsRequest) GetNames

func (x *ListNICsRequest) GetNames() []string

func (*ListNICsRequest) GetSwitches

func (x *ListNICsRequest) GetSwitches() []string

func (*ListNICsRequest) ProtoMessage

func (*ListNICsRequest) ProtoMessage()

func (*ListNICsRequest) ProtoReflect

func (x *ListNICsRequest) ProtoReflect() protoreflect.Message

func (*ListNICsRequest) Reset

func (x *ListNICsRequest) Reset()

func (*ListNICsRequest) String

func (x *ListNICsRequest) String() string

type ListNICsResponse

type ListNICsResponse struct {

	// The NICs matching this request.
	Nics []*NIC `protobuf:"bytes,1,rep,name=nics,proto3" json:"nics,omitempty"` // TODO(smut): Support page tokens.
	// contains filtered or unexported fields
}

A response containing a list of NICs in the database.

func (*ListNICsResponse) Descriptor deprecated

func (*ListNICsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListNICsResponse.ProtoReflect.Descriptor instead.

func (*ListNICsResponse) GetNics

func (x *ListNICsResponse) GetNics() []*NIC

func (*ListNICsResponse) ProtoMessage

func (*ListNICsResponse) ProtoMessage()

func (*ListNICsResponse) ProtoReflect

func (x *ListNICsResponse) ProtoReflect() protoreflect.Message

func (*ListNICsResponse) Reset

func (x *ListNICsResponse) Reset()

func (*ListNICsResponse) String

func (x *ListNICsResponse) String() string

type ListOSesRequest

type ListOSesRequest struct {

	// The names of operating systems to retrieve.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

A request to list operating systems in the database.

func (*ListOSesRequest) Descriptor deprecated

func (*ListOSesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListOSesRequest.ProtoReflect.Descriptor instead.

func (*ListOSesRequest) GetNames

func (x *ListOSesRequest) GetNames() []string

func (*ListOSesRequest) ProtoMessage

func (*ListOSesRequest) ProtoMessage()

func (*ListOSesRequest) ProtoReflect

func (x *ListOSesRequest) ProtoReflect() protoreflect.Message

func (*ListOSesRequest) Reset

func (x *ListOSesRequest) Reset()

func (*ListOSesRequest) String

func (x *ListOSesRequest) String() string

type ListOSesResponse

type ListOSesResponse struct {

	// The operating systems matching the request.
	Oses []*OS `protobuf:"bytes,1,rep,name=oses,proto3" json:"oses,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of operating systems in the database.

func (*ListOSesResponse) Descriptor deprecated

func (*ListOSesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListOSesResponse.ProtoReflect.Descriptor instead.

func (*ListOSesResponse) GetOses

func (x *ListOSesResponse) GetOses() []*OS

func (*ListOSesResponse) ProtoMessage

func (*ListOSesResponse) ProtoMessage()

func (*ListOSesResponse) ProtoReflect

func (x *ListOSesResponse) ProtoReflect() protoreflect.Message

func (*ListOSesResponse) Reset

func (x *ListOSesResponse) Reset()

func (*ListOSesResponse) String

func (x *ListOSesResponse) String() string

type ListPhysicalHostsRequest

type ListPhysicalHostsRequest struct {

	// The names of hosts to get.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The VLANs to filter retrieved hosts on.
	Vlans []int64 `protobuf:"varint,2,rep,packed,name=vlans,proto3" json:"vlans,omitempty"`
	// The IPv4 addresses to filter retrieved hosts on.
	Ipv4S []string `protobuf:"bytes,3,rep,name=ipv4s,proto3" json:"ipv4s,omitempty"`
	// The machines to filter retrieved hosts on.
	Machines []string `protobuf:"bytes,4,rep,name=machines,proto3" json:"machines,omitempty"`
	// The operating systems to filter retrieved hosts on.
	Oses []string `protobuf:"bytes,5,rep,name=oses,proto3" json:"oses,omitempty"`
	// The states to filter retrieved hosts on.
	States []v1.State `protobuf:"varint,6,rep,packed,name=states,proto3,enum=common.State" json:"states,omitempty"`
	// The platforms to filter retrieved hosts on.
	Platforms []string `protobuf:"bytes,7,rep,name=platforms,proto3" json:"platforms,omitempty"`
	// The racks to filter retrieved hosts on.
	Racks []string `protobuf:"bytes,8,rep,name=racks,proto3" json:"racks,omitempty"`
	// The datacenters to filter retrieved hosts on.
	Datacenters []string `protobuf:"bytes,9,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
	// The virtual datacenters to filter retrieved hosts on.
	VirtualDatacenters []string `protobuf:"bytes,10,rep,name=virtual_datacenters,json=virtualDatacenters,proto3" json:"virtual_datacenters,omitempty"`
	// The NICs to filter retrieved hosts on.
	Nics []string `protobuf:"bytes,11,rep,name=nics,proto3" json:"nics,omitempty"`
	// The MAC addresses to filter retrieved hosts on.
	MacAddresses []string `protobuf:"bytes,12,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"`
	// contains filtered or unexported fields
}

A request to list physical hosts in the database.

func (*ListPhysicalHostsRequest) Descriptor deprecated

func (*ListPhysicalHostsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPhysicalHostsRequest.ProtoReflect.Descriptor instead.

func (*ListPhysicalHostsRequest) GetDatacenters

func (x *ListPhysicalHostsRequest) GetDatacenters() []string

func (*ListPhysicalHostsRequest) GetIpv4S

func (x *ListPhysicalHostsRequest) GetIpv4S() []string

func (*ListPhysicalHostsRequest) GetMacAddresses

func (x *ListPhysicalHostsRequest) GetMacAddresses() []string

func (*ListPhysicalHostsRequest) GetMachines

func (x *ListPhysicalHostsRequest) GetMachines() []string

func (*ListPhysicalHostsRequest) GetNames

func (x *ListPhysicalHostsRequest) GetNames() []string

func (*ListPhysicalHostsRequest) GetNics

func (x *ListPhysicalHostsRequest) GetNics() []string

func (*ListPhysicalHostsRequest) GetOses

func (x *ListPhysicalHostsRequest) GetOses() []string

func (*ListPhysicalHostsRequest) GetPlatforms

func (x *ListPhysicalHostsRequest) GetPlatforms() []string

func (*ListPhysicalHostsRequest) GetRacks

func (x *ListPhysicalHostsRequest) GetRacks() []string

func (*ListPhysicalHostsRequest) GetStates

func (x *ListPhysicalHostsRequest) GetStates() []v1.State

func (*ListPhysicalHostsRequest) GetVirtualDatacenters

func (x *ListPhysicalHostsRequest) GetVirtualDatacenters() []string

func (*ListPhysicalHostsRequest) GetVlans

func (x *ListPhysicalHostsRequest) GetVlans() []int64

func (*ListPhysicalHostsRequest) ProtoMessage

func (*ListPhysicalHostsRequest) ProtoMessage()

func (*ListPhysicalHostsRequest) ProtoReflect

func (x *ListPhysicalHostsRequest) ProtoReflect() protoreflect.Message

func (*ListPhysicalHostsRequest) Reset

func (x *ListPhysicalHostsRequest) Reset()

func (*ListPhysicalHostsRequest) String

func (x *ListPhysicalHostsRequest) String() string

type ListPhysicalHostsResponse

type ListPhysicalHostsResponse struct {

	// The hosts matching this request.
	Hosts []*PhysicalHost `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"` // TODO(smut): Support page tokens.
	// contains filtered or unexported fields
}

A response containing a list of physical hosts in the database.

func (*ListPhysicalHostsResponse) Descriptor deprecated

func (*ListPhysicalHostsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPhysicalHostsResponse.ProtoReflect.Descriptor instead.

func (*ListPhysicalHostsResponse) GetHosts

func (x *ListPhysicalHostsResponse) GetHosts() []*PhysicalHost

func (*ListPhysicalHostsResponse) ProtoMessage

func (*ListPhysicalHostsResponse) ProtoMessage()

func (*ListPhysicalHostsResponse) ProtoReflect

func (*ListPhysicalHostsResponse) Reset

func (x *ListPhysicalHostsResponse) Reset()

func (*ListPhysicalHostsResponse) String

func (x *ListPhysicalHostsResponse) String() string

type ListPlatformsRequest

type ListPlatformsRequest struct {

	// The names of platforms to retrieve.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The manufacturers to filter retrieved platforms on.
	Manufacturers []string `protobuf:"bytes,2,rep,name=manufacturers,proto3" json:"manufacturers,omitempty"`
	// contains filtered or unexported fields
}

A request to list platforms in the database.

func (*ListPlatformsRequest) Descriptor deprecated

func (*ListPlatformsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPlatformsRequest.ProtoReflect.Descriptor instead.

func (*ListPlatformsRequest) GetManufacturers

func (x *ListPlatformsRequest) GetManufacturers() []string

func (*ListPlatformsRequest) GetNames

func (x *ListPlatformsRequest) GetNames() []string

func (*ListPlatformsRequest) ProtoMessage

func (*ListPlatformsRequest) ProtoMessage()

func (*ListPlatformsRequest) ProtoReflect

func (x *ListPlatformsRequest) ProtoReflect() protoreflect.Message

func (*ListPlatformsRequest) Reset

func (x *ListPlatformsRequest) Reset()

func (*ListPlatformsRequest) String

func (x *ListPlatformsRequest) String() string

type ListPlatformsResponse

type ListPlatformsResponse struct {

	// The platforms matching the request.
	Platforms []*Platform `protobuf:"bytes,1,rep,name=platforms,proto3" json:"platforms,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of platforms in the database.

func (*ListPlatformsResponse) Descriptor deprecated

func (*ListPlatformsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPlatformsResponse.ProtoReflect.Descriptor instead.

func (*ListPlatformsResponse) GetPlatforms

func (x *ListPlatformsResponse) GetPlatforms() []*Platform

func (*ListPlatformsResponse) ProtoMessage

func (*ListPlatformsResponse) ProtoMessage()

func (*ListPlatformsResponse) ProtoReflect

func (x *ListPlatformsResponse) ProtoReflect() protoreflect.Message

func (*ListPlatformsResponse) Reset

func (x *ListPlatformsResponse) Reset()

func (*ListPlatformsResponse) String

func (x *ListPlatformsResponse) String() string

type ListRacksRequest

type ListRacksRequest struct {

	// The names of racks to retrieve.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The datacenters to filter retrieved racks on.
	Datacenters []string `protobuf:"bytes,2,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
	// The KVMs to filter retrieved racks on.
	Kvms []string `protobuf:"bytes,3,rep,name=kvms,proto3" json:"kvms,omitempty"`
	// contains filtered or unexported fields
}

A request to list racks in the database.

func (*ListRacksRequest) Descriptor deprecated

func (*ListRacksRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRacksRequest.ProtoReflect.Descriptor instead.

func (*ListRacksRequest) GetDatacenters

func (x *ListRacksRequest) GetDatacenters() []string

func (*ListRacksRequest) GetKvms

func (x *ListRacksRequest) GetKvms() []string

func (*ListRacksRequest) GetNames

func (x *ListRacksRequest) GetNames() []string

func (*ListRacksRequest) ProtoMessage

func (*ListRacksRequest) ProtoMessage()

func (*ListRacksRequest) ProtoReflect

func (x *ListRacksRequest) ProtoReflect() protoreflect.Message

func (*ListRacksRequest) Reset

func (x *ListRacksRequest) Reset()

func (*ListRacksRequest) String

func (x *ListRacksRequest) String() string

type ListRacksResponse

type ListRacksResponse struct {

	// The racks matching the request.
	Racks []*Rack `protobuf:"bytes,1,rep,name=racks,proto3" json:"racks,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of racks in the database.

func (*ListRacksResponse) Descriptor deprecated

func (*ListRacksResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListRacksResponse.ProtoReflect.Descriptor instead.

func (*ListRacksResponse) GetRacks

func (x *ListRacksResponse) GetRacks() []*Rack

func (*ListRacksResponse) ProtoMessage

func (*ListRacksResponse) ProtoMessage()

func (*ListRacksResponse) ProtoReflect

func (x *ListRacksResponse) ProtoReflect() protoreflect.Message

func (*ListRacksResponse) Reset

func (x *ListRacksResponse) Reset()

func (*ListRacksResponse) String

func (x *ListRacksResponse) String() string

type ListSwitchesRequest

type ListSwitchesRequest struct {

	// The names of switches to retrieve.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The datacenters to filter retrieved switches on.
	Datacenters []string `protobuf:"bytes,2,rep,name=datacenters,proto3" json:"datacenters,omitempty"`
	// The racks to filter retrieved switches on.
	Racks []string `protobuf:"bytes,3,rep,name=racks,proto3" json:"racks,omitempty"`
	// contains filtered or unexported fields
}

A request to list switches in the database.

func (*ListSwitchesRequest) Descriptor deprecated

func (*ListSwitchesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSwitchesRequest.ProtoReflect.Descriptor instead.

func (*ListSwitchesRequest) GetDatacenters

func (x *ListSwitchesRequest) GetDatacenters() []string

func (*ListSwitchesRequest) GetNames

func (x *ListSwitchesRequest) GetNames() []string

func (*ListSwitchesRequest) GetRacks

func (x *ListSwitchesRequest) GetRacks() []string

func (*ListSwitchesRequest) ProtoMessage

func (*ListSwitchesRequest) ProtoMessage()

func (*ListSwitchesRequest) ProtoReflect

func (x *ListSwitchesRequest) ProtoReflect() protoreflect.Message

func (*ListSwitchesRequest) Reset

func (x *ListSwitchesRequest) Reset()

func (*ListSwitchesRequest) String

func (x *ListSwitchesRequest) String() string

type ListSwitchesResponse

type ListSwitchesResponse struct {

	// The switches matching the request.
	Switches []*Switch `protobuf:"bytes,1,rep,name=switches,proto3" json:"switches,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of switches in the database.

func (*ListSwitchesResponse) Descriptor deprecated

func (*ListSwitchesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSwitchesResponse.ProtoReflect.Descriptor instead.

func (*ListSwitchesResponse) GetSwitches

func (x *ListSwitchesResponse) GetSwitches() []*Switch

func (*ListSwitchesResponse) ProtoMessage

func (*ListSwitchesResponse) ProtoMessage()

func (*ListSwitchesResponse) ProtoReflect

func (x *ListSwitchesResponse) ProtoReflect() protoreflect.Message

func (*ListSwitchesResponse) Reset

func (x *ListSwitchesResponse) Reset()

func (*ListSwitchesResponse) String

func (x *ListSwitchesResponse) String() string

type ListVLANsRequest

type ListVLANsRequest struct {

	// The IDs of VLANs to retrieve.
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// The aliases of VLANs to retrieve.
	Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// contains filtered or unexported fields
}

A request to list VLANs in the database.

func (*ListVLANsRequest) Descriptor deprecated

func (*ListVLANsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListVLANsRequest.ProtoReflect.Descriptor instead.

func (*ListVLANsRequest) GetAliases

func (x *ListVLANsRequest) GetAliases() []string

func (*ListVLANsRequest) GetIds

func (x *ListVLANsRequest) GetIds() []int64

func (*ListVLANsRequest) ProtoMessage

func (*ListVLANsRequest) ProtoMessage()

func (*ListVLANsRequest) ProtoReflect

func (x *ListVLANsRequest) ProtoReflect() protoreflect.Message

func (*ListVLANsRequest) Reset

func (x *ListVLANsRequest) Reset()

func (*ListVLANsRequest) String

func (x *ListVLANsRequest) String() string

type ListVLANsResponse

type ListVLANsResponse struct {

	// The VLANs matching the request.
	Vlans []*VLAN `protobuf:"bytes,1,rep,name=vlans,proto3" json:"vlans,omitempty"`
	// contains filtered or unexported fields
}

A response containing a list of VLANs in the database.

func (*ListVLANsResponse) Descriptor deprecated

func (*ListVLANsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListVLANsResponse.ProtoReflect.Descriptor instead.

func (*ListVLANsResponse) GetVlans

func (x *ListVLANsResponse) GetVlans() []*VLAN

func (*ListVLANsResponse) ProtoMessage

func (*ListVLANsResponse) ProtoMessage()

func (*ListVLANsResponse) ProtoReflect

func (x *ListVLANsResponse) ProtoReflect() protoreflect.Message

func (*ListVLANsResponse) Reset

func (x *ListVLANsResponse) Reset()

func (*ListVLANsResponse) String

func (x *ListVLANsResponse) String() string

type ListVMsRequest

type ListVMsRequest struct {

	// The names of VMs to get.
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// The VLANs to filter retrieved VMs on.
	Vlans []int64 `protobuf:"varint,2,rep,packed,name=vlans,proto3" json:"vlans,omitempty"`
	// The IPv4 addresses to filter retrieved VMs on.
	Ipv4S []string `protobuf:"bytes,3,rep,name=ipv4s,proto3" json:"ipv4s,omitempty"`
	// The physical hosts to filter retrieved VMs on.
	Hosts []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The physical host VLANs to filter retrieved VMs on.
	HostVlans []int64 `protobuf:"varint,5,rep,packed,name=host_vlans,json=hostVlans,proto3" json:"host_vlans,omitempty"`
	// The operating system to filter retrieved VMs on.
	Oses []string `protobuf:"bytes,6,rep,name=oses,proto3" json:"oses,omitempty"`
	// The states to filter retrieved VMs on.
	States []v1.State `protobuf:"varint,10,rep,packed,name=states,proto3,enum=common.State" json:"states,omitempty"`
	// contains filtered or unexported fields
}

A request to list VMs in the database.

func (*ListVMsRequest) Descriptor deprecated

func (*ListVMsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListVMsRequest.ProtoReflect.Descriptor instead.

func (*ListVMsRequest) GetHostVlans

func (x *ListVMsRequest) GetHostVlans() []int64

func (*ListVMsRequest) GetHosts

func (x *ListVMsRequest) GetHosts() []string

func (*ListVMsRequest) GetIpv4S

func (x *ListVMsRequest) GetIpv4S() []string

func (*ListVMsRequest) GetNames

func (x *ListVMsRequest) GetNames() []string

func (*ListVMsRequest) GetOses

func (x *ListVMsRequest) GetOses() []string

func (*ListVMsRequest) GetStates

func (x *ListVMsRequest) GetStates() []v1.State

func (*ListVMsRequest) GetVlans

func (x *ListVMsRequest) GetVlans() []int64

func (*ListVMsRequest) ProtoMessage

func (*ListVMsRequest) ProtoMessage()

func (*ListVMsRequest) ProtoReflect

func (x *ListVMsRequest) ProtoReflect() protoreflect.Message

func (*ListVMsRequest) Reset

func (x *ListVMsRequest) Reset()

func (*ListVMsRequest) String

func (x *ListVMsRequest) String() string

type ListVMsResponse

type ListVMsResponse struct {

	// The VMs matching this request.
	Vms []*VM `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"` // TODO(smut): Support page tokens.
	// contains filtered or unexported fields
}

A response containing a list of VMs in the database.

func (*ListVMsResponse) Descriptor deprecated

func (*ListVMsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListVMsResponse.ProtoReflect.Descriptor instead.

func (*ListVMsResponse) GetVms

func (x *ListVMsResponse) GetVms() []*VM

func (*ListVMsResponse) ProtoMessage

func (*ListVMsResponse) ProtoMessage()

func (*ListVMsResponse) ProtoReflect

func (x *ListVMsResponse) ProtoReflect() protoreflect.Message

func (*ListVMsResponse) Reset

func (x *ListVMsResponse) Reset()

func (*ListVMsResponse) String

func (x *ListVMsResponse) String() string

type Machine

type Machine struct {

	// The name of this machine. Uniquely identifies this machine.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The type of platform this machine is.
	Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	// The rack this machine belongs to.
	Rack string `protobuf:"bytes,3,opt,name=rack,proto3" json:"rack,omitempty"`
	// A description of this machine.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// The asset tag associated with this machine.
	AssetTag string `protobuf:"bytes,5,opt,name=asset_tag,json=assetTag,proto3" json:"asset_tag,omitempty"`
	// The service tag associated with this machine.
	ServiceTag string `protobuf:"bytes,6,opt,name=service_tag,json=serviceTag,proto3" json:"service_tag,omitempty"`
	// The deployment ticket associated with this machine.
	DeploymentTicket string `protobuf:"bytes,7,opt,name=deployment_ticket,json=deploymentTicket,proto3" json:"deployment_ticket,omitempty"`
	// The state of this machine.
	State v1.State `protobuf:"varint,8,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// The datacenter this machine belongs to.
	// When creating a machine, omit this field. It will be inferred from the rack.
	Datacenter string `protobuf:"bytes,9,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	// The DRAC password associated with this machine.
	DracPassword string `protobuf:"bytes,10,opt,name=drac_password,json=dracPassword,proto3" json:"drac_password,omitempty"`
	// contains filtered or unexported fields
}

A machine in the database.

func (*Machine) Descriptor deprecated

func (*Machine) Descriptor() ([]byte, []int)

Deprecated: Use Machine.ProtoReflect.Descriptor instead.

func (*Machine) GetAssetTag

func (x *Machine) GetAssetTag() string

func (*Machine) GetDatacenter

func (x *Machine) GetDatacenter() string

func (*Machine) GetDeploymentTicket

func (x *Machine) GetDeploymentTicket() string

func (*Machine) GetDescription

func (x *Machine) GetDescription() string

func (*Machine) GetDracPassword

func (x *Machine) GetDracPassword() string

func (*Machine) GetName

func (x *Machine) GetName() string

func (*Machine) GetPlatform

func (x *Machine) GetPlatform() string

func (*Machine) GetRack

func (x *Machine) GetRack() string

func (*Machine) GetServiceTag

func (x *Machine) GetServiceTag() string

func (*Machine) GetState

func (x *Machine) GetState() v1.State

func (*Machine) ProtoMessage

func (*Machine) ProtoMessage()

func (*Machine) ProtoReflect

func (x *Machine) ProtoReflect() protoreflect.Message

func (*Machine) Reset

func (x *Machine) Reset()

func (*Machine) String

func (x *Machine) String() string

type NIC

type NIC struct {

	// The name of this NIC. With machine, uniquely identifies this NIC.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The machine this NIC belongs to. With name, uniquely identifies this NIC.
	Machine string `protobuf:"bytes,2,opt,name=machine,proto3" json:"machine,omitempty"`
	// The MAC address associated with this NIC.
	MacAddress string `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	// The switch this NIC is connected to.
	Switch string `protobuf:"bytes,4,opt,name=switch,proto3" json:"switch,omitempty"`
	// The switchport this NIC is connected to.
	Switchport int32 `protobuf:"varint,5,opt,name=switchport,proto3" json:"switchport,omitempty"`
	// The name of this NIC on the network.
	Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// The IPv4 address associated with this NIC.
	Ipv4 string `protobuf:"bytes,7,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	// contains filtered or unexported fields
}

A network interface in the database.

func (*NIC) Descriptor deprecated

func (*NIC) Descriptor() ([]byte, []int)

Deprecated: Use NIC.ProtoReflect.Descriptor instead.

func (*NIC) GetHostname

func (x *NIC) GetHostname() string

func (*NIC) GetIpv4

func (x *NIC) GetIpv4() string

func (*NIC) GetMacAddress

func (x *NIC) GetMacAddress() string

func (*NIC) GetMachine

func (x *NIC) GetMachine() string

func (*NIC) GetName

func (x *NIC) GetName() string

func (*NIC) GetSwitch

func (x *NIC) GetSwitch() string

func (*NIC) GetSwitchport

func (x *NIC) GetSwitchport() int32

func (*NIC) ProtoMessage

func (*NIC) ProtoMessage()

func (*NIC) ProtoReflect

func (x *NIC) ProtoReflect() protoreflect.Message

func (*NIC) Reset

func (x *NIC) Reset()

func (*NIC) String

func (x *NIC) String() string

type OS

type OS struct {

	// The name of this operating system. Uniquely identifies this operating system.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of this operating system.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

An operating system in the database.

func (*OS) Descriptor deprecated

func (*OS) Descriptor() ([]byte, []int)

Deprecated: Use OS.ProtoReflect.Descriptor instead.

func (*OS) GetDescription

func (x *OS) GetDescription() string

func (*OS) GetName

func (x *OS) GetName() string

func (*OS) ProtoMessage

func (*OS) ProtoMessage()

func (*OS) ProtoReflect

func (x *OS) ProtoReflect() protoreflect.Message

func (*OS) Reset

func (x *OS) Reset()

func (*OS) String

func (x *OS) String() string

type PhysicalHost

type PhysicalHost struct {

	// The name of this host on the network. Uniquely identifies this host.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The VLAN this host belongs to.
	// When creating a host, omit this field. It will be inferred from the IPv4 address.
	Vlan int64 `protobuf:"varint,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
	// The machine backing this host.
	Machine string `protobuf:"bytes,3,opt,name=machine,proto3" json:"machine,omitempty"`
	// The operating system backing this host.
	Os string `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty"`
	// The number of VMs which can be deployed on this host.
	VmSlots int32 `protobuf:"varint,5,opt,name=vm_slots,json=vmSlots,proto3" json:"vm_slots,omitempty"`
	// A description of this host.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// The deployment ticket associated with this host.
	DeploymentTicket string `protobuf:"bytes,7,opt,name=deployment_ticket,json=deploymentTicket,proto3" json:"deployment_ticket,omitempty"`
	// The IPv4 address associated with this host.
	Ipv4 string `protobuf:"bytes,8,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	// The state of the machine backing this host.
	State v1.State `protobuf:"varint,9,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// The virtual datacenter VMs deployed on this host belong to.
	VirtualDatacenter string `protobuf:"bytes,10,opt,name=virtual_datacenter,json=virtualDatacenter,proto3" json:"virtual_datacenter,omitempty"`
	// The primary NIC for this host.
	Nic string `protobuf:"bytes,11,opt,name=nic,proto3" json:"nic,omitempty"`
	// The MAC address associated with the primary NIC.
	MacAddress string `protobuf:"bytes,12,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	// contains filtered or unexported fields
}

A physical host in the database.

func (*PhysicalHost) Descriptor deprecated

func (*PhysicalHost) Descriptor() ([]byte, []int)

Deprecated: Use PhysicalHost.ProtoReflect.Descriptor instead.

func (*PhysicalHost) GetDeploymentTicket

func (x *PhysicalHost) GetDeploymentTicket() string

func (*PhysicalHost) GetDescription

func (x *PhysicalHost) GetDescription() string

func (*PhysicalHost) GetIpv4

func (x *PhysicalHost) GetIpv4() string

func (*PhysicalHost) GetMacAddress

func (x *PhysicalHost) GetMacAddress() string

func (*PhysicalHost) GetMachine

func (x *PhysicalHost) GetMachine() string

func (*PhysicalHost) GetName

func (x *PhysicalHost) GetName() string

func (*PhysicalHost) GetNic

func (x *PhysicalHost) GetNic() string

func (*PhysicalHost) GetOs

func (x *PhysicalHost) GetOs() string

func (*PhysicalHost) GetState

func (x *PhysicalHost) GetState() v1.State

func (*PhysicalHost) GetVirtualDatacenter

func (x *PhysicalHost) GetVirtualDatacenter() string

func (*PhysicalHost) GetVlan

func (x *PhysicalHost) GetVlan() int64

func (*PhysicalHost) GetVmSlots

func (x *PhysicalHost) GetVmSlots() int32

func (*PhysicalHost) ProtoMessage

func (*PhysicalHost) ProtoMessage()

func (*PhysicalHost) ProtoReflect

func (x *PhysicalHost) ProtoReflect() protoreflect.Message

func (*PhysicalHost) Reset

func (x *PhysicalHost) Reset()

func (*PhysicalHost) String

func (x *PhysicalHost) String() string

type Platform

type Platform struct {

	// The name of this platform. Uniquely identifies this platform.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of this platform.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The manufacturer of this platform.
	Manufacturer string `protobuf:"bytes,3,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
	// contains filtered or unexported fields
}

A platform in the database.

func (*Platform) Descriptor deprecated

func (*Platform) Descriptor() ([]byte, []int)

Deprecated: Use Platform.ProtoReflect.Descriptor instead.

func (*Platform) GetDescription

func (x *Platform) GetDescription() string

func (*Platform) GetManufacturer

func (x *Platform) GetManufacturer() string

func (*Platform) GetName

func (x *Platform) GetName() string

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) ProtoReflect

func (x *Platform) ProtoReflect() protoreflect.Message

func (*Platform) Reset

func (x *Platform) Reset()

func (*Platform) String

func (x *Platform) String() string

type Rack

type Rack struct {

	// The name of this rack. Uniquely identifies this rack.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of this rack.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The datacenter this rack belongs to.
	Datacenter string `protobuf:"bytes,3,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	// The state of this rack.
	State v1.State `protobuf:"varint,4,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// The KVM serving this rack.
	Kvm string `protobuf:"bytes,5,opt,name=kvm,proto3" json:"kvm,omitempty"`
	// contains filtered or unexported fields
}

A rack in the database.

func (*Rack) Descriptor deprecated

func (*Rack) Descriptor() ([]byte, []int)

Deprecated: Use Rack.ProtoReflect.Descriptor instead.

func (*Rack) GetDatacenter

func (x *Rack) GetDatacenter() string

func (*Rack) GetDescription

func (x *Rack) GetDescription() string

func (*Rack) GetKvm

func (x *Rack) GetKvm() string

func (*Rack) GetName

func (x *Rack) GetName() string

func (*Rack) GetState

func (x *Rack) GetState() v1.State

func (*Rack) ProtoMessage

func (*Rack) ProtoMessage()

func (*Rack) ProtoReflect

func (x *Rack) ProtoReflect() protoreflect.Message

func (*Rack) Reset

func (x *Rack) Reset()

func (*Rack) String

func (x *Rack) String() string

type RenameMachineRequest

type RenameMachineRequest struct {

	// The name of the machine to rename.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The new name to give this machine.
	NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
	// contains filtered or unexported fields
}

A request to rename a machine in the database.

func (*RenameMachineRequest) Descriptor deprecated

func (*RenameMachineRequest) Descriptor() ([]byte, []int)

Deprecated: Use RenameMachineRequest.ProtoReflect.Descriptor instead.

func (*RenameMachineRequest) GetName

func (x *RenameMachineRequest) GetName() string

func (*RenameMachineRequest) GetNewName

func (x *RenameMachineRequest) GetNewName() string

func (*RenameMachineRequest) ProtoMessage

func (*RenameMachineRequest) ProtoMessage()

func (*RenameMachineRequest) ProtoReflect

func (x *RenameMachineRequest) ProtoReflect() protoreflect.Message

func (*RenameMachineRequest) Reset

func (x *RenameMachineRequest) Reset()

func (*RenameMachineRequest) String

func (x *RenameMachineRequest) String() string

type Switch

type Switch struct {

	// The name of this switch. Uniquely identifies this switch.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of this switch.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The number of ports this switch has.
	Ports int32 `protobuf:"varint,3,opt,name=ports,proto3" json:"ports,omitempty"`
	// The datacenter this switch belongs to.
	Datacenter string `protobuf:"bytes,4,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	// The rack this switch belongs to.
	Rack string `protobuf:"bytes,5,opt,name=rack,proto3" json:"rack,omitempty"`
	// The state of this switch.
	State v1.State `protobuf:"varint,6,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

A switch in the database.

func (*Switch) Descriptor deprecated

func (*Switch) Descriptor() ([]byte, []int)

Deprecated: Use Switch.ProtoReflect.Descriptor instead.

func (*Switch) GetDatacenter

func (x *Switch) GetDatacenter() string

func (*Switch) GetDescription

func (x *Switch) GetDescription() string

func (*Switch) GetName

func (x *Switch) GetName() string

func (*Switch) GetPorts

func (x *Switch) GetPorts() int32

func (*Switch) GetRack

func (x *Switch) GetRack() string

func (*Switch) GetState

func (x *Switch) GetState() v1.State

func (*Switch) ProtoMessage

func (*Switch) ProtoMessage()

func (*Switch) ProtoReflect

func (x *Switch) ProtoReflect() protoreflect.Message

func (*Switch) Reset

func (x *Switch) Reset()

func (*Switch) String

func (x *Switch) String() string

type UnimplementedCrimsonServer

type UnimplementedCrimsonServer struct {
}

UnimplementedCrimsonServer can be embedded to have forward compatible implementations.

func (*UnimplementedCrimsonServer) CreateDRAC

func (*UnimplementedCrimsonServer) CreateMachine

func (*UnimplementedCrimsonServer) CreateNIC

func (*UnimplementedCrimsonServer) CreatePhysicalHost

func (*UnimplementedCrimsonServer) CreateVM

func (*UnimplementedCrimsonServer) DeleteHost

func (*UnimplementedCrimsonServer) DeleteMachine

func (*UnimplementedCrimsonServer) DeleteNIC

func (*UnimplementedCrimsonServer) FindVMSlots

func (*UnimplementedCrimsonServer) ListDRACs

func (*UnimplementedCrimsonServer) ListDatacenters

func (*UnimplementedCrimsonServer) ListFreeIPs

func (*UnimplementedCrimsonServer) ListKVMs

func (*UnimplementedCrimsonServer) ListMachines

func (*UnimplementedCrimsonServer) ListNICs

func (*UnimplementedCrimsonServer) ListOSes

func (*UnimplementedCrimsonServer) ListPhysicalHosts

func (*UnimplementedCrimsonServer) ListPlatforms

func (*UnimplementedCrimsonServer) ListRacks

func (*UnimplementedCrimsonServer) ListSwitches

func (*UnimplementedCrimsonServer) ListVLANs

func (*UnimplementedCrimsonServer) ListVMs

func (*UnimplementedCrimsonServer) RenameMachine

func (*UnimplementedCrimsonServer) UpdateDRAC

func (*UnimplementedCrimsonServer) UpdateMachine

func (*UnimplementedCrimsonServer) UpdateNIC

func (*UnimplementedCrimsonServer) UpdatePhysicalHost

func (*UnimplementedCrimsonServer) UpdateVM

type UpdateDRACRequest

type UpdateDRACRequest struct {

	// The DRAC to update in the database.
	Drac *DRAC `protobuf:"bytes,1,opt,name=drac,proto3" json:"drac,omitempty"`
	// The fields to update in the DRAC.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

A request to update a DRAC in the database.

func (*UpdateDRACRequest) Descriptor deprecated

func (*UpdateDRACRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDRACRequest.ProtoReflect.Descriptor instead.

func (*UpdateDRACRequest) GetDrac

func (x *UpdateDRACRequest) GetDrac() *DRAC

func (*UpdateDRACRequest) GetUpdateMask

func (x *UpdateDRACRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateDRACRequest) ProtoMessage

func (*UpdateDRACRequest) ProtoMessage()

func (*UpdateDRACRequest) ProtoReflect

func (x *UpdateDRACRequest) ProtoReflect() protoreflect.Message

func (*UpdateDRACRequest) Reset

func (x *UpdateDRACRequest) Reset()

func (*UpdateDRACRequest) String

func (x *UpdateDRACRequest) String() string

type UpdateMachineRequest

type UpdateMachineRequest struct {

	// The machine to update in the database.
	Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"`
	// The fields to update in the machine.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

A request to update a machine in the database.

func (*UpdateMachineRequest) Descriptor deprecated

func (*UpdateMachineRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMachineRequest.ProtoReflect.Descriptor instead.

func (*UpdateMachineRequest) GetMachine

func (x *UpdateMachineRequest) GetMachine() *Machine

func (*UpdateMachineRequest) GetUpdateMask

func (x *UpdateMachineRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateMachineRequest) ProtoMessage

func (*UpdateMachineRequest) ProtoMessage()

func (*UpdateMachineRequest) ProtoReflect

func (x *UpdateMachineRequest) ProtoReflect() protoreflect.Message

func (*UpdateMachineRequest) Reset

func (x *UpdateMachineRequest) Reset()

func (*UpdateMachineRequest) String

func (x *UpdateMachineRequest) String() string

type UpdateNICRequest

type UpdateNICRequest struct {

	// The NIC to update in the database.
	Nic *NIC `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"`
	// The fields to update in the NIC.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

A request to update a NIC in the database.

func (*UpdateNICRequest) Descriptor deprecated

func (*UpdateNICRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNICRequest.ProtoReflect.Descriptor instead.

func (*UpdateNICRequest) GetNic

func (x *UpdateNICRequest) GetNic() *NIC

func (*UpdateNICRequest) GetUpdateMask

func (x *UpdateNICRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateNICRequest) ProtoMessage

func (*UpdateNICRequest) ProtoMessage()

func (*UpdateNICRequest) ProtoReflect

func (x *UpdateNICRequest) ProtoReflect() protoreflect.Message

func (*UpdateNICRequest) Reset

func (x *UpdateNICRequest) Reset()

func (*UpdateNICRequest) String

func (x *UpdateNICRequest) String() string

type UpdatePhysicalHostRequest

type UpdatePhysicalHostRequest struct {

	// The host to update in the database.
	Host *PhysicalHost `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// The fields to update in the host.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

A request to update a physical host in the database.

func (*UpdatePhysicalHostRequest) Descriptor deprecated

func (*UpdatePhysicalHostRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePhysicalHostRequest.ProtoReflect.Descriptor instead.

func (*UpdatePhysicalHostRequest) GetHost

func (*UpdatePhysicalHostRequest) GetUpdateMask

func (x *UpdatePhysicalHostRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdatePhysicalHostRequest) ProtoMessage

func (*UpdatePhysicalHostRequest) ProtoMessage()

func (*UpdatePhysicalHostRequest) ProtoReflect

func (*UpdatePhysicalHostRequest) Reset

func (x *UpdatePhysicalHostRequest) Reset()

func (*UpdatePhysicalHostRequest) String

func (x *UpdatePhysicalHostRequest) String() string

type UpdateVMRequest

type UpdateVMRequest struct {

	// The VM to update in the database.
	Vm *VM `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
	// The fields to update in the VM.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

A request to update a VM in the database.

func (*UpdateVMRequest) Descriptor deprecated

func (*UpdateVMRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVMRequest.ProtoReflect.Descriptor instead.

func (*UpdateVMRequest) GetUpdateMask

func (x *UpdateVMRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateVMRequest) GetVm

func (x *UpdateVMRequest) GetVm() *VM

func (*UpdateVMRequest) ProtoMessage

func (*UpdateVMRequest) ProtoMessage()

func (*UpdateVMRequest) ProtoReflect

func (x *UpdateVMRequest) ProtoReflect() protoreflect.Message

func (*UpdateVMRequest) Reset

func (x *UpdateVMRequest) Reset()

func (*UpdateVMRequest) String

func (x *UpdateVMRequest) String() string

type VLAN

type VLAN struct {

	// The ID of this VLAN. Uniquely identifies this VLAN.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// An alias for this VLAN.
	Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	// A description of this VLAN.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// The state of this VLAN.
	State v1.State `protobuf:"varint,4,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// The block of IPv4 addresses belonging to this VLAN.
	CidrBlock string `protobuf:"bytes,5,opt,name=cidr_block,json=cidrBlock,proto3" json:"cidr_block,omitempty"`
	// contains filtered or unexported fields
}

A VLAN in the database.

func (*VLAN) Descriptor deprecated

func (*VLAN) Descriptor() ([]byte, []int)

Deprecated: Use VLAN.ProtoReflect.Descriptor instead.

func (*VLAN) GetAlias

func (x *VLAN) GetAlias() string

func (*VLAN) GetCidrBlock

func (x *VLAN) GetCidrBlock() string

func (*VLAN) GetDescription

func (x *VLAN) GetDescription() string

func (*VLAN) GetId

func (x *VLAN) GetId() int64

func (*VLAN) GetState

func (x *VLAN) GetState() v1.State

func (*VLAN) ProtoMessage

func (*VLAN) ProtoMessage()

func (*VLAN) ProtoReflect

func (x *VLAN) ProtoReflect() protoreflect.Message

func (*VLAN) Reset

func (x *VLAN) Reset()

func (*VLAN) String

func (x *VLAN) String() string

type VM

type VM struct {

	// The name of this VM on the network. Uniquely identifies this VM.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The VLAN this VM belongs to.
	// When creating a VM, omit this field. It will be inferred from the IPv4 address.
	Vlan int64 `protobuf:"varint,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
	// The physical host this VM is running on.
	Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	// The VLAN this VM's physical host belongs to.
	// When creating a VM, omit this field. It will be inferred from the host.
	HostVlan int64 `protobuf:"varint,4,opt,name=host_vlan,json=hostVlan,proto3" json:"host_vlan,omitempty"`
	// The operating system running on this VM.
	Os string `protobuf:"bytes,5,opt,name=os,proto3" json:"os,omitempty"`
	// A description of this VM.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// The deployment ticket associated with this VM.
	DeploymentTicket string `protobuf:"bytes,7,opt,name=deployment_ticket,json=deploymentTicket,proto3" json:"deployment_ticket,omitempty"`
	// The IPv4 address associated with this host.
	Ipv4 string `protobuf:"bytes,8,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	// The state of this VM.
	State v1.State `protobuf:"varint,9,opt,name=state,proto3,enum=common.State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

A VM in the database.

func (*VM) Descriptor deprecated

func (*VM) Descriptor() ([]byte, []int)

Deprecated: Use VM.ProtoReflect.Descriptor instead.

func (*VM) GetDeploymentTicket

func (x *VM) GetDeploymentTicket() string

func (*VM) GetDescription

func (x *VM) GetDescription() string

func (*VM) GetHost

func (x *VM) GetHost() string

func (*VM) GetHostVlan

func (x *VM) GetHostVlan() int64

func (*VM) GetIpv4

func (x *VM) GetIpv4() string

func (*VM) GetName

func (x *VM) GetName() string

func (*VM) GetOs

func (x *VM) GetOs() string

func (*VM) GetState

func (x *VM) GetState() v1.State

func (*VM) GetVlan

func (x *VM) GetVlan() int64

func (*VM) ProtoMessage

func (*VM) ProtoMessage()

func (*VM) ProtoReflect

func (x *VM) ProtoReflect() protoreflect.Message

func (*VM) Reset

func (x *VM) Reset()

func (*VM) String

func (x *VM) String() string

Jump to

Keyboard shortcuts

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