config

package
v0.0.0-...-a0a3655 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

A datacenter to store in the database.

func (*Datacenter) Descriptor

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

func (*Datacenter) GetDescription

func (m *Datacenter) GetDescription() string

func (*Datacenter) GetKvm

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

func (*Datacenter) GetName

func (m *Datacenter) GetName() string

func (*Datacenter) GetRack

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

func (*Datacenter) GetState

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

func (*Datacenter) ProtoMessage

func (*Datacenter) ProtoMessage()

func (*Datacenter) Reset

func (m *Datacenter) Reset()

func (*Datacenter) String

func (m *Datacenter) String() string

func (*Datacenter) XXX_DiscardUnknown

func (m *Datacenter) XXX_DiscardUnknown()

func (*Datacenter) XXX_Marshal

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

func (*Datacenter) XXX_Merge

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

func (*Datacenter) XXX_Size

func (m *Datacenter) XXX_Size() int

func (*Datacenter) XXX_Unmarshal

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

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

A list of datacenter config files.

func (*Datacenters) Descriptor

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

func (*Datacenters) GetDatacenter

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

func (*Datacenters) ProtoMessage

func (*Datacenters) ProtoMessage()

func (*Datacenters) Reset

func (m *Datacenters) Reset()

func (*Datacenters) String

func (m *Datacenters) String() string

func (*Datacenters) XXX_DiscardUnknown

func (m *Datacenters) XXX_DiscardUnknown()

func (*Datacenters) XXX_Marshal

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

func (*Datacenters) XXX_Merge

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

func (*Datacenters) XXX_Size

func (m *Datacenters) XXX_Size() int

func (*Datacenters) XXX_Unmarshal

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

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

A KVM to store in the database.

func (*KVM) Descriptor

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

func (*KVM) GetDescription

func (m *KVM) GetDescription() string

func (*KVM) GetIpv4

func (m *KVM) GetIpv4() string

func (*KVM) GetMacAddress

func (m *KVM) GetMacAddress() string

func (*KVM) GetName

func (m *KVM) GetName() string

func (*KVM) GetPlatform

func (m *KVM) GetPlatform() string

func (*KVM) GetRack

func (m *KVM) GetRack() string

func (*KVM) GetState

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

func (*KVM) ProtoMessage

func (*KVM) ProtoMessage()

func (*KVM) Reset

func (m *KVM) Reset()

func (*KVM) String

func (m *KVM) String() string

func (*KVM) XXX_DiscardUnknown

func (m *KVM) XXX_DiscardUnknown()

func (*KVM) XXX_Marshal

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

func (*KVM) XXX_Merge

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

func (*KVM) XXX_Size

func (m *KVM) XXX_Size() int

func (*KVM) XXX_Unmarshal

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

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

An operating system to store in the database.

func (*OS) Descriptor

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

func (*OS) GetDescription

func (m *OS) GetDescription() string

func (*OS) GetName

func (m *OS) GetName() string

func (*OS) ProtoMessage

func (*OS) ProtoMessage()

func (*OS) Reset

func (m *OS) Reset()

func (*OS) String

func (m *OS) String() string

func (*OS) XXX_DiscardUnknown

func (m *OS) XXX_DiscardUnknown()

func (*OS) XXX_Marshal

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

func (*OS) XXX_Merge

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

func (*OS) XXX_Size

func (m *OS) XXX_Size() int

func (*OS) XXX_Unmarshal

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

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

A list of operating systems.

func (*OSes) Descriptor

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

func (*OSes) GetOperatingSystem

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

func (*OSes) ProtoMessage

func (*OSes) ProtoMessage()

func (*OSes) Reset

func (m *OSes) Reset()

func (*OSes) String

func (m *OSes) String() string

func (*OSes) XXX_DiscardUnknown

func (m *OSes) XXX_DiscardUnknown()

func (*OSes) XXX_Marshal

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

func (*OSes) XXX_Merge

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

func (*OSes) XXX_Size

func (m *OSes) XXX_Size() int

func (*OSes) XXX_Unmarshal

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

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

A platform to store in the database.

func (*Platform) Descriptor

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

func (*Platform) GetDescription

func (m *Platform) GetDescription() string

func (*Platform) GetManufacturer

func (m *Platform) GetManufacturer() string

func (*Platform) GetName

func (m *Platform) GetName() string

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) Reset

func (m *Platform) Reset()

func (*Platform) String

func (m *Platform) String() string

func (*Platform) XXX_DiscardUnknown

func (m *Platform) XXX_DiscardUnknown()

func (*Platform) XXX_Marshal

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

func (*Platform) XXX_Merge

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

func (*Platform) XXX_Size

func (m *Platform) XXX_Size() int

func (*Platform) XXX_Unmarshal

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

type Platforms

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

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

func (*Platforms) GetPlatform

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

func (*Platforms) ProtoMessage

func (*Platforms) ProtoMessage()

func (*Platforms) Reset

func (m *Platforms) Reset()

func (*Platforms) String

func (m *Platforms) String() string

func (*Platforms) XXX_DiscardUnknown

func (m *Platforms) XXX_DiscardUnknown()

func (*Platforms) XXX_Marshal

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

func (*Platforms) XXX_Merge

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

func (*Platforms) XXX_Size

func (m *Platforms) XXX_Size() int

func (*Platforms) XXX_Unmarshal

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

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

A rack to store in the database.

func (*Rack) Descriptor

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

func (*Rack) GetDescription

func (m *Rack) GetDescription() string

func (*Rack) GetKvm

func (m *Rack) GetKvm() string

func (*Rack) GetName

func (m *Rack) GetName() string

func (*Rack) GetState

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

func (*Rack) GetSwitch

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

func (*Rack) ProtoMessage

func (*Rack) ProtoMessage()

func (*Rack) Reset

func (m *Rack) Reset()

func (*Rack) String

func (m *Rack) String() string

func (*Rack) XXX_DiscardUnknown

func (m *Rack) XXX_DiscardUnknown()

func (*Rack) XXX_Marshal

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

func (*Rack) XXX_Merge

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

func (*Rack) XXX_Size

func (m *Rack) XXX_Size() int

func (*Rack) XXX_Unmarshal

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

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

A switch to store in the database.

func (*Switch) Descriptor

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

func (*Switch) GetDescription

func (m *Switch) GetDescription() string

func (*Switch) GetName

func (m *Switch) GetName() string

func (*Switch) GetPorts

func (m *Switch) GetPorts() int32

func (*Switch) GetState

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

func (*Switch) ProtoMessage

func (*Switch) ProtoMessage()

func (*Switch) Reset

func (m *Switch) Reset()

func (*Switch) String

func (m *Switch) String() string

func (*Switch) XXX_DiscardUnknown

func (m *Switch) XXX_DiscardUnknown()

func (*Switch) XXX_Marshal

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

func (*Switch) XXX_Merge

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

func (*Switch) XXX_Size

func (m *Switch) XXX_Size() int

func (*Switch) XXX_Unmarshal

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

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

A VLAN to store in the database.

func (*VLAN) Descriptor

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

func (*VLAN) GetAlias

func (m *VLAN) GetAlias() string

func (*VLAN) GetCidrBlock

func (m *VLAN) GetCidrBlock() string

func (*VLAN) GetId

func (m *VLAN) GetId() int64

func (*VLAN) GetState

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

func (*VLAN) ProtoMessage

func (*VLAN) ProtoMessage()

func (*VLAN) Reset

func (m *VLAN) Reset()

func (*VLAN) String

func (m *VLAN) String() string

func (*VLAN) XXX_DiscardUnknown

func (m *VLAN) XXX_DiscardUnknown()

func (*VLAN) XXX_Marshal

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

func (*VLAN) XXX_Merge

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

func (*VLAN) XXX_Size

func (m *VLAN) XXX_Size() int

func (*VLAN) XXX_Unmarshal

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

type VLANs

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

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

func (*VLANs) GetVlan

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

func (*VLANs) ProtoMessage

func (*VLANs) ProtoMessage()

func (*VLANs) Reset

func (m *VLANs) Reset()

func (*VLANs) String

func (m *VLANs) String() string

func (*VLANs) XXX_DiscardUnknown

func (m *VLANs) XXX_DiscardUnknown()

func (*VLANs) XXX_Marshal

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

func (*VLANs) XXX_Merge

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

func (*VLANs) XXX_Size

func (m *VLANs) XXX_Size() int

func (*VLANs) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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