Documentation
¶
Index ¶
- Variables
- type Datacenter
- func (*Datacenter) Descriptor() ([]byte, []int)deprecated
- func (x *Datacenter) GetDescription() string
- func (x *Datacenter) GetKvm() []*KVM
- func (x *Datacenter) GetName() string
- func (x *Datacenter) GetRack() []*Rack
- func (x *Datacenter) GetState() v1.State
- func (*Datacenter) ProtoMessage()
- func (x *Datacenter) ProtoReflect() protoreflect.Message
- func (x *Datacenter) Reset()
- func (x *Datacenter) String() string
- type Datacenters
- type KVM
- func (*KVM) Descriptor() ([]byte, []int)deprecated
- func (x *KVM) GetDescription() string
- func (x *KVM) GetIpv4() string
- func (x *KVM) GetMacAddress() string
- func (x *KVM) GetName() string
- func (x *KVM) GetPlatform() string
- func (x *KVM) GetRack() string
- func (x *KVM) GetState() v1.State
- func (*KVM) ProtoMessage()
- func (x *KVM) ProtoReflect() protoreflect.Message
- func (x *KVM) Reset()
- func (x *KVM) String() string
- type OS
- type OSes
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)deprecated
- func (x *Platform) GetDescription() string
- func (x *Platform) GetManufacturer() string
- func (x *Platform) GetName() string
- func (*Platform) ProtoMessage()
- func (x *Platform) ProtoReflect() protoreflect.Message
- func (x *Platform) Reset()
- func (x *Platform) String() string
- type Platforms
- type Rack
- func (*Rack) Descriptor() ([]byte, []int)deprecated
- func (x *Rack) GetDescription() string
- func (x *Rack) GetKvm() string
- func (x *Rack) GetName() string
- func (x *Rack) GetState() v1.State
- func (x *Rack) GetSwitch() []*Switch
- func (*Rack) ProtoMessage()
- func (x *Rack) ProtoReflect() protoreflect.Message
- func (x *Rack) Reset()
- func (x *Rack) String() string
- type Switch
- func (*Switch) Descriptor() ([]byte, []int)deprecated
- func (x *Switch) GetDescription() string
- func (x *Switch) GetName() string
- func (x *Switch) GetPorts() int32
- func (x *Switch) GetState() v1.State
- func (*Switch) ProtoMessage()
- func (x *Switch) ProtoReflect() protoreflect.Message
- func (x *Switch) Reset()
- func (x *Switch) String() string
- type VLAN
- func (*VLAN) Descriptor() ([]byte, []int)deprecated
- func (x *VLAN) GetAlias() string
- func (x *VLAN) GetCidrBlock() string
- func (x *VLAN) GetId() int64
- func (x *VLAN) GetState() v1.State
- func (*VLAN) ProtoMessage()
- func (x *VLAN) ProtoReflect() protoreflect.Message
- func (x *VLAN) Reset()
- func (x *VLAN) String() string
- type VLANs
Constants ¶
This section is empty.
Variables ¶
View Source
var File_go_chromium_org_luci_machine_db_api_config_v1_datacenters_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_config_v1_oses_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_config_v1_platforms_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_machine_db_api_config_v1_vlans_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Datacenter ¶
type Datacenter struct { // The name of this datacenter. Must be globally unique. 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 racks belonging to this datacenter. Rack []*Rack `protobuf:"bytes,3,rep,name=rack,proto3" json:"rack,omitempty"` // The state of this datacenter. State v1.State `protobuf:"varint,4,opt,name=state,proto3,enum=common.State" json:"state,omitempty"` // The KVMs belonging to this datacenter. Kvm []*KVM `protobuf:"bytes,5,rep,name=kvm,proto3" json:"kvm,omitempty"` // contains filtered or unexported fields }
A datacenter to store 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) GetKvm ¶
func (x *Datacenter) GetKvm() []*KVM
func (*Datacenter) GetName ¶
func (x *Datacenter) GetName() string
func (*Datacenter) GetRack ¶
func (x *Datacenter) GetRack() []*Rack
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 Datacenters ¶
type Datacenters struct { // A list of names of datacenter config files. Datacenter []string `protobuf:"bytes,1,rep,name=datacenter,proto3" json:"datacenter,omitempty"` // contains filtered or unexported fields }
A list of datacenter config files.
func (*Datacenters) Descriptor
deprecated
func (*Datacenters) Descriptor() ([]byte, []int)
Deprecated: Use Datacenters.ProtoReflect.Descriptor instead.
func (*Datacenters) GetDatacenter ¶
func (x *Datacenters) GetDatacenter() []string
func (*Datacenters) ProtoMessage ¶
func (*Datacenters) ProtoMessage()
func (*Datacenters) ProtoReflect ¶
func (x *Datacenters) ProtoReflect() protoreflect.Message
func (*Datacenters) Reset ¶
func (x *Datacenters) Reset()
func (*Datacenters) String ¶
func (x *Datacenters) String() string
type KVM ¶
type KVM struct { // The name of this KVM on the network. Must be globally unique. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A description of this KVM. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The type of platform this KVM is. Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"` // The rack this KVM belongs to. // Must be the name of a rack in the same datacenter. Rack string `protobuf:"bytes,4,opt,name=rack,proto3" json:"rack,omitempty"` // The MAC address associated with this KVM. MacAddress string `protobuf:"bytes,5,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` // The IPv4 address associated with this KVM. Ipv4 string `protobuf:"bytes,6,opt,name=ipv4,proto3" json:"ipv4,omitempty"` // The state of this KVM. State v1.State `protobuf:"varint,7,opt,name=state,proto3,enum=common.State" json:"state,omitempty"` // contains filtered or unexported fields }
A KVM to store in the database.
func (*KVM) Descriptor
deprecated
func (*KVM) GetDescription ¶
func (*KVM) GetMacAddress ¶
func (*KVM) GetPlatform ¶
func (*KVM) ProtoMessage ¶
func (*KVM) ProtoMessage()
func (*KVM) ProtoReflect ¶
func (x *KVM) ProtoReflect() protoreflect.Message
type OS ¶
type OS struct { // The name of this operating system. Must be unique. 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 to store in the database.
func (*OS) Descriptor
deprecated
func (*OS) GetDescription ¶
func (*OS) ProtoMessage ¶
func (*OS) ProtoMessage()
func (*OS) ProtoReflect ¶
func (x *OS) ProtoReflect() protoreflect.Message
type OSes ¶
type OSes struct { // A list of operating systems. OperatingSystem []*OS `protobuf:"bytes,1,rep,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"` // contains filtered or unexported fields }
A list of operating systems.
func (*OSes) Descriptor
deprecated
func (*OSes) GetOperatingSystem ¶
func (*OSes) ProtoMessage ¶
func (*OSes) ProtoMessage()
func (*OSes) ProtoReflect ¶
func (x *OSes) ProtoReflect() protoreflect.Message
type Platform ¶
type Platform struct { // The name of this platform. Must be unique. 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 name of the hardware manufacturer of this platform. Manufacturer string `protobuf:"bytes,3,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"` // contains filtered or unexported fields }
A platform to store in the database.
func (*Platform) Descriptor
deprecated
func (*Platform) GetDescription ¶
func (*Platform) GetManufacturer ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) ProtoReflect ¶
func (x *Platform) ProtoReflect() protoreflect.Message
type Platforms ¶
type Platforms struct { // A list of platforms. Platform []*Platform `protobuf:"bytes,1,rep,name=platform,proto3" json:"platform,omitempty"` // contains filtered or unexported fields }
A list of platforms.
func (*Platforms) Descriptor
deprecated
func (*Platforms) GetPlatform ¶
func (*Platforms) ProtoMessage ¶
func (*Platforms) ProtoMessage()
func (*Platforms) ProtoReflect ¶
func (x *Platforms) ProtoReflect() protoreflect.Message
type Rack ¶
type Rack struct { // The name of this rack. Must be globally unique. 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 switches belonging to this rack. Switch []*Switch `protobuf:"bytes,3,rep,name=switch,proto3" json:"switch,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 to store in the database.
func (*Rack) Descriptor
deprecated
func (*Rack) GetDescription ¶
func (*Rack) ProtoMessage ¶
func (*Rack) ProtoMessage()
func (*Rack) ProtoReflect ¶
func (x *Rack) ProtoReflect() protoreflect.Message
type Switch ¶
type Switch struct { // The name of this switch. Must be globally unique. 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 state of this switch. State v1.State `protobuf:"varint,4,opt,name=state,proto3,enum=common.State" json:"state,omitempty"` // contains filtered or unexported fields }
A switch to store in the database.
func (*Switch) Descriptor
deprecated
func (*Switch) GetDescription ¶
func (*Switch) ProtoMessage ¶
func (*Switch) ProtoMessage()
func (*Switch) ProtoReflect ¶
func (x *Switch) ProtoReflect() protoreflect.Message
type VLAN ¶
type VLAN struct { // The ID of this VLAN. Must be unique. 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"` // The block of IPv4 addresses belonging to this VLAN. CidrBlock string `protobuf:"bytes,3,opt,name=cidr_block,json=cidrBlock,proto3" json:"cidr_block,omitempty"` // The state of this VLAN. State v1.State `protobuf:"varint,4,opt,name=state,proto3,enum=common.State" json:"state,omitempty"` // contains filtered or unexported fields }
A VLAN to store in the database.
func (*VLAN) Descriptor
deprecated
func (*VLAN) GetCidrBlock ¶
func (*VLAN) ProtoMessage ¶
func (*VLAN) ProtoMessage()
func (*VLAN) ProtoReflect ¶
func (x *VLAN) ProtoReflect() protoreflect.Message
type VLANs ¶
type VLANs struct { // A list of VLANs. Vlan []*VLAN `protobuf:"bytes,1,rep,name=vlan,proto3" json:"vlan,omitempty"` // contains filtered or unexported fields }
A list of VLANs.
func (*VLANs) Descriptor
deprecated
func (*VLANs) ProtoMessage ¶
func (*VLANs) ProtoMessage()
func (*VLANs) ProtoReflect ¶
func (x *VLANs) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.