luci: go.chromium.org/luci/machine-db/api/config/v1 Index | Files

package config

import "go.chromium.org/luci/machine-db/api/config/v1"

Index

Package Files

datacenters.pb.go generate.go oses.pb.go platforms.pb.go vlans.pb.go

type Datacenter Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A datacenter to store in the database.

func (*Datacenter) Descriptor Uses

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

func (*Datacenter) GetDescription Uses

func (m *Datacenter) GetDescription() string

func (*Datacenter) GetKvm Uses

func (m *Datacenter) GetKvm() []*KVM

func (*Datacenter) GetName Uses

func (m *Datacenter) GetName() string

func (*Datacenter) GetRack Uses

func (m *Datacenter) GetRack() []*Rack

func (*Datacenter) GetState Uses

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

func (*Datacenter) ProtoMessage Uses

func (*Datacenter) ProtoMessage()

func (*Datacenter) Reset Uses

func (m *Datacenter) Reset()

func (*Datacenter) String Uses

func (m *Datacenter) String() string

func (*Datacenter) XXX_DiscardUnknown Uses

func (m *Datacenter) XXX_DiscardUnknown()

func (*Datacenter) XXX_Marshal Uses

func (m *Datacenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Datacenter) XXX_Merge Uses

func (m *Datacenter) XXX_Merge(src proto.Message)

func (*Datacenter) XXX_Size Uses

func (m *Datacenter) XXX_Size() int

func (*Datacenter) XXX_Unmarshal Uses

func (m *Datacenter) XXX_Unmarshal(b []byte) error

type Datacenters Uses

type Datacenters struct {
    // A list of names of datacenter config files.
    Datacenter           []string `protobuf:"bytes,1,rep,name=datacenter,proto3" json:"datacenter,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A list of datacenter config files.

func (*Datacenters) Descriptor Uses

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

func (*Datacenters) GetDatacenter Uses

func (m *Datacenters) GetDatacenter() []string

func (*Datacenters) ProtoMessage Uses

func (*Datacenters) ProtoMessage()

func (*Datacenters) Reset Uses

func (m *Datacenters) Reset()

func (*Datacenters) String Uses

func (m *Datacenters) String() string

func (*Datacenters) XXX_DiscardUnknown Uses

func (m *Datacenters) XXX_DiscardUnknown()

func (*Datacenters) XXX_Marshal Uses

func (m *Datacenters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Datacenters) XXX_Merge Uses

func (m *Datacenters) XXX_Merge(src proto.Message)

func (*Datacenters) XXX_Size Uses

func (m *Datacenters) XXX_Size() int

func (*Datacenters) XXX_Unmarshal Uses

func (m *Datacenters) XXX_Unmarshal(b []byte) error

type KVM Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A KVM to store in the database.

func (*KVM) Descriptor Uses

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

func (*KVM) GetDescription Uses

func (m *KVM) GetDescription() string

func (*KVM) GetIpv4 Uses

func (m *KVM) GetIpv4() string

func (*KVM) GetMacAddress Uses

func (m *KVM) GetMacAddress() string

func (*KVM) GetName Uses

func (m *KVM) GetName() string

func (*KVM) GetPlatform Uses

func (m *KVM) GetPlatform() string

func (*KVM) GetRack Uses

func (m *KVM) GetRack() string

func (*KVM) GetState Uses

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

func (*KVM) ProtoMessage Uses

func (*KVM) ProtoMessage()

func (*KVM) Reset Uses

func (m *KVM) Reset()

func (*KVM) String Uses

func (m *KVM) String() string

func (*KVM) XXX_DiscardUnknown Uses

func (m *KVM) XXX_DiscardUnknown()

func (*KVM) XXX_Marshal Uses

func (m *KVM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KVM) XXX_Merge Uses

func (m *KVM) XXX_Merge(src proto.Message)

func (*KVM) XXX_Size Uses

func (m *KVM) XXX_Size() int

func (*KVM) XXX_Unmarshal Uses

func (m *KVM) XXX_Unmarshal(b []byte) error

type OS Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

An operating system to store in the database.

func (*OS) Descriptor Uses

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

func (*OS) GetDescription Uses

func (m *OS) GetDescription() string

func (*OS) GetName Uses

func (m *OS) GetName() string

func (*OS) ProtoMessage Uses

func (*OS) ProtoMessage()

func (*OS) Reset Uses

func (m *OS) Reset()

func (*OS) String Uses

func (m *OS) String() string

func (*OS) XXX_DiscardUnknown Uses

func (m *OS) XXX_DiscardUnknown()

func (*OS) XXX_Marshal Uses

func (m *OS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OS) XXX_Merge Uses

func (m *OS) XXX_Merge(src proto.Message)

func (*OS) XXX_Size Uses

func (m *OS) XXX_Size() int

func (*OS) XXX_Unmarshal Uses

func (m *OS) XXX_Unmarshal(b []byte) error

type OSes Uses

type OSes struct {
    // A list of operating systems.
    OperatingSystem      []*OS    `protobuf:"bytes,1,rep,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A list of operating systems.

func (*OSes) Descriptor Uses

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

func (*OSes) GetOperatingSystem Uses

func (m *OSes) GetOperatingSystem() []*OS

func (*OSes) ProtoMessage Uses

func (*OSes) ProtoMessage()

func (*OSes) Reset Uses

func (m *OSes) Reset()

func (*OSes) String Uses

func (m *OSes) String() string

func (*OSes) XXX_DiscardUnknown Uses

func (m *OSes) XXX_DiscardUnknown()

func (*OSes) XXX_Marshal Uses

func (m *OSes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OSes) XXX_Merge Uses

func (m *OSes) XXX_Merge(src proto.Message)

func (*OSes) XXX_Size Uses

func (m *OSes) XXX_Size() int

func (*OSes) XXX_Unmarshal Uses

func (m *OSes) XXX_Unmarshal(b []byte) error

type Platform Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A platform to store in the database.

func (*Platform) Descriptor Uses

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

func (*Platform) GetDescription Uses

func (m *Platform) GetDescription() string

func (*Platform) GetManufacturer Uses

func (m *Platform) GetManufacturer() string

func (*Platform) GetName Uses

func (m *Platform) GetName() string

func (*Platform) ProtoMessage Uses

func (*Platform) ProtoMessage()

func (*Platform) Reset Uses

func (m *Platform) Reset()

func (*Platform) String Uses

func (m *Platform) String() string

func (*Platform) XXX_DiscardUnknown Uses

func (m *Platform) XXX_DiscardUnknown()

func (*Platform) XXX_Marshal Uses

func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Platform) XXX_Merge Uses

func (m *Platform) XXX_Merge(src proto.Message)

func (*Platform) XXX_Size Uses

func (m *Platform) XXX_Size() int

func (*Platform) XXX_Unmarshal Uses

func (m *Platform) XXX_Unmarshal(b []byte) error

type Platforms Uses

type Platforms struct {
    // A list of platforms.
    Platform             []*Platform `protobuf:"bytes,1,rep,name=platform,proto3" json:"platform,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

A list of platforms.

func (*Platforms) Descriptor Uses

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

func (*Platforms) GetPlatform Uses

func (m *Platforms) GetPlatform() []*Platform

func (*Platforms) ProtoMessage Uses

func (*Platforms) ProtoMessage()

func (*Platforms) Reset Uses

func (m *Platforms) Reset()

func (*Platforms) String Uses

func (m *Platforms) String() string

func (*Platforms) XXX_DiscardUnknown Uses

func (m *Platforms) XXX_DiscardUnknown()

func (*Platforms) XXX_Marshal Uses

func (m *Platforms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Platforms) XXX_Merge Uses

func (m *Platforms) XXX_Merge(src proto.Message)

func (*Platforms) XXX_Size Uses

func (m *Platforms) XXX_Size() int

func (*Platforms) XXX_Unmarshal Uses

func (m *Platforms) XXX_Unmarshal(b []byte) error

type Rack Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A rack to store in the database.

func (*Rack) Descriptor Uses

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

func (*Rack) GetDescription Uses

func (m *Rack) GetDescription() string

func (*Rack) GetKvm Uses

func (m *Rack) GetKvm() string

func (*Rack) GetName Uses

func (m *Rack) GetName() string

func (*Rack) GetState Uses

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

func (*Rack) GetSwitch Uses

func (m *Rack) GetSwitch() []*Switch

func (*Rack) ProtoMessage Uses

func (*Rack) ProtoMessage()

func (*Rack) Reset Uses

func (m *Rack) Reset()

func (*Rack) String Uses

func (m *Rack) String() string

func (*Rack) XXX_DiscardUnknown Uses

func (m *Rack) XXX_DiscardUnknown()

func (*Rack) XXX_Marshal Uses

func (m *Rack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Rack) XXX_Merge Uses

func (m *Rack) XXX_Merge(src proto.Message)

func (*Rack) XXX_Size Uses

func (m *Rack) XXX_Size() int

func (*Rack) XXX_Unmarshal Uses

func (m *Rack) XXX_Unmarshal(b []byte) error

type Switch Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A switch to store in the database.

func (*Switch) Descriptor Uses

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

func (*Switch) GetDescription Uses

func (m *Switch) GetDescription() string

func (*Switch) GetName Uses

func (m *Switch) GetName() string

func (*Switch) GetPorts Uses

func (m *Switch) GetPorts() int32

func (*Switch) GetState Uses

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

func (*Switch) ProtoMessage Uses

func (*Switch) ProtoMessage()

func (*Switch) Reset Uses

func (m *Switch) Reset()

func (*Switch) String Uses

func (m *Switch) String() string

func (*Switch) XXX_DiscardUnknown Uses

func (m *Switch) XXX_DiscardUnknown()

func (*Switch) XXX_Marshal Uses

func (m *Switch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Switch) XXX_Merge Uses

func (m *Switch) XXX_Merge(src proto.Message)

func (*Switch) XXX_Size Uses

func (m *Switch) XXX_Size() int

func (*Switch) XXX_Unmarshal Uses

func (m *Switch) XXX_Unmarshal(b []byte) error

type VLAN Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A VLAN to store in the database.

func (*VLAN) Descriptor Uses

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

func (*VLAN) GetAlias Uses

func (m *VLAN) GetAlias() string

func (*VLAN) GetCidrBlock Uses

func (m *VLAN) GetCidrBlock() string

func (*VLAN) GetId Uses

func (m *VLAN) GetId() int64

func (*VLAN) GetState Uses

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

func (*VLAN) ProtoMessage Uses

func (*VLAN) ProtoMessage()

func (*VLAN) Reset Uses

func (m *VLAN) Reset()

func (*VLAN) String Uses

func (m *VLAN) String() string

func (*VLAN) XXX_DiscardUnknown Uses

func (m *VLAN) XXX_DiscardUnknown()

func (*VLAN) XXX_Marshal Uses

func (m *VLAN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLAN) XXX_Merge Uses

func (m *VLAN) XXX_Merge(src proto.Message)

func (*VLAN) XXX_Size Uses

func (m *VLAN) XXX_Size() int

func (*VLAN) XXX_Unmarshal Uses

func (m *VLAN) XXX_Unmarshal(b []byte) error

type VLANs Uses

type VLANs struct {
    // A list of VLANs.
    Vlan                 []*VLAN  `protobuf:"bytes,1,rep,name=vlan,proto3" json:"vlan,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A list of VLANs.

func (*VLANs) Descriptor Uses

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

func (*VLANs) GetVlan Uses

func (m *VLANs) GetVlan() []*VLAN

func (*VLANs) ProtoMessage Uses

func (*VLANs) ProtoMessage()

func (*VLANs) Reset Uses

func (m *VLANs) Reset()

func (*VLANs) String Uses

func (m *VLANs) String() string

func (*VLANs) XXX_DiscardUnknown Uses

func (m *VLANs) XXX_DiscardUnknown()

func (*VLANs) XXX_Marshal Uses

func (m *VLANs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANs) XXX_Merge Uses

func (m *VLANs) XXX_Merge(src proto.Message)

func (*VLANs) XXX_Size Uses

func (m *VLANs) XXX_Size() int

func (*VLANs) XXX_Unmarshal Uses

func (m *VLANs) XXX_Unmarshal(b []byte) error

Package config imports 4 packages (graph) and is imported by 2 packages. Updated 2018-12-14. Refresh now. Tools for package owners.