xir

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 17 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Routing_name = map[int32]string{
		0: "ManualRouting",
		1: "StaticRouting",
	}
	Routing_value = map[string]int32{
		"ManualRouting": 0,
		"StaticRouting": 1,
	}
)

Enum value maps for Routing.

View Source
var (
	Addressing_name = map[int32]string{
		0: "ManualAddressing",
		1: "IPv4Addressing",
	}
	Addressing_value = map[string]int32{
		"ManualAddressing": 0,
		"IPv4Addressing":   1,
	}
)

Enum value maps for Addressing.

View Source
var (
	ISA_name = map[int32]string{
		0: "X86_64",
	}
	ISA_value = map[string]int32{
		"X86_64": 0,
	}
)

Enum value maps for ISA.

View Source
var (
	MemoryType_name = map[int32]string{
		0: "DDR3",
		1: "DDR4",
	}
	MemoryType_value = map[string]int32{
		"DDR3": 0,
		"DDR4": 1,
	}
)

Enum value maps for MemoryType.

View Source
var (
	NICModel_name = map[int32]string{
		0:     "Intel200",
		1:     "Intel300",
		2:     "Intel500",
		3:     "Intel700",
		4:     "Intel800",
		50:    "Intel7000",
		51:    "Intel8000",
		52:    "Intel9000",
		101:   "ConnectX4",
		102:   "ConnectX5",
		103:   "ConnectX6",
		201:   "NetXtreme2",
		301:   "QCA9000",
		10001: "Virtio",
		10002: "E1000",
		10003: "E1000E",
		10004: "VF",
	}
	NICModel_value = map[string]int32{
		"Intel200":   0,
		"Intel300":   1,
		"Intel500":   2,
		"Intel700":   3,
		"Intel800":   4,
		"Intel7000":  50,
		"Intel8000":  51,
		"Intel9000":  52,
		"ConnectX4":  101,
		"ConnectX5":  102,
		"ConnectX6":  103,
		"NetXtreme2": 201,
		"QCA9000":    301,
		"Virtio":     10001,
		"E1000":      10002,
		"E1000E":     10003,
		"VF":         10004,
	}
)

Enum value maps for NICModel.

View Source
var (
	NICKind_name = map[int32]string{
		0: "ETH",
		1: "ENP",
		2: "ENO",
		3: "ENS",
		4: "WLP",
		5: "SWP",
		6: "IPMI",
		7: "Combo",
	}
	NICKind_value = map[string]int32{
		"ETH":   0,
		"ENP":   1,
		"ENO":   2,
		"ENS":   3,
		"WLP":   4,
		"SWP":   5,
		"IPMI":  6,
		"Combo": 7,
	}
)

Enum value maps for NICKind.

View Source
var (
	Layer1_name = map[int32]string{
		0:  "Layer1_Undefined",
		1:  "Base100T",
		2:  "Base1000T",
		3:  "Base1000X",
		4:  "Base1000CX",
		5:  "Base1000SX",
		6:  "Base1000LX",
		7:  "Base1000LX10",
		8:  "Base1000EX",
		9:  "Base1000BX10",
		10: "Base1000ZX",
		11: "GBase10T",
		12: "GBase10CR",
		13: "GBase10SR",
		14: "GBase10LR",
		15: "GBase10LRM",
		16: "GBase10ER",
		17: "GBase10ZR",
		18: "GBase10LX4",
		19: "GBase10PR",
		20: "GBase25CR",
		21: "GBase25SR",
		22: "GBase25LR",
		23: "GBase25ER",
		24: "GBase40CR4",
		25: "GBase40SR4",
		26: "GBase40LR4",
		27: "GBase40ER4",
		28: "GBase100CR4",
		29: "GBase100SR4",
		30: "GBase100SR10",
		31: "GBase100LR4",
		32: "GBase100ER4",
		33: "RS232",
		34: "Uart",
		35: "GBase50SR4",
		36: "GBase50LR4",
		37: "GBase50ER4",
		38: "GBase50CR",
		39: "GBase50KR",
		40: "GBase50SR",
		41: "GBase50LR",
		42: "GBase50FR",
		43: "GBase50ER",
		44: "LAUI_2",
		45: "GAUI50_1",
		46: "GAUI50_2",
		47: "GBase200CR4",
		48: "GBase200KR4",
		49: "GBase200SR4",
		50: "GBase200DR4",
		51: "GBase200FR4",
		52: "GBase200LR4",
		53: "GBase200ER4",
		54: "GAUI200_4",
		55: "GAUI200_8",
		56: "GBase400SR16",
		57: "GBase400SR8",
		58: "GBase400SR4_2",
		59: "GBase400DR4",
		60: "GBase400FR8",
		61: "GBase400ER8",
		62: "GBase400ZR",
		63: "GAUI400_16",
		64: "GAUI400_8",
		65: "XBee",
		66: "ZWave",
		67: "Zigbee",
		68: "CXP100",
		69: "CXP120",
	}
	Layer1_value = map[string]int32{
		"Layer1_Undefined": 0,
		"Base100T":         1,
		"Base1000T":        2,
		"Base1000X":        3,
		"Base1000CX":       4,
		"Base1000SX":       5,
		"Base1000LX":       6,
		"Base1000LX10":     7,
		"Base1000EX":       8,
		"Base1000BX10":     9,
		"Base1000ZX":       10,
		"GBase10T":         11,
		"GBase10CR":        12,
		"GBase10SR":        13,
		"GBase10LR":        14,
		"GBase10LRM":       15,
		"GBase10ER":        16,
		"GBase10ZR":        17,
		"GBase10LX4":       18,
		"GBase10PR":        19,
		"GBase25CR":        20,
		"GBase25SR":        21,
		"GBase25LR":        22,
		"GBase25ER":        23,
		"GBase40CR4":       24,
		"GBase40SR4":       25,
		"GBase40LR4":       26,
		"GBase40ER4":       27,
		"GBase100CR4":      28,
		"GBase100SR4":      29,
		"GBase100SR10":     30,
		"GBase100LR4":      31,
		"GBase100ER4":      32,
		"RS232":            33,
		"Uart":             34,
		"GBase50SR4":       35,
		"GBase50LR4":       36,
		"GBase50ER4":       37,
		"GBase50CR":        38,
		"GBase50KR":        39,
		"GBase50SR":        40,
		"GBase50LR":        41,
		"GBase50FR":        42,
		"GBase50ER":        43,
		"LAUI_2":           44,
		"GAUI50_1":         45,
		"GAUI50_2":         46,
		"GBase200CR4":      47,
		"GBase200KR4":      48,
		"GBase200SR4":      49,
		"GBase200DR4":      50,
		"GBase200FR4":      51,
		"GBase200LR4":      52,
		"GBase200ER4":      53,
		"GAUI200_4":        54,
		"GAUI200_8":        55,
		"GBase400SR16":     56,
		"GBase400SR8":      57,
		"GBase400SR4_2":    58,
		"GBase400DR4":      59,
		"GBase400FR8":      60,
		"GBase400ER8":      61,
		"GBase400ZR":       62,
		"GAUI400_16":       63,
		"GAUI400_8":        64,
		"XBee":             65,
		"ZWave":            66,
		"Zigbee":           67,
		"CXP100":           68,
		"CXP120":           69,
	}
)

Enum value maps for Layer1.

View Source
var (
	ConnectorKind_name = map[int32]string{
		0:  "ConnectorKind_Undefined",
		1:  "RJ45",
		2:  "SFP",
		3:  "QSFP",
		4:  "SFPP",
		5:  "QSFPP",
		6:  "SFP28",
		7:  "QSFP28",
		8:  "CXP",
		9:  "LC",
		10: "MPO",
		11: "SFP56",
		12: "QSFP56",
		13: "QSFPDD",
	}
	ConnectorKind_value = map[string]int32{
		"ConnectorKind_Undefined": 0,
		"RJ45":                    1,
		"SFP":                     2,
		"QSFP":                    3,
		"SFPP":                    4,
		"QSFPP":                   5,
		"SFP28":                   6,
		"QSFP28":                  7,
		"CXP":                     8,
		"LC":                      9,
		"MPO":                     10,
		"SFP56":                   11,
		"QSFP56":                  12,
		"QSFPDD":                  13,
	}
)

Enum value maps for ConnectorKind.

View Source
var (
	DiskFormFactor_name = map[int32]string{
		0:  "DiskFormFactor_Undefined",
		1:  "HDD35",
		2:  "HDD25",
		3:  "SSD35",
		4:  "SSD25",
		5:  "MSATA",
		6:  "M2_2216",
		7:  "M2_2226",
		8:  "M2_2230",
		9:  "M2_2238",
		10: "M2_2242",
		11: "M2_2260",
		12: "M2_2280",
		13: "M2_22110",
		14: "U2",
		15: "EMMC",
		16: "EUSB",
	}
	DiskFormFactor_value = map[string]int32{
		"DiskFormFactor_Undefined": 0,
		"HDD35":                    1,
		"HDD25":                    2,
		"SSD35":                    3,
		"SSD25":                    4,
		"MSATA":                    5,
		"M2_2216":                  6,
		"M2_2226":                  7,
		"M2_2230":                  8,
		"M2_2238":                  9,
		"M2_2242":                  10,
		"M2_2260":                  11,
		"M2_2280":                  12,
		"M2_22110":                 13,
		"U2":                       14,
		"EMMC":                     15,
		"EUSB":                     16,
	}
)

Enum value maps for DiskFormFactor.

View Source
var (
	DiskInterface_name = map[int32]string{
		0:  "DiskInterface_Undefined",
		1:  "SATA1",
		2:  "SATA2",
		3:  "SATA3",
		4:  "NVMEx2",
		5:  "NVMEx4",
		6:  "MMC",
		7:  "SD",
		8:  "USB",
		9:  "SAS",
		10: "VirtioBlock",
	}
	DiskInterface_value = map[string]int32{
		"DiskInterface_Undefined": 0,
		"SATA1":                   1,
		"SATA2":                   2,
		"SATA3":                   3,
		"NVMEx2":                  4,
		"NVMEx4":                  5,
		"MMC":                     6,
		"SD":                      7,
		"USB":                     8,
		"SAS":                     9,
		"VirtioBlock":             10,
	}
)

Enum value maps for DiskInterface.

View Source
var (
	CableKind_name = map[int32]string{
		0: "CableKind_Undefined",
		1: "Cat5",
		2: "Cat5e",
		3: "Cat6",
		4: "DAC",
		5: "DACBreakout",
		6: "FiberLC",
		7: "FiberMPOTrunk",
		8: "FiberMPOBreakout",
		9: "AOC",
	}
	CableKind_value = map[string]int32{
		"CableKind_Undefined": 0,
		"Cat5":                1,
		"Cat5e":               2,
		"Cat6":                3,
		"DAC":                 4,
		"DACBreakout":         5,
		"FiberLC":             6,
		"FiberMPOTrunk":       7,
		"FiberMPOBreakout":    8,
		"AOC":                 9,
	}
)

Enum value maps for CableKind.

View Source
var (
	AllocMode_name = map[int32]string{
		0: "AllocMode_Undefined",
		1: "NoAlloc",
		2: "Net",
		3: "NetEmu",
		4: "Filesystem",
		5: "BlockDevice",
		6: "Physical",
		7: "Virtual",
		8: "Infrapod",
		9: "Physim",
	}
	AllocMode_value = map[string]int32{
		"AllocMode_Undefined": 0,
		"NoAlloc":             1,
		"Net":                 2,
		"NetEmu":              3,
		"Filesystem":          4,
		"BlockDevice":         5,
		"Physical":            6,
		"Virtual":             7,
		"Infrapod":            8,
		"Physim":              9,
	}
)

Enum value maps for AllocMode.

View Source
var (
	Role_name = map[int32]string{
		0:  "Role_unknown",
		1:  "TbNode",
		2:  "InfraServer",
		3:  "ConsoleServer",
		4:  "PowerController",
		5:  "NetworkEmulator",
		6:  "XpSwitch",
		7:  "InfraSwitch",
		8:  "MgmtSwitch",
		9:  "Gateway",
		10: "Leaf",
		11: "Fabric",
		12: "Spine",
		13: "StorageServer",
		14: "InfrapodServer",
		15: "EtcdHost",
		16: "MinIOHost",
		17: "RexHost",
		18: "DriverHost",
		19: "ManagerHost",
		20: "CommanderHost",
		21: "SledHost",
		22: "RallyHost",
		23: "PDU",
		24: "EmuSwitch",
		25: "Hypervisor",
		26: "PhysicsSimulator",
		27: "Stem",
		28: "BorderGateway",
	}
	Role_value = map[string]int32{
		"Role_unknown":     0,
		"TbNode":           1,
		"InfraServer":      2,
		"ConsoleServer":    3,
		"PowerController":  4,
		"NetworkEmulator":  5,
		"XpSwitch":         6,
		"InfraSwitch":      7,
		"MgmtSwitch":       8,
		"Gateway":          9,
		"Leaf":             10,
		"Fabric":           11,
		"Spine":            12,
		"StorageServer":    13,
		"InfrapodServer":   14,
		"EtcdHost":         15,
		"MinIOHost":        16,
		"RexHost":          17,
		"DriverHost":       18,
		"ManagerHost":      19,
		"CommanderHost":    20,
		"SledHost":         21,
		"RallyHost":        22,
		"PDU":              23,
		"EmuSwitch":        24,
		"Hypervisor":       25,
		"PhysicsSimulator": 26,
		"Stem":             27,
		"BorderGateway":    28,
	}
)

Enum value maps for Role.

View Source
var (
	LinkRole_name = map[int32]string{
		0: "LinkRole_Unspecified",
		1: "InfraLink",
		2: "XpLink",
		3: "Tor",
		4: "EmuLink",
		5: "MgmtLink",
		6: "GatewayLink",
		7: "SimLink",
		8: "HarborEndpoint",
	}
	LinkRole_value = map[string]int32{
		"LinkRole_Unspecified": 0,
		"InfraLink":            1,
		"XpLink":               2,
		"Tor":                  3,
		"EmuLink":              4,
		"MgmtLink":             5,
		"GatewayLink":          6,
		"SimLink":              7,
		"HarborEndpoint":       8,
	}
)

Enum value maps for LinkRole.

View Source
var (
	DiskRole_name = map[int32]string{
		0: "DiskRole_Unspecified",
		1: "System",
		2: "MinIO",
		3: "Etcd",
		4: "Rally",
	}
	DiskRole_value = map[string]int32{
		"DiskRole_Unspecified": 0,
		"System":               1,
		"MinIO":                2,
		"Etcd":                 3,
		"Rally":                4,
	}
)

Enum value maps for DiskRole.

View Source
var (
	Operator_name = map[int32]string{
		0: "Op_Undefined",
		1: "LT",
		2: "LE",
		3: "GT",
		4: "GE",
		5: "EQ",
		6: "NE",
	}
	Operator_value = map[string]int32{
		"Op_Undefined": 0,
		"LT":           1,
		"LE":           2,
		"GT":           3,
		"GE":           4,
		"EQ":           5,
		"NE":           6,
	}
)

Enum value maps for Operator.

View Source
var (
	Link_Kind_name = map[int32]string{
		0: "unspec",
		1: "ethernet",
		2: "wifi",
		3: "wifi_ac",
		4: "wifi_ax",
		5: "lte_4g",
		6: "lte_5g",
	}
	Link_Kind_value = map[string]int32{
		"unspec":   0,
		"ethernet": 1,
		"wifi":     2,
		"wifi_ac":  3,
		"wifi_ax":  4,
		"lte_4g":   5,
		"lte_5g":   6,
	}
)

Enum value maps for Link_Kind.

View Source
var (
	BMC_Kind_name = map[int32]string{
		0: "IPMI",
		1: "RedFish",
		2: "IPMIRedFish",
	}
	BMC_Kind_value = map[string]int32{
		"IPMI":        0,
		"RedFish":     1,
		"IPMIRedFish": 2,
	}
)

Enum value maps for BMC_Kind.

View Source
var (
	RelayBoard_Kind_name = map[int32]string{
		0: "NCDFusion",
	}
	RelayBoard_Kind_value = map[string]int32{
		"NCDFusion": 0,
	}
)

Enum value maps for RelayBoard_Kind.

View Source
var (
	PowerDistributionUnit_Kind_name = map[int32]string{
		0: "APC",
	}
	PowerDistributionUnit_Kind_value = map[string]int32{
		"APC": 0,
	}
)

Enum value maps for PowerDistributionUnit_Kind.

View Source
var (
	Firmware_Kind_name = map[int32]string{
		0: "Undefined",
		1: "UEFI",
		2: "BIOS",
	}
	Firmware_Kind_value = map[string]int32{
		"Undefined": 0,
		"UEFI":      1,
		"BIOS":      2,
	}
)

Enum value maps for Firmware_Kind.

Functions

func AsEB

func AsEB(value uint64) uint64

EB scales the given value in bytes to exabytes

func AsGB

func AsGB(value uint64) uint64

GB scales the given value in bytes to gigabytes

func AsKB

func AsKB(value uint64) uint64

KB scales the given value in bytes to kilobytes

func AsMB

func AsMB(value uint64) uint64

MB scales the given value in bytes to megabytes

func AsPB

func AsPB(value uint64) uint64

PB scales the given value in bytes to petabytes

func AsTB

func AsTB(value uint64) uint64

TB scales the given value in bytes to terabytes

func B

func B(value uint64) uint64

B scales the given value to bytes

func Bps

func Bps(value uint64) uint64

Bps scales the given value in bits to bits per second

func Connect

func Connect(p *Port, c *Connector)

func EB

func EB(value uint64) uint64

EB scales the given value in exabytes bytes

func Ebps

func Ebps(value uint64) uint64

Ebps scales the given value in bits to exabits per second

func FormatUnits

func FormatUnits(s string) string

func GB

func GB(value uint64) uint64

GB scales the given value in gigabytes to bytes

func GHz

func GHz(value float64) float64

GHz scales the given Hz value to GHz

func Gbps

func Gbps(value uint64) uint64

Gbps scales the given value in bits to gigabits per second

func Hz

func Hz(value float64) float64

Hz scales the given Hz value to Hz

func KB

func KB(value uint64) uint64

KB scales the given value in kilobytes bytes

func KHz

func KHz(value float64) float64

KHz scales the given Hz value to KHz

func Kbps

func Kbps(value uint64) uint64

Kbps scales the given value in bits to kilobits per second

func MB

func MB(value uint64) uint64

MB scales the given value in megabytes to bytes

func MHz

func MHz(value float64) float64

MHz scales the given Hz value to MHz

func Mbps

func Mbps(value uint64) uint64

Mbps scales the given value in bits to megabits per second

func Ms

func Ms(value float64) float64

Ms scales the given value in seconds to milliseconds

func Ns

func Ns(value float64) float64

Ns scales the given value in seconds to nanoseconds

func PB

func PB(value uint64) uint64

PB scales the given value in petabytes to bytes

func Pbps

func Pbps(value uint64) uint64

Pbps scales the given value in bits to petabits per second

func Percent

func Percent(value float64) float64

Percent scales the given integer value to a percent of 100

func S

func S(value float64) float64

S scales the given value in seconds to seconds

func TB

func TB(value uint64) uint64

TB scales the given value in terabytes bytes

func THz

func THz(value float64) float64

THz scales the given Hz value to THz

func Tbps

func Tbps(value uint64) uint64

Tbps scales the given value in bits to terabits per second

func Us

func Us(value float64) float64

Us scales the given value in seconds to microseconds

Types

type Actuator

type Actuator struct {
	Id            string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Var           string  `protobuf:"bytes,2,opt,name=var,proto3" json:"var,omitempty"`
	DynamicLimits *Limits `protobuf:"bytes,3,opt,name=dynamic_limits,json=dynamicLimits,proto3" json:"dynamic_limits,omitempty"`
	StaticLimits  *Limits `protobuf:"bytes,4,opt,name=static_limits,json=staticLimits,proto3" json:"static_limits,omitempty"`
	Tag           int32   `protobuf:"varint,5,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*Actuator) Descriptor deprecated

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

Deprecated: Use Actuator.ProtoReflect.Descriptor instead.

func (*Actuator) GetDynamicLimits

func (x *Actuator) GetDynamicLimits() *Limits

func (*Actuator) GetId

func (x *Actuator) GetId() string

func (*Actuator) GetStaticLimits

func (x *Actuator) GetStaticLimits() *Limits

func (*Actuator) GetTag

func (x *Actuator) GetTag() int32

func (*Actuator) GetVar

func (x *Actuator) GetVar() string

func (*Actuator) ProtoMessage

func (*Actuator) ProtoMessage()

func (*Actuator) ProtoReflect

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

func (*Actuator) Reset

func (x *Actuator) Reset()

func (*Actuator) String

func (x *Actuator) String() string

type AddressList

type AddressList struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressList) Descriptor deprecated

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

Deprecated: Use AddressList.ProtoReflect.Descriptor instead.

func (*AddressList) GetList

func (x *AddressList) GetList() []string

func (*AddressList) ProtoMessage

func (*AddressList) ProtoMessage()

func (*AddressList) ProtoReflect

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

func (*AddressList) Reset

func (x *AddressList) Reset()

func (*AddressList) String

func (x *AddressList) String() string

type Addressing

type Addressing int32
const (
	Addressing_ManualAddressing Addressing = 0
	Addressing_IPv4Addressing   Addressing = 1
)

func (Addressing) Descriptor

func (Addressing) Descriptor() protoreflect.EnumDescriptor

func (Addressing) Enum

func (x Addressing) Enum() *Addressing

func (Addressing) EnumDescriptor deprecated

func (Addressing) EnumDescriptor() ([]byte, []int)

Deprecated: Use Addressing.Descriptor instead.

func (Addressing) Number

func (x Addressing) Number() protoreflect.EnumNumber

func (Addressing) String

func (x Addressing) String() string

func (Addressing) Type

type AddressingConstraint added in v0.3.1

type AddressingConstraint struct {
	Op    Operator   `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value Addressing `protobuf:"varint,2,opt,name=value,proto3,enum=xir.Addressing" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressingConstraint) Descriptor deprecated added in v0.3.1

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

Deprecated: Use AddressingConstraint.ProtoReflect.Descriptor instead.

func (*AddressingConstraint) GetOp added in v0.3.1

func (x *AddressingConstraint) GetOp() Operator

func (*AddressingConstraint) GetValue added in v0.3.1

func (x *AddressingConstraint) GetValue() Addressing

func (*AddressingConstraint) ProtoMessage added in v0.3.1

func (*AddressingConstraint) ProtoMessage()

func (*AddressingConstraint) ProtoReflect added in v0.3.1

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

func (*AddressingConstraint) Reset added in v0.3.1

func (x *AddressingConstraint) Reset()

func (*AddressingConstraint) Satisfies added in v0.3.1

func (c *AddressingConstraint) Satisfies(value Addressing) bool

func (*AddressingConstraint) String added in v0.3.1

func (x *AddressingConstraint) String() string

type AllocMode

type AllocMode int32
const (
	AllocMode_AllocMode_Undefined AllocMode = 0
	AllocMode_NoAlloc             AllocMode = 1
	AllocMode_Net                 AllocMode = 2
	AllocMode_NetEmu              AllocMode = 3
	AllocMode_Filesystem          AllocMode = 4
	AllocMode_BlockDevice         AllocMode = 5
	AllocMode_Physical            AllocMode = 6
	AllocMode_Virtual             AllocMode = 7
	AllocMode_Infrapod            AllocMode = 8
	AllocMode_Physim              AllocMode = 9
)

func (AllocMode) Descriptor

func (AllocMode) Descriptor() protoreflect.EnumDescriptor

func (AllocMode) Enum

func (x AllocMode) Enum() *AllocMode

func (AllocMode) EnumDescriptor deprecated

func (AllocMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use AllocMode.Descriptor instead.

func (AllocMode) Number

func (x AllocMode) Number() protoreflect.EnumNumber

func (AllocMode) String

func (x AllocMode) String() string

func (AllocMode) Type

type BGPRouterConfig

type BGPRouterConfig struct {
	Vrf        string             `protobuf:"bytes,1,opt,name=vrf,proto3" json:"vrf,omitempty"`
	ASN        uint32             `protobuf:"varint,2,opt,name=ASN,proto3" json:"ASN,omitempty"`
	Interfaces []*InterfaceConfig `protobuf:"bytes,3,rep,name=Interfaces,proto3" json:"Interfaces,omitempty"` //XXX this is not really the way of things
	EVPN       *EVPNConfig        `protobuf:"bytes,4,opt,name=EVPN,proto3" json:"EVPN,omitempty"`
	// contains filtered or unexported fields
}

func (*BGPRouterConfig) Descriptor deprecated

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

Deprecated: Use BGPRouterConfig.ProtoReflect.Descriptor instead.

func (*BGPRouterConfig) GetASN

func (x *BGPRouterConfig) GetASN() uint32

func (*BGPRouterConfig) GetEVPN

func (x *BGPRouterConfig) GetEVPN() *EVPNConfig

func (*BGPRouterConfig) GetInterfaces

func (x *BGPRouterConfig) GetInterfaces() []*InterfaceConfig

func (*BGPRouterConfig) GetVrf

func (x *BGPRouterConfig) GetVrf() string

func (*BGPRouterConfig) ProtoMessage

func (*BGPRouterConfig) ProtoMessage()

func (*BGPRouterConfig) ProtoReflect

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

func (*BGPRouterConfig) Reset

func (x *BGPRouterConfig) Reset()

func (*BGPRouterConfig) String

func (x *BGPRouterConfig) String() string

type BMC

type BMC struct {
	Host string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Kind BMC_Kind `protobuf:"varint,2,opt,name=kind,proto3,enum=xir.BMC_Kind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*BMC) Descriptor deprecated

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

Deprecated: Use BMC.ProtoReflect.Descriptor instead.

func (*BMC) GetHost

func (x *BMC) GetHost() string

func (*BMC) GetKind

func (x *BMC) GetKind() BMC_Kind

func (*BMC) ProtoMessage

func (*BMC) ProtoMessage()

func (*BMC) ProtoReflect

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

func (*BMC) Reset

func (x *BMC) Reset()

func (*BMC) String

func (x *BMC) String() string

type BMC_Kind

type BMC_Kind int32
const (
	BMC_IPMI        BMC_Kind = 0
	BMC_RedFish     BMC_Kind = 1
	BMC_IPMIRedFish BMC_Kind = 2
)

func (BMC_Kind) Descriptor

func (BMC_Kind) Descriptor() protoreflect.EnumDescriptor

func (BMC_Kind) Enum

func (x BMC_Kind) Enum() *BMC_Kind

func (BMC_Kind) EnumDescriptor deprecated

func (BMC_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use BMC_Kind.Descriptor instead.

func (BMC_Kind) Number

func (x BMC_Kind) Number() protoreflect.EnumNumber

func (BMC_Kind) String

func (x BMC_Kind) String() string

func (BMC_Kind) Type

type Bond

type Bond struct {
	// contains filtered or unexported fields
}

func (*Bond) Descriptor deprecated

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

Deprecated: Use Bond.ProtoReflect.Descriptor instead.

func (*Bond) ProtoMessage

func (*Bond) ProtoMessage()

func (*Bond) ProtoReflect

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

func (*Bond) Reset

func (x *Bond) Reset()

func (*Bond) String

func (x *Bond) String() string

type BoolConstraint

type BoolConstraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value bool     `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolConstraint) Descriptor deprecated

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

Deprecated: Use BoolConstraint.ProtoReflect.Descriptor instead.

func (*BoolConstraint) GetOp

func (x *BoolConstraint) GetOp() Operator

func (*BoolConstraint) GetValue

func (x *BoolConstraint) GetValue() bool

func (*BoolConstraint) ProtoMessage

func (*BoolConstraint) ProtoMessage()

func (*BoolConstraint) ProtoReflect

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

func (*BoolConstraint) Reset

func (x *BoolConstraint) Reset()

func (*BoolConstraint) String

func (x *BoolConstraint) String() string

type Breakout added in v0.3.1

type Breakout struct {
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Radix uint32 `protobuf:"varint,2,opt,name=radix,proto3" json:"radix,omitempty"`
	// contains filtered or unexported fields
}

func (*Breakout) Descriptor deprecated added in v0.3.1

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

Deprecated: Use Breakout.ProtoReflect.Descriptor instead.

func (*Breakout) GetIndex added in v0.3.1

func (x *Breakout) GetIndex() uint32

func (*Breakout) GetRadix added in v0.3.1

func (x *Breakout) GetRadix() uint32

func (*Breakout) ProtoMessage added in v0.3.1

func (*Breakout) ProtoMessage()

func (*Breakout) ProtoReflect added in v0.3.1

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

func (*Breakout) Reset added in v0.3.1

func (x *Breakout) Reset()

func (*Breakout) String added in v0.3.1

func (x *Breakout) String() string

type BridgeConfig

type BridgeConfig struct {
	Name      string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	VlanAware bool     `protobuf:"varint,2,opt,name=vlan_aware,json=vlanAware,proto3" json:"vlan_aware,omitempty"`
	Addrs     []string `protobuf:"bytes,3,rep,name=addrs,proto3" json:"addrs,omitempty"`
	Role      LinkRole `protobuf:"varint,4,opt,name=role,proto3,enum=xir.LinkRole" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*BridgeConfig) Descriptor deprecated

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

Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead.

func (*BridgeConfig) GetAddrs

func (x *BridgeConfig) GetAddrs() []string

func (*BridgeConfig) GetName

func (x *BridgeConfig) GetName() string

func (*BridgeConfig) GetRole

func (x *BridgeConfig) GetRole() LinkRole

func (*BridgeConfig) GetVlanAware

func (x *BridgeConfig) GetVlanAware() bool

func (*BridgeConfig) ProtoMessage

func (*BridgeConfig) ProtoMessage()

func (*BridgeConfig) ProtoReflect

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

func (*BridgeConfig) Reset

func (x *BridgeConfig) Reset()

func (*BridgeConfig) String

func (x *BridgeConfig) String() string

type Cable

type Cable struct {
	Id          string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Facility    string       `protobuf:"bytes,2,opt,name=facility,proto3" json:"facility,omitempty"`
	Kind        CableKind    `protobuf:"varint,3,opt,name=kind,proto3,enum=xir.CableKind" json:"kind,omitempty"`
	Ends        []*End       `protobuf:"bytes,4,rep,name=ends,proto3" json:"ends,omitempty"`
	ProductInfo *ProductInfo `protobuf:"bytes,5,opt,name=product_info,json=productInfo,proto3" json:"product_info,omitempty"`
	// contains filtered or unexported fields
}

func GenericCable

func GenericCable(
	id string,
	capacity uint64,
	cableKind CableKind,
	connectorKind ConnectorKind,
	protocols ...Layer1,
) *Cable

func (*Cable) Connect

func (c *Cable) Connect(ports ...*Port)

func (*Cable) Descriptor deprecated

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

Deprecated: Use Cable.ProtoReflect.Descriptor instead.

func (*Cable) GetEnds

func (x *Cable) GetEnds() []*End

func (*Cable) GetFacility

func (x *Cable) GetFacility() string

func (*Cable) GetId

func (x *Cable) GetId() string

func (*Cable) GetKind

func (x *Cable) GetKind() CableKind

func (*Cable) GetProductInfo

func (x *Cable) GetProductInfo() *ProductInfo

func (*Cable) ProtoMessage

func (*Cable) ProtoMessage()

func (*Cable) ProtoReflect

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

func (*Cable) Reset

func (x *Cable) Reset()

func (*Cable) SetConnector

func (c *Cable) SetConnector(k ConnectorKind)

func (*Cable) SetProductInfo

func (x *Cable) SetProductInfo(pi *ProductInfo)

func (*Cable) String

func (x *Cable) String() string

type CableAllocation

type CableAllocation struct {
	Cable    string `protobuf:"bytes,1,opt,name=cable,proto3" json:"cable,omitempty"`
	Facility string `protobuf:"bytes,2,opt,name=facility,proto3" json:"facility,omitempty"`
	Mzid     string `protobuf:"bytes,3,opt,name=mzid,proto3" json:"mzid,omitempty"`
	Link     string `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"`
	Capacity uint64 `protobuf:"varint,5,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Revision int64  `protobuf:"varint,6,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

func AggregateCableAllocations

func AggregateCableAllocations(cs []*CableAllocation) *CableAllocation

func (*CableAllocation) Descriptor deprecated

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

Deprecated: Use CableAllocation.ProtoReflect.Descriptor instead.

func (*CableAllocation) GetCable

func (x *CableAllocation) GetCable() string

func (*CableAllocation) GetCapacity

func (x *CableAllocation) GetCapacity() uint64

func (*CableAllocation) GetFacility

func (x *CableAllocation) GetFacility() string
func (x *CableAllocation) GetLink() string

func (*CableAllocation) GetMzid

func (x *CableAllocation) GetMzid() string

func (*CableAllocation) GetRevision

func (x *CableAllocation) GetRevision() int64

func (*CableAllocation) ProtoMessage

func (*CableAllocation) ProtoMessage()

func (*CableAllocation) ProtoReflect

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

func (*CableAllocation) Reset

func (x *CableAllocation) Reset()

func (*CableAllocation) Show

func (ca *CableAllocation) Show() string

func (*CableAllocation) String

func (x *CableAllocation) String() string

type CableKind

type CableKind int32
const (
	CableKind_CableKind_Undefined CableKind = 0
	CableKind_Cat5                CableKind = 1
	CableKind_Cat5e               CableKind = 2
	CableKind_Cat6                CableKind = 3
	CableKind_DAC                 CableKind = 4
	CableKind_DACBreakout         CableKind = 5
	CableKind_FiberLC             CableKind = 6
	CableKind_FiberMPOTrunk       CableKind = 7
	CableKind_FiberMPOBreakout    CableKind = 8
	CableKind_AOC                 CableKind = 9
)

func (CableKind) Descriptor

func (CableKind) Descriptor() protoreflect.EnumDescriptor

func (CableKind) Enum

func (x CableKind) Enum() *CableKind

func (CableKind) EnumDescriptor deprecated

func (CableKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use CableKind.Descriptor instead.

func (CableKind) Number

func (x CableKind) Number() protoreflect.EnumNumber

func (CableKind) String

func (x CableKind) String() string

func (CableKind) Type

type Connection

type Connection struct {
	Edges []*Edge
	Data  interface{}
}

func (*Connection) Cable

func (c *Connection) Cable() *Cable

func (*Connection) Label

func (c *Connection) Label() string
func (c *Connection) Link() *Link

type Connector

type Connector struct {
	Parent    string        `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Index     uint32        `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	Kind      ConnectorKind `protobuf:"varint,3,opt,name=kind,proto3,enum=xir.ConnectorKind" json:"kind,omitempty"`
	Protocols []Layer1      `protobuf:"varint,4,rep,packed,name=protocols,proto3,enum=xir.Layer1" json:"protocols,omitempty"`
	Capacity  uint64        `protobuf:"varint,5,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Port      *Ref          `protobuf:"bytes,6,opt,name=Port,proto3" json:"Port,omitempty"`
	Breakout  *Breakout     `protobuf:"bytes,7,opt,name=breakout,proto3" json:"breakout,omitempty"`
	// contains filtered or unexported fields
}

func GenericConnector

func GenericConnector(
	index uint32,
	parent string,
	capacity uint64,
	kind ConnectorKind,
	protocols ...Layer1,
) *Connector

func (*Connector) Descriptor deprecated

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

Deprecated: Use Connector.ProtoReflect.Descriptor instead.

func (*Connector) Equals

func (c *Connector) Equals(x *Connector) bool

func (*Connector) GetBreakout added in v0.3.1

func (x *Connector) GetBreakout() *Breakout

func (*Connector) GetCapacity

func (x *Connector) GetCapacity() uint64

func (*Connector) GetIndex

func (x *Connector) GetIndex() uint32

func (*Connector) GetKind

func (x *Connector) GetKind() ConnectorKind

func (*Connector) GetParent

func (x *Connector) GetParent() string

func (*Connector) GetPort

func (x *Connector) GetPort() *Ref

func (*Connector) GetProtocols

func (x *Connector) GetProtocols() []Layer1

func (*Connector) Label

func (c *Connector) Label() string

func (*Connector) ProtoMessage

func (*Connector) ProtoMessage()

func (*Connector) ProtoReflect

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

func (*Connector) Reset

func (x *Connector) Reset()

func (*Connector) SetConnector

func (c *Connector) SetConnector(k ConnectorKind)

func (*Connector) String

func (x *Connector) String() string

type ConnectorKind

type ConnectorKind int32
const (
	ConnectorKind_ConnectorKind_Undefined ConnectorKind = 0
	ConnectorKind_RJ45                    ConnectorKind = 1
	ConnectorKind_SFP                     ConnectorKind = 2
	ConnectorKind_QSFP                    ConnectorKind = 3
	ConnectorKind_SFPP                    ConnectorKind = 4
	ConnectorKind_QSFPP                   ConnectorKind = 5
	ConnectorKind_SFP28                   ConnectorKind = 6
	ConnectorKind_QSFP28                  ConnectorKind = 7
	ConnectorKind_CXP                     ConnectorKind = 8
	ConnectorKind_LC                      ConnectorKind = 9
	ConnectorKind_MPO                     ConnectorKind = 10
	ConnectorKind_SFP56                   ConnectorKind = 11
	ConnectorKind_QSFP56                  ConnectorKind = 12
	ConnectorKind_QSFPDD                  ConnectorKind = 13
)

func (ConnectorKind) Descriptor

func (ConnectorKind) Enum

func (x ConnectorKind) Enum() *ConnectorKind

func (ConnectorKind) EnumDescriptor deprecated

func (ConnectorKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConnectorKind.Descriptor instead.

func (ConnectorKind) Number

func (ConnectorKind) String

func (x ConnectorKind) String() string

func (ConnectorKind) Type

type ConnectorKindConstraint

type ConnectorKindConstraint struct {
	Op    Operator      `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value ConnectorKind `protobuf:"varint,2,opt,name=value,proto3,enum=xir.ConnectorKind" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectorKindConstraint) Descriptor deprecated

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

Deprecated: Use ConnectorKindConstraint.ProtoReflect.Descriptor instead.

func (*ConnectorKindConstraint) GetOp

func (x *ConnectorKindConstraint) GetOp() Operator

func (*ConnectorKindConstraint) GetValue

func (x *ConnectorKindConstraint) GetValue() ConnectorKind

func (*ConnectorKindConstraint) ProtoMessage

func (*ConnectorKindConstraint) ProtoMessage()

func (*ConnectorKindConstraint) ProtoReflect

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

func (*ConnectorKindConstraint) Reset

func (x *ConnectorKindConstraint) Reset()

func (*ConnectorKindConstraint) String

func (x *ConnectorKindConstraint) String() string

type ConnectorSpec

type ConnectorSpec struct {
	Kind      *ConnectorKindConstraint `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	Protocols []Layer1                 `protobuf:"varint,2,rep,packed,name=protocols,proto3,enum=xir.Layer1" json:"protocols,omitempty"`
	Capacity  uint64                   `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectorSpec) Descriptor deprecated

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

Deprecated: Use ConnectorSpec.ProtoReflect.Descriptor instead.

func (*ConnectorSpec) GetCapacity

func (x *ConnectorSpec) GetCapacity() uint64

func (*ConnectorSpec) GetKind

func (x *ConnectorSpec) GetKind() *ConnectorKindConstraint

func (*ConnectorSpec) GetProtocols

func (x *ConnectorSpec) GetProtocols() []Layer1

func (*ConnectorSpec) ProtoMessage

func (*ConnectorSpec) ProtoMessage()

func (*ConnectorSpec) ProtoReflect

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

func (*ConnectorSpec) Reset

func (x *ConnectorSpec) Reset()

func (*ConnectorSpec) String

func (x *ConnectorSpec) String() string

type Coupling

type Coupling struct {
	// contains filtered or unexported fields
}

func (*Coupling) Descriptor deprecated

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

Deprecated: Use Coupling.ProtoReflect.Descriptor instead.

func (*Coupling) ProtoMessage

func (*Coupling) ProtoMessage()

func (*Coupling) ProtoReflect

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

func (*Coupling) Reset

func (x *Coupling) Reset()

func (*Coupling) String

func (x *Coupling) String() string

type Device

type Device struct {
	Interfaces []*Interface
	Data       Identify
	Visited    bool
}

func (*Device) Id

func (d *Device) Id() string

func (*Device) Infranet

func (d *Device) Infranet() *Interface

func (*Device) Neighbors

func (d *Device) Neighbors(
	selectors ...func(n *Neighbor) bool,
) []*Neighbor

func (*Device) Node

func (d *Device) Node() *Node

func (*Device) Resource

func (d *Device) Resource() *Resource

type Dimm

type Dimm struct {
	Type        MemoryType   `protobuf:"varint,1,opt,name=type,proto3,enum=xir.MemoryType" json:"type,omitempty"`
	Capacity    uint64       `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Frequency   uint64       `protobuf:"varint,3,opt,name=frequency,proto3" json:"frequency,omitempty"`
	ProductInfo *ProductInfo `protobuf:"bytes,4,opt,name=product_info,json=productInfo,proto3" json:"product_info,omitempty"`
	// contains filtered or unexported fields
}

func (*Dimm) Descriptor deprecated

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

Deprecated: Use Dimm.ProtoReflect.Descriptor instead.

func (*Dimm) GetCapacity

func (x *Dimm) GetCapacity() uint64

func (*Dimm) GetFrequency

func (x *Dimm) GetFrequency() uint64

func (*Dimm) GetProductInfo

func (x *Dimm) GetProductInfo() *ProductInfo

func (*Dimm) GetType

func (x *Dimm) GetType() MemoryType

func (*Dimm) ProtoMessage

func (*Dimm) ProtoMessage()

func (*Dimm) ProtoReflect

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

func (*Dimm) Reset

func (x *Dimm) Reset()

func (*Dimm) SetCapacity

func (d *Dimm) SetCapacity(c uint64)

func (*Dimm) SetProductInfo

func (x *Dimm) SetProductInfo(pi *ProductInfo)

func (*Dimm) String

func (x *Dimm) String() string

type DimmAllocation

type DimmAllocation struct {
	Capacity uint64 `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

func (*DimmAllocation) Add

func (a *DimmAllocation) Add(x *DimmAllocation)

func (*DimmAllocation) Descriptor deprecated

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

Deprecated: Use DimmAllocation.ProtoReflect.Descriptor instead.

func (*DimmAllocation) GetCapacity

func (x *DimmAllocation) GetCapacity() uint64

func (*DimmAllocation) ProtoMessage

func (*DimmAllocation) ProtoMessage()

func (*DimmAllocation) ProtoReflect

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

func (*DimmAllocation) Reset

func (x *DimmAllocation) Reset()

func (*DimmAllocation) String

func (x *DimmAllocation) String() string

type Disk

type Disk struct {
	Capacity            uint64         `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"`
	FormFactor          DiskFormFactor `protobuf:"varint,2,opt,name=form_factor,json=formFactor,proto3,enum=xir.DiskFormFactor" json:"form_factor,omitempty"`
	DiskInterface       DiskInterface  `protobuf:"varint,3,opt,name=disk_interface,json=diskInterface,proto3,enum=xir.DiskInterface" json:"disk_interface,omitempty"`
	ProductInfo         *ProductInfo   `protobuf:"bytes,4,opt,name=product_info,json=productInfo,proto3" json:"product_info,omitempty"`
	Roles               []DiskRole     `protobuf:"varint,5,rep,packed,name=roles,proto3,enum=xir.DiskRole" json:"roles,omitempty"`
	NVMEControllerIndex uint32         `protobuf:"varint,6,opt,name=NVME_controller_index,json=NVMEControllerIndex,proto3" json:"NVME_controller_index,omitempty"`
	// contains filtered or unexported fields
}

func (*Disk) Descriptor deprecated

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

Deprecated: Use Disk.ProtoReflect.Descriptor instead.

func (*Disk) DevName

func (d *Disk) DevName(i uint) string

func (*Disk) GetCapacity

func (x *Disk) GetCapacity() uint64

func (*Disk) GetDiskInterface

func (x *Disk) GetDiskInterface() DiskInterface

func (*Disk) GetFormFactor

func (x *Disk) GetFormFactor() DiskFormFactor

func (*Disk) GetNVMEControllerIndex added in v0.3.1

func (x *Disk) GetNVMEControllerIndex() uint32

func (*Disk) GetProductInfo

func (x *Disk) GetProductInfo() *ProductInfo

func (*Disk) GetRoles

func (x *Disk) GetRoles() []DiskRole

func (*Disk) HasRole

func (d *Disk) HasRole(r DiskRole) bool

func (*Disk) ProtoMessage

func (*Disk) ProtoMessage()

func (*Disk) ProtoReflect

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

func (*Disk) Reset

func (x *Disk) Reset()

func (*Disk) SetCapacity

func (d *Disk) SetCapacity(c uint64)

func (*Disk) SetProductInfo

func (x *Disk) SetProductInfo(pi *ProductInfo)

func (*Disk) String

func (x *Disk) String() string

type DiskAllocation

type DiskAllocation struct {
	Capacity uint64 `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskAllocation) Add

func (a *DiskAllocation) Add(x *DiskAllocation)

func (*DiskAllocation) Descriptor deprecated

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

Deprecated: Use DiskAllocation.ProtoReflect.Descriptor instead.

func (*DiskAllocation) GetCapacity

func (x *DiskAllocation) GetCapacity() uint64

func (*DiskAllocation) ProtoMessage

func (*DiskAllocation) ProtoMessage()

func (*DiskAllocation) ProtoReflect

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

func (*DiskAllocation) Reset

func (x *DiskAllocation) Reset()

func (*DiskAllocation) String

func (x *DiskAllocation) String() string

type DiskFormFactor

type DiskFormFactor int32
const (
	DiskFormFactor_DiskFormFactor_Undefined DiskFormFactor = 0
	DiskFormFactor_HDD35                    DiskFormFactor = 1
	DiskFormFactor_HDD25                    DiskFormFactor = 2
	DiskFormFactor_SSD35                    DiskFormFactor = 3
	DiskFormFactor_SSD25                    DiskFormFactor = 4
	DiskFormFactor_MSATA                    DiskFormFactor = 5
	DiskFormFactor_M2_2216                  DiskFormFactor = 6
	DiskFormFactor_M2_2226                  DiskFormFactor = 7
	DiskFormFactor_M2_2230                  DiskFormFactor = 8
	DiskFormFactor_M2_2238                  DiskFormFactor = 9
	DiskFormFactor_M2_2242                  DiskFormFactor = 10
	DiskFormFactor_M2_2260                  DiskFormFactor = 11
	DiskFormFactor_M2_2280                  DiskFormFactor = 12
	DiskFormFactor_M2_22110                 DiskFormFactor = 13
	DiskFormFactor_U2                       DiskFormFactor = 14
	DiskFormFactor_EMMC                     DiskFormFactor = 15
	DiskFormFactor_EUSB                     DiskFormFactor = 16
)

func (DiskFormFactor) Descriptor

func (DiskFormFactor) Enum

func (x DiskFormFactor) Enum() *DiskFormFactor

func (DiskFormFactor) EnumDescriptor deprecated

func (DiskFormFactor) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiskFormFactor.Descriptor instead.

func (DiskFormFactor) Number

func (DiskFormFactor) String

func (x DiskFormFactor) String() string

func (DiskFormFactor) Type

type DiskFormFactorConstraint

type DiskFormFactorConstraint struct {
	Op    Operator       `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value DiskFormFactor `protobuf:"varint,2,opt,name=value,proto3,enum=xir.DiskFormFactor" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskFormFactorConstraint) Descriptor deprecated

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

Deprecated: Use DiskFormFactorConstraint.ProtoReflect.Descriptor instead.

func (*DiskFormFactorConstraint) GetOp

func (*DiskFormFactorConstraint) GetValue

func (*DiskFormFactorConstraint) ProtoMessage

func (*DiskFormFactorConstraint) ProtoMessage()

func (*DiskFormFactorConstraint) ProtoReflect

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

func (*DiskFormFactorConstraint) Reset

func (x *DiskFormFactorConstraint) Reset()

func (*DiskFormFactorConstraint) String

func (x *DiskFormFactorConstraint) String() string

type DiskInterface

type DiskInterface int32
const (
	DiskInterface_DiskInterface_Undefined DiskInterface = 0
	DiskInterface_SATA1                   DiskInterface = 1
	DiskInterface_SATA2                   DiskInterface = 2
	DiskInterface_SATA3                   DiskInterface = 3
	DiskInterface_NVMEx2                  DiskInterface = 4
	DiskInterface_NVMEx4                  DiskInterface = 5
	DiskInterface_MMC                     DiskInterface = 6
	DiskInterface_SD                      DiskInterface = 7
	DiskInterface_USB                     DiskInterface = 8
	DiskInterface_SAS                     DiskInterface = 9
	DiskInterface_VirtioBlock             DiskInterface = 10
)

func (DiskInterface) Descriptor

func (DiskInterface) Enum

func (x DiskInterface) Enum() *DiskInterface

func (DiskInterface) EnumDescriptor deprecated

func (DiskInterface) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiskInterface.Descriptor instead.

func (DiskInterface) Number

func (DiskInterface) String

func (x DiskInterface) String() string

func (DiskInterface) Type

type DiskInterfaceConstraint

type DiskInterfaceConstraint struct {
	Op    Operator      `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value DiskInterface `protobuf:"varint,2,opt,name=value,proto3,enum=xir.DiskInterface" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskInterfaceConstraint) Descriptor deprecated

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

Deprecated: Use DiskInterfaceConstraint.ProtoReflect.Descriptor instead.

func (*DiskInterfaceConstraint) GetOp

func (x *DiskInterfaceConstraint) GetOp() Operator

func (*DiskInterfaceConstraint) GetValue

func (x *DiskInterfaceConstraint) GetValue() DiskInterface

func (*DiskInterfaceConstraint) ProtoMessage

func (*DiskInterfaceConstraint) ProtoMessage()

func (*DiskInterfaceConstraint) ProtoReflect

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

func (*DiskInterfaceConstraint) Reset

func (x *DiskInterfaceConstraint) Reset()

func (*DiskInterfaceConstraint) String

func (x *DiskInterfaceConstraint) String() string

type DiskRole

type DiskRole int32
const (
	DiskRole_DiskRole_Unspecified DiskRole = 0
	DiskRole_System               DiskRole = 1
	DiskRole_MinIO                DiskRole = 2
	DiskRole_Etcd                 DiskRole = 3
	DiskRole_Rally                DiskRole = 4
)

func (DiskRole) Descriptor

func (DiskRole) Descriptor() protoreflect.EnumDescriptor

func (DiskRole) Enum

func (x DiskRole) Enum() *DiskRole

func (DiskRole) EnumDescriptor deprecated

func (DiskRole) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiskRole.Descriptor instead.

func (DiskRole) Number

func (x DiskRole) Number() protoreflect.EnumNumber

func (DiskRole) String

func (x DiskRole) String() string

func (DiskRole) Type

type DiskSpec

type DiskSpec struct {
	Capacity      *Uint64Constraint         `protobuf:"bytes,1,opt,name=capacity,proto3" json:"capacity,omitempty"`
	FormFactor    *DiskFormFactorConstraint `protobuf:"bytes,2,opt,name=form_factor,json=formFactor,proto3" json:"form_factor,omitempty"`
	DiskInterface *DiskInterfaceConstraint  `protobuf:"bytes,3,opt,name=disk_interface,json=diskInterface,proto3" json:"disk_interface,omitempty"`
	Disks         *Uint64Constraint         `protobuf:"bytes,4,opt,name=disks,proto3" json:"disks,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskSpec) Descriptor deprecated

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

Deprecated: Use DiskSpec.ProtoReflect.Descriptor instead.

func (*DiskSpec) GetCapacity

func (x *DiskSpec) GetCapacity() *Uint64Constraint

func (*DiskSpec) GetDiskInterface

func (x *DiskSpec) GetDiskInterface() *DiskInterfaceConstraint

func (*DiskSpec) GetDisks

func (x *DiskSpec) GetDisks() *Uint64Constraint

func (*DiskSpec) GetFormFactor

func (x *DiskSpec) GetFormFactor() *DiskFormFactorConstraint

func (*DiskSpec) ProtoMessage

func (*DiskSpec) ProtoMessage()

func (*DiskSpec) ProtoReflect

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

func (*DiskSpec) Reset

func (x *DiskSpec) Reset()

func (*DiskSpec) String

func (x *DiskSpec) String() string

type DisksAllocation

type DisksAllocation struct {
	Alloc map[uint32]*DiskAllocation `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DisksAllocation) Allocate

func (a *DisksAllocation) Allocate(index uint32, d *DiskAllocation)

func (*DisksAllocation) Descriptor deprecated

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

Deprecated: Use DisksAllocation.ProtoReflect.Descriptor instead.

func (*DisksAllocation) GetAlloc

func (x *DisksAllocation) GetAlloc() map[uint32]*DiskAllocation

func (*DisksAllocation) ProtoMessage

func (*DisksAllocation) ProtoMessage()

func (*DisksAllocation) ProtoReflect

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

func (*DisksAllocation) Reset

func (x *DisksAllocation) Reset()

func (*DisksAllocation) Show

func (d *DisksAllocation) Show() string

func (*DisksAllocation) String

func (x *DisksAllocation) String() string

func (*DisksAllocation) TotalCapacity

func (m *DisksAllocation) TotalCapacity() uint64

type EVPNConfig

type EVPNConfig struct {
	TunnelEndpoints []*InterfaceConfig `protobuf:"bytes,1,rep,name=TunnelEndpoints,proto3" json:"TunnelEndpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*EVPNConfig) Descriptor deprecated

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

Deprecated: Use EVPNConfig.ProtoReflect.Descriptor instead.

func (*EVPNConfig) GetTunnelEndpoints

func (x *EVPNConfig) GetTunnelEndpoints() []*InterfaceConfig

func (*EVPNConfig) ProtoMessage

func (*EVPNConfig) ProtoMessage()

func (*EVPNConfig) ProtoReflect

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

func (*EVPNConfig) Reset

func (x *EVPNConfig) Reset()

func (*EVPNConfig) String

func (x *EVPNConfig) String() string

type Edge

type Edge struct {
	Interface  *Interface
	Connection *Connection
	Data       interface{}
}

func (*Edge) Connector

func (e *Edge) Connector() *Connector

func (*Edge) Endpoint

func (e *Edge) Endpoint() *Endpoint

type End

type End struct {
	Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"`
	// contains filtered or unexported fields
}

func (*End) Descriptor deprecated

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

Deprecated: Use End.ProtoReflect.Descriptor instead.

func (*End) GetConnectors

func (x *End) GetConnectors() []*Connector

func (*End) ProtoMessage

func (*End) ProtoMessage()

func (*End) ProtoReflect

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

func (*End) Reset

func (x *End) Reset()

func (*End) SetConnector

func (e *End) SetConnector(k ConnectorKind)

func (*End) String

func (x *End) String() string

type Endpoint

type Endpoint struct {
	Index     int32          `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Socket    *Ref           `protobuf:"bytes,2,opt,name=socket,proto3" json:"socket,omitempty"`
	Connector *ConnectorSpec `protobuf:"bytes,3,opt,name=connector,proto3" json:"connector,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetConnector

func (x *Endpoint) GetConnector() *ConnectorSpec

func (*Endpoint) GetIndex

func (x *Endpoint) GetIndex() int32

func (*Endpoint) GetSocket

func (x *Endpoint) GetSocket() *Ref

func (*Endpoint) Label

func (e *Endpoint) Label(link string) string

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

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

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

type ExperimentParameters

type ExperimentParameters struct {
	Routing     *RoutingConstraint    `protobuf:"bytes,1,opt,name=routing,proto3" json:"routing,omitempty"`
	Addressing  *AddressingConstraint `protobuf:"bytes,2,opt,name=addressing,proto3" json:"addressing,omitempty"`
	Hypervisors []string              `protobuf:"bytes,3,rep,name=hypervisors,proto3" json:"hypervisors,omitempty"`
	Simulators  []string              `protobuf:"bytes,4,rep,name=simulators,proto3" json:"simulators,omitempty"`
	Emulators   []string              `protobuf:"bytes,5,rep,name=emulators,proto3" json:"emulators,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentParameters) Descriptor deprecated

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

Deprecated: Use ExperimentParameters.ProtoReflect.Descriptor instead.

func (*ExperimentParameters) GetAddressing

func (x *ExperimentParameters) GetAddressing() *AddressingConstraint

func (*ExperimentParameters) GetEmulators

func (x *ExperimentParameters) GetEmulators() []string

func (*ExperimentParameters) GetHypervisors

func (x *ExperimentParameters) GetHypervisors() []string

func (*ExperimentParameters) GetRouting

func (x *ExperimentParameters) GetRouting() *RoutingConstraint

func (*ExperimentParameters) GetSimulators

func (x *ExperimentParameters) GetSimulators() []string

func (*ExperimentParameters) ProtoMessage

func (*ExperimentParameters) ProtoMessage()

func (*ExperimentParameters) ProtoReflect

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

func (*ExperimentParameters) Reset

func (x *ExperimentParameters) Reset()

func (*ExperimentParameters) String

func (x *ExperimentParameters) String() string

type Facility

type Facility struct {
	Id        string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Fqdn      string      `protobuf:"bytes,2,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
	Resources []*Resource `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty"`
	Cables    []*Cable    `protobuf:"bytes,4,rep,name=cables,proto3" json:"cables,omitempty"`
	// contains filtered or unexported fields
}

func FacilityFromB64String

func FacilityFromB64String(pbuf string) (*Facility, error)

TODO all these serialization functions need to be guarded by XIR semvers to avoid subtle and very difficult to track bugs from creeping in due to protobuf spec skew or protoc versions.

func FacilityFromFile

func FacilityFromFile(file string) (*Facility, error)

func FacilityFromRawString

func FacilityFromRawString(pbuf string) (*Facility, error)

func (*Facility) Cable

func (f *Facility) Cable(id string) *Cable

func (*Facility) Clone

func (f *Facility) Clone() (*Facility, error)

func (*Facility) Descriptor deprecated

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

Deprecated: Use Facility.ProtoReflect.Descriptor instead.

func (*Facility) GetCables

func (x *Facility) GetCables() []*Cable

func (*Facility) GetFqdn

func (x *Facility) GetFqdn() string

func (*Facility) GetId

func (x *Facility) GetId() string

func (*Facility) GetResources

func (x *Facility) GetResources() []*Resource

func (*Facility) Lift

func (f *Facility) Lift() *Topology

func (*Facility) ProtoMessage

func (*Facility) ProtoMessage()

func (*Facility) ProtoReflect

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

func (*Facility) Reset

func (x *Facility) Reset()

func (*Facility) Resource

func (f *Facility) Resource(id string) *Resource

func (*Facility) String

func (x *Facility) String() string

func (*Facility) ToB64Buf

func (f *Facility) ToB64Buf() ([]byte, error)

func (*Facility) ToBuf

func (f *Facility) ToBuf() ([]byte, error)

type Firmware

type Firmware struct {
	Kind Firmware_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=xir.Firmware_Kind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*Firmware) Descriptor deprecated

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

Deprecated: Use Firmware.ProtoReflect.Descriptor instead.

func (*Firmware) GetKind

func (x *Firmware) GetKind() Firmware_Kind

func (*Firmware) ProtoMessage

func (*Firmware) ProtoMessage()

func (*Firmware) ProtoReflect

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

func (*Firmware) Reset

func (x *Firmware) Reset()

func (*Firmware) String

func (x *Firmware) String() string

type Firmware_Kind

type Firmware_Kind int32
const (
	Firmware_Undefined Firmware_Kind = 0
	Firmware_UEFI      Firmware_Kind = 1
	Firmware_BIOS      Firmware_Kind = 2
)

func (Firmware_Kind) Descriptor

func (Firmware_Kind) Enum

func (x Firmware_Kind) Enum() *Firmware_Kind

func (Firmware_Kind) EnumDescriptor deprecated

func (Firmware_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Firmware_Kind.Descriptor instead.

func (Firmware_Kind) Number

func (Firmware_Kind) String

func (x Firmware_Kind) String() string

func (Firmware_Kind) Type

type FloatConstraint added in v0.3.1

type FloatConstraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value float32  `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*FloatConstraint) Descriptor deprecated added in v0.3.1

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

Deprecated: Use FloatConstraint.ProtoReflect.Descriptor instead.

func (*FloatConstraint) GetOp added in v0.3.1

func (x *FloatConstraint) GetOp() Operator

func (*FloatConstraint) GetValue added in v0.3.1

func (x *FloatConstraint) GetValue() float32

func (*FloatConstraint) ProtoMessage added in v0.3.1

func (*FloatConstraint) ProtoMessage()

func (*FloatConstraint) ProtoReflect added in v0.3.1

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

func (*FloatConstraint) Reset added in v0.3.1

func (x *FloatConstraint) Reset()

func (*FloatConstraint) String added in v0.3.1

func (x *FloatConstraint) String() string

type ISA

type ISA int32
const (
	ISA_X86_64 ISA = 0
)

func (ISA) Descriptor

func (ISA) Descriptor() protoreflect.EnumDescriptor

func (ISA) Enum

func (x ISA) Enum() *ISA

func (ISA) EnumDescriptor deprecated

func (ISA) EnumDescriptor() ([]byte, []int)

Deprecated: Use ISA.Descriptor instead.

func (ISA) Number

func (x ISA) Number() protoreflect.EnumNumber

func (ISA) String

func (x ISA) String() string

func (ISA) Type

func (ISA) Type() protoreflect.EnumType

type ISAConstraint

type ISAConstraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value ISA      `protobuf:"varint,2,opt,name=value,proto3,enum=xir.ISA" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ISAConstraint) Descriptor deprecated

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

Deprecated: Use ISAConstraint.ProtoReflect.Descriptor instead.

func (*ISAConstraint) GetOp

func (x *ISAConstraint) GetOp() Operator

func (*ISAConstraint) GetValue

func (x *ISAConstraint) GetValue() ISA

func (*ISAConstraint) ProtoMessage

func (*ISAConstraint) ProtoMessage()

func (*ISAConstraint) ProtoReflect

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

func (*ISAConstraint) Reset

func (x *ISAConstraint) Reset()

func (*ISAConstraint) String

func (x *ISAConstraint) String() string

type Identify

type Identify interface{ Identify() string }

type Interface

type Interface struct {
	Edge   *Edge
	Device *Device
	Data   interface{}
}

func (*Interface) Neighbors

func (i *Interface) Neighbors(
	selectors ...func(n *Neighbor) bool,
) []*Neighbor

func (*Interface) PhysPortName added in v0.3.1

func (ifx *Interface) PhysPortName() string

func (*Interface) Port

func (i *Interface) Port() *Port

func (*Interface) PortName

func (ifx *Interface) PortName() string

func (*Interface) Ref

func (ifx *Interface) Ref() *Ref

func (*Interface) Socket

func (i *Interface) Socket() *Socket

type InterfaceConfig

type InterfaceConfig struct {
	Address   string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Interface string   `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"`
	Role      LinkRole `protobuf:"varint,3,opt,name=role,proto3,enum=xir.LinkRole" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceConfig) Descriptor deprecated

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

Deprecated: Use InterfaceConfig.ProtoReflect.Descriptor instead.

func (*InterfaceConfig) GetAddress

func (x *InterfaceConfig) GetAddress() string

func (*InterfaceConfig) GetInterface

func (x *InterfaceConfig) GetInterface() string

func (*InterfaceConfig) GetRole

func (x *InterfaceConfig) GetRole() LinkRole

func (*InterfaceConfig) ProtoMessage

func (*InterfaceConfig) ProtoMessage()

func (*InterfaceConfig) ProtoReflect

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

func (*InterfaceConfig) Reset

func (x *InterfaceConfig) Reset()

func (*InterfaceConfig) String

func (x *InterfaceConfig) String() string

type Layer1

type Layer1 int32
const (
	Layer1_Layer1_Undefined Layer1 = 0
	// 100 mbps
	Layer1_Base100T Layer1 = 1
	// 1 gbps
	Layer1_Base1000T    Layer1 = 2
	Layer1_Base1000X    Layer1 = 3
	Layer1_Base1000CX   Layer1 = 4
	Layer1_Base1000SX   Layer1 = 5
	Layer1_Base1000LX   Layer1 = 6
	Layer1_Base1000LX10 Layer1 = 7
	Layer1_Base1000EX   Layer1 = 8
	Layer1_Base1000BX10 Layer1 = 9
	Layer1_Base1000ZX   Layer1 = 10
	// 10 gbps
	Layer1_GBase10T   Layer1 = 11
	Layer1_GBase10CR  Layer1 = 12
	Layer1_GBase10SR  Layer1 = 13
	Layer1_GBase10LR  Layer1 = 14
	Layer1_GBase10LRM Layer1 = 15
	Layer1_GBase10ER  Layer1 = 16
	Layer1_GBase10ZR  Layer1 = 17
	Layer1_GBase10LX4 Layer1 = 18
	Layer1_GBase10PR  Layer1 = 19
	// 25 gbps
	Layer1_GBase25CR Layer1 = 20
	Layer1_GBase25SR Layer1 = 21
	Layer1_GBase25LR Layer1 = 22
	Layer1_GBase25ER Layer1 = 23
	// 40 gbps
	Layer1_GBase40CR4 Layer1 = 24
	Layer1_GBase40SR4 Layer1 = 25
	Layer1_GBase40LR4 Layer1 = 26
	Layer1_GBase40ER4 Layer1 = 27
	// 100 gbps
	Layer1_GBase100CR4  Layer1 = 28
	Layer1_GBase100SR4  Layer1 = 29
	Layer1_GBase100SR10 Layer1 = 30
	Layer1_GBase100LR4  Layer1 = 31
	Layer1_GBase100ER4  Layer1 = 32
	// Console
	Layer1_RS232 Layer1 = 33
	Layer1_Uart  Layer1 = 34
	// 50 gbps
	Layer1_GBase50SR4 Layer1 = 35
	Layer1_GBase50LR4 Layer1 = 36
	Layer1_GBase50ER4 Layer1 = 37
	Layer1_GBase50CR  Layer1 = 38
	Layer1_GBase50KR  Layer1 = 39
	Layer1_GBase50SR  Layer1 = 40
	Layer1_GBase50LR  Layer1 = 41
	Layer1_GBase50FR  Layer1 = 42
	Layer1_GBase50ER  Layer1 = 43
	Layer1_LAUI_2     Layer1 = 44
	Layer1_GAUI50_1   Layer1 = 45
	Layer1_GAUI50_2   Layer1 = 46
	// 200 gbps
	Layer1_GBase200CR4 Layer1 = 47
	Layer1_GBase200KR4 Layer1 = 48
	Layer1_GBase200SR4 Layer1 = 49
	Layer1_GBase200DR4 Layer1 = 50
	Layer1_GBase200FR4 Layer1 = 51
	Layer1_GBase200LR4 Layer1 = 52
	Layer1_GBase200ER4 Layer1 = 53
	Layer1_GAUI200_4   Layer1 = 54
	Layer1_GAUI200_8   Layer1 = 55
	// 400 gbps
	Layer1_GBase400SR16  Layer1 = 56
	Layer1_GBase400SR8   Layer1 = 57
	Layer1_GBase400SR4_2 Layer1 = 58
	Layer1_GBase400DR4   Layer1 = 59
	Layer1_GBase400FR8   Layer1 = 60
	Layer1_GBase400ER8   Layer1 = 61
	Layer1_GBase400ZR    Layer1 = 62
	Layer1_GAUI400_16    Layer1 = 63
	Layer1_GAUI400_8     Layer1 = 64
	Layer1_XBee          Layer1 = 65
	Layer1_ZWave         Layer1 = 66
	Layer1_Zigbee        Layer1 = 67
	Layer1_CXP100        Layer1 = 68
	Layer1_CXP120        Layer1 = 69
)

func (Layer1) Descriptor

func (Layer1) Descriptor() protoreflect.EnumDescriptor

func (Layer1) Enum

func (x Layer1) Enum() *Layer1

func (Layer1) EnumDescriptor deprecated

func (Layer1) EnumDescriptor() ([]byte, []int)

Deprecated: Use Layer1.Descriptor instead.

func (Layer1) Number

func (x Layer1) Number() protoreflect.EnumNumber

func (Layer1) String

func (x Layer1) String() string

func (Layer1) Type

func (Layer1) Type() protoreflect.EnumType

type LeafConfig

type LeafConfig struct {
	ServiceAddressBlocks *AddressList `protobuf:"bytes,1,opt,name=service_address_blocks,json=serviceAddressBlocks,proto3" json:"service_address_blocks,omitempty"`
	TenantAddressBlocks  *AddressList `protobuf:"bytes,2,opt,name=tenant_address_blocks,json=tenantAddressBlocks,proto3" json:"tenant_address_blocks,omitempty"`
	// interface -> address block
	InfrapodAddressBlocks map[string]*AddressList `` /* 214-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LeafConfig) Descriptor deprecated

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

Deprecated: Use LeafConfig.ProtoReflect.Descriptor instead.

func (*LeafConfig) GetInfrapodAddressBlocks

func (x *LeafConfig) GetInfrapodAddressBlocks() map[string]*AddressList

func (*LeafConfig) GetServiceAddressBlocks

func (x *LeafConfig) GetServiceAddressBlocks() *AddressList

func (*LeafConfig) GetTenantAddressBlocks

func (x *LeafConfig) GetTenantAddressBlocks() *AddressList

func (*LeafConfig) ProtoMessage

func (*LeafConfig) ProtoMessage()

func (*LeafConfig) ProtoReflect

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

func (*LeafConfig) Reset

func (x *LeafConfig) Reset()

func (*LeafConfig) String

func (x *LeafConfig) String() string

type Limits

type Limits struct {
	Lower float32 `protobuf:"fixed32,1,opt,name=lower,proto3" json:"lower,omitempty"`
	Upper float32 `protobuf:"fixed32,2,opt,name=upper,proto3" json:"upper,omitempty"`
	// contains filtered or unexported fields
}

func (*Limits) Descriptor deprecated

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

Deprecated: Use Limits.ProtoReflect.Descriptor instead.

func (*Limits) GetLower

func (x *Limits) GetLower() float32

func (*Limits) GetUpper

func (x *Limits) GetUpper() float32

func (*Limits) ProtoMessage

func (*Limits) ProtoMessage()

func (*Limits) ProtoReflect

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

func (*Limits) Reset

func (x *Limits) Reset()

func (*Limits) String

func (x *Limits) String() string
type Link struct {
	Id        string              `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Latency   *Uint64Constraint   `protobuf:"bytes,2,opt,name=latency,proto3" json:"latency,omitempty"`
	Capacity  *Uint64Constraint   `protobuf:"bytes,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Loss      *FloatConstraint    `protobuf:"bytes,4,opt,name=loss,proto3" json:"loss,omitempty"`
	Endpoints []*Endpoint         `protobuf:"bytes,5,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Kind      *LinkKindConstraint `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"`
	Layer     *Uint64Constraint   `protobuf:"bytes,7,opt,name=layer,proto3" json:"layer,omitempty"`
	// Run time and post-publish properties
	Properties *Properties `protobuf:"bytes,8,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetCapacity

func (x *Link) GetCapacity() *Uint64Constraint

func (*Link) GetEndpoints

func (x *Link) GetEndpoints() []*Endpoint

func (*Link) GetId

func (x *Link) GetId() string

func (*Link) GetKind

func (x *Link) GetKind() *LinkKindConstraint

func (*Link) GetLatency

func (x *Link) GetLatency() *Uint64Constraint

func (*Link) GetLayer added in v0.3.1

func (x *Link) GetLayer() *Uint64Constraint

func (*Link) GetLoss added in v0.3.1

func (x *Link) GetLoss() *FloatConstraint

func (*Link) GetProperties added in v0.3.1

func (x *Link) GetProperties() *Properties

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type LinkKindConstraint

type LinkKindConstraint struct {
	Op    Operator  `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value Link_Kind `protobuf:"varint,2,opt,name=value,proto3,enum=xir.Link_Kind" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkKindConstraint) Descriptor deprecated

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

Deprecated: Use LinkKindConstraint.ProtoReflect.Descriptor instead.

func (*LinkKindConstraint) GetOp

func (x *LinkKindConstraint) GetOp() Operator

func (*LinkKindConstraint) GetValue

func (x *LinkKindConstraint) GetValue() Link_Kind

func (*LinkKindConstraint) ProtoMessage

func (*LinkKindConstraint) ProtoMessage()

func (*LinkKindConstraint) ProtoReflect

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

func (*LinkKindConstraint) Reset

func (x *LinkKindConstraint) Reset()

func (*LinkKindConstraint) String

func (x *LinkKindConstraint) String() string

type LinkRole

type LinkRole int32
const (
	LinkRole_LinkRole_Unspecified LinkRole = 0
	LinkRole_InfraLink            LinkRole = 1
	LinkRole_XpLink               LinkRole = 2
	LinkRole_Tor                  LinkRole = 3
	LinkRole_EmuLink              LinkRole = 4
	LinkRole_MgmtLink             LinkRole = 5
	LinkRole_GatewayLink          LinkRole = 6
	LinkRole_SimLink              LinkRole = 7
	LinkRole_HarborEndpoint       LinkRole = 8
)

func (LinkRole) Descriptor

func (LinkRole) Descriptor() protoreflect.EnumDescriptor

func (LinkRole) Enum

func (x LinkRole) Enum() *LinkRole

func (LinkRole) EnumDescriptor deprecated

func (LinkRole) EnumDescriptor() ([]byte, []int)

Deprecated: Use LinkRole.Descriptor instead.

func (LinkRole) Number

func (x LinkRole) Number() protoreflect.EnumNumber

func (LinkRole) String

func (x LinkRole) String() string

func (LinkRole) Type

type Link_Kind int32
const (
	Link_unspec   Link_Kind = 0
	Link_ethernet Link_Kind = 1
	Link_wifi     Link_Kind = 2
	Link_wifi_ac  Link_Kind = 3
	Link_wifi_ax  Link_Kind = 4
	Link_lte_4g   Link_Kind = 5
	Link_lte_5g   Link_Kind = 6
)
func (Link_Kind) Descriptor() protoreflect.EnumDescriptor
func (x Link_Kind) Enum() *Link_Kind
func (Link_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Link_Kind.Descriptor instead.

func (x Link_Kind) Number() protoreflect.EnumNumber
func (x Link_Kind) String() string

type MemoryAllocation

type MemoryAllocation struct {
	Alloc map[uint32]*DimmAllocation `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MemoryAllocation) Allocate

func (a *MemoryAllocation) Allocate(index uint32, d *DimmAllocation)

func (*MemoryAllocation) Descriptor deprecated

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

Deprecated: Use MemoryAllocation.ProtoReflect.Descriptor instead.

func (*MemoryAllocation) GetAlloc

func (x *MemoryAllocation) GetAlloc() map[uint32]*DimmAllocation

func (*MemoryAllocation) ProtoMessage

func (*MemoryAllocation) ProtoMessage()

func (*MemoryAllocation) ProtoReflect

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

func (*MemoryAllocation) Reset

func (x *MemoryAllocation) Reset()

func (*MemoryAllocation) Show

func (m *MemoryAllocation) Show() string

func (*MemoryAllocation) String

func (x *MemoryAllocation) String() string

func (*MemoryAllocation) TotalCapacity

func (m *MemoryAllocation) TotalCapacity() uint64

type MemorySpec

type MemorySpec struct {
	Type      *MemoryTypeConstraint `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Capacity  *Uint64Constraint     `protobuf:"bytes,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Frequency *Uint64Constraint     `protobuf:"bytes,3,opt,name=frequency,proto3" json:"frequency,omitempty"`
	Modules   *Uint64Constraint     `protobuf:"bytes,4,opt,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

func (*MemorySpec) Descriptor deprecated

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

Deprecated: Use MemorySpec.ProtoReflect.Descriptor instead.

func (*MemorySpec) GetCapacity

func (x *MemorySpec) GetCapacity() *Uint64Constraint

func (*MemorySpec) GetFrequency

func (x *MemorySpec) GetFrequency() *Uint64Constraint

func (*MemorySpec) GetModules

func (x *MemorySpec) GetModules() *Uint64Constraint

func (*MemorySpec) GetType

func (x *MemorySpec) GetType() *MemoryTypeConstraint

func (*MemorySpec) ProtoMessage

func (*MemorySpec) ProtoMessage()

func (*MemorySpec) ProtoReflect

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

func (*MemorySpec) Reset

func (x *MemorySpec) Reset()

func (*MemorySpec) String

func (x *MemorySpec) String() string

type MemoryType

type MemoryType int32
const (
	MemoryType_DDR3 MemoryType = 0
	MemoryType_DDR4 MemoryType = 1
)

func (MemoryType) Descriptor

func (MemoryType) Descriptor() protoreflect.EnumDescriptor

func (MemoryType) Enum

func (x MemoryType) Enum() *MemoryType

func (MemoryType) EnumDescriptor deprecated

func (MemoryType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MemoryType.Descriptor instead.

func (MemoryType) Number

func (x MemoryType) Number() protoreflect.EnumNumber

func (MemoryType) String

func (x MemoryType) String() string

func (MemoryType) Type

type MemoryTypeConstraint

type MemoryTypeConstraint struct {
	Op    Operator   `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value MemoryType `protobuf:"varint,2,opt,name=value,proto3,enum=xir.MemoryType" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MemoryTypeConstraint) Descriptor deprecated

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

Deprecated: Use MemoryTypeConstraint.ProtoReflect.Descriptor instead.

func (*MemoryTypeConstraint) GetOp

func (x *MemoryTypeConstraint) GetOp() Operator

func (*MemoryTypeConstraint) GetValue

func (x *MemoryTypeConstraint) GetValue() MemoryType

func (*MemoryTypeConstraint) ProtoMessage

func (*MemoryTypeConstraint) ProtoMessage()

func (*MemoryTypeConstraint) ProtoReflect

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

func (*MemoryTypeConstraint) Reset

func (x *MemoryTypeConstraint) Reset()

func (*MemoryTypeConstraint) String

func (x *MemoryTypeConstraint) String() string

type NIC

type NIC struct {
	Ports         []*Port      `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"`
	StartingIndex uint32       `protobuf:"varint,2,opt,name=starting_index,json=startingIndex,proto3" json:"starting_index,omitempty"`
	Kind          NICKind      `protobuf:"varint,3,opt,name=kind,proto3,enum=xir.NICKind" json:"kind,omitempty"`
	ProductInfo   *ProductInfo `protobuf:"bytes,4,opt,name=product_info,json=productInfo,proto3" json:"product_info,omitempty"`
	DPDK          bool         `protobuf:"varint,5,opt,name=DPDK,proto3" json:"DPDK,omitempty"`
	// contains filtered or unexported fields
}

func GenericNIC

func GenericNIC(
	parent *Resource,
	kind NICKind,
	linkRole LinkRole,
	radix uint,
	capacity uint64,
	protocols []Layer1,
	formFactor ConnectorKind,
) *NIC

func (*NIC) Breakout added in v0.3.1

func (n *NIC) Breakout(p *Port, ps []*Port) []*Port

Break out a port into sub-ports

func (*NIC) Descriptor deprecated

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

Deprecated: Use NIC.ProtoReflect.Descriptor instead.

func (*NIC) GetDPDK

func (x *NIC) GetDPDK() bool

func (*NIC) GetKind

func (x *NIC) GetKind() NICKind

func (*NIC) GetPorts

func (x *NIC) GetPorts() []*Port

func (*NIC) GetProductInfo

func (x *NIC) GetProductInfo() *ProductInfo

func (*NIC) GetStartingIndex

func (x *NIC) GetStartingIndex() uint32

func (*NIC) PhysPort added in v0.3.1

func (n *NIC) PhysPort(index int) *Port

func (*NIC) PhysPorts added in v0.3.1

func (n *NIC) PhysPorts(begin, end int) []*Port

Collect a range of physical ports, end is non-inclusive

func (*NIC) ProtoMessage

func (*NIC) ProtoMessage()

func (*NIC) ProtoReflect

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

func (*NIC) Reset

func (x *NIC) Reset()

func (*NIC) Satisfies

func (n *NIC) Satisfies(s *NICSpec) bool

func (*NIC) SetCapacity

func (n *NIC) SetCapacity(c uint64)

func (*NIC) SetConnector

func (n *NIC) SetConnector(c ConnectorKind)

func (*NIC) SetProductInfo

func (x *NIC) SetProductInfo(pi *ProductInfo)

func (*NIC) String

func (x *NIC) String() string

type NICAllocation

type NICAllocation struct {
	Alloc map[uint32]*PortAllocation `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NICAllocation) Descriptor deprecated

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

Deprecated: Use NICAllocation.ProtoReflect.Descriptor instead.

func (*NICAllocation) GetAlloc

func (x *NICAllocation) GetAlloc() map[uint32]*PortAllocation

func (*NICAllocation) ProtoMessage

func (*NICAllocation) ProtoMessage()

func (*NICAllocation) ProtoReflect

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

func (*NICAllocation) Reset

func (x *NICAllocation) Reset()

func (*NICAllocation) String

func (x *NICAllocation) String() string

type NICKind

type NICKind int32
const (
	// Ethernet
	NICKind_ETH NICKind = 0
	// Ethernet peripheral
	NICKind_ENP NICKind = 1
	// Ethernet onboard
	NICKind_ENO NICKind = 2
	// Ethernet peripheral hotplog slot
	NICKind_ENS NICKind = 3
	// WiFi peripheral
	NICKind_WLP NICKind = 4
	// Switch port
	NICKind_SWP NICKind = 5
	// IPMI/BMC
	NICKind_IPMI NICKind = 6
	// IPMI/BMC + System Ethernet
	NICKind_Combo NICKind = 7
)

func (NICKind) Descriptor

func (NICKind) Descriptor() protoreflect.EnumDescriptor

func (NICKind) Enum

func (x NICKind) Enum() *NICKind

func (NICKind) EnumDescriptor deprecated

func (NICKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use NICKind.Descriptor instead.

func (NICKind) Number

func (x NICKind) Number() protoreflect.EnumNumber

func (NICKind) Prefix

func (x NICKind) Prefix() string

func (NICKind) String

func (x NICKind) String() string

func (NICKind) Type

func (NICKind) Type() protoreflect.EnumType

type NICModel

type NICModel int32
const (
	NICModel_Intel200   NICModel = 0
	NICModel_Intel300   NICModel = 1
	NICModel_Intel500   NICModel = 2
	NICModel_Intel700   NICModel = 3
	NICModel_Intel800   NICModel = 4
	NICModel_Intel7000  NICModel = 50
	NICModel_Intel8000  NICModel = 51
	NICModel_Intel9000  NICModel = 52
	NICModel_ConnectX4  NICModel = 101
	NICModel_ConnectX5  NICModel = 102
	NICModel_ConnectX6  NICModel = 103
	NICModel_NetXtreme2 NICModel = 201
	NICModel_QCA9000    NICModel = 301
	NICModel_Virtio     NICModel = 10001
	NICModel_E1000      NICModel = 10002
	NICModel_E1000E     NICModel = 10003
	NICModel_VF         NICModel = 10004
)

func (NICModel) Descriptor

func (NICModel) Descriptor() protoreflect.EnumDescriptor

func (NICModel) Enum

func (x NICModel) Enum() *NICModel

func (NICModel) EnumDescriptor deprecated

func (NICModel) EnumDescriptor() ([]byte, []int)

Deprecated: Use NICModel.Descriptor instead.

func (NICModel) Number

func (x NICModel) Number() protoreflect.EnumNumber

func (NICModel) String

func (x NICModel) String() string

func (NICModel) Type

type NICModelConstraint

type NICModelConstraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value NICModel `protobuf:"varint,2,opt,name=value,proto3,enum=xir.NICModel" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*NICModelConstraint) Descriptor deprecated

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

Deprecated: Use NICModelConstraint.ProtoReflect.Descriptor instead.

func (*NICModelConstraint) GetOp

func (x *NICModelConstraint) GetOp() Operator

func (*NICModelConstraint) GetValue

func (x *NICModelConstraint) GetValue() NICModel

func (*NICModelConstraint) ProtoMessage

func (*NICModelConstraint) ProtoMessage()

func (*NICModelConstraint) ProtoReflect

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

func (*NICModelConstraint) Reset

func (x *NICModelConstraint) Reset()

func (*NICModelConstraint) String

func (x *NICModelConstraint) String() string

type NICSpec

type NICSpec struct {
	Ports []*PortSpec `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*NICSpec) Descriptor deprecated

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

Deprecated: Use NICSpec.ProtoReflect.Descriptor instead.

func (*NICSpec) GetPorts

func (x *NICSpec) GetPorts() []*PortSpec

func (*NICSpec) ProtoMessage

func (*NICSpec) ProtoMessage()

func (*NICSpec) ProtoReflect

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

func (*NICSpec) Reset

func (x *NICSpec) Reset()

func (*NICSpec) String

func (x *NICSpec) String() string

type NICsAllocation

type NICsAllocation struct {
	Alloc map[uint32]*NICAllocation `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NICsAllocation) Allocate

func (a *NICsAllocation) Allocate(n, p uint32, pa *PortAllocation)

func (*NICsAllocation) Descriptor deprecated

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

Deprecated: Use NICsAllocation.ProtoReflect.Descriptor instead.

func (*NICsAllocation) GetAlloc

func (x *NICsAllocation) GetAlloc() map[uint32]*NICAllocation

func (*NICsAllocation) ProtoMessage

func (*NICsAllocation) ProtoMessage()

func (*NICsAllocation) ProtoReflect

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

func (*NICsAllocation) Reset

func (x *NICsAllocation) Reset()

func (*NICsAllocation) Show

func (n *NICsAllocation) Show() string

func (*NICsAllocation) String

func (x *NICsAllocation) String() string

func (*NICsAllocation) TotalCapacity

func (n *NICsAllocation) TotalCapacity() uint64

type Neighbor

type Neighbor struct {
	Local      *Interface
	Remote     *Interface
	Connection *Connection
}

type Network

type Network struct {
	Id         string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Nodes      []*Node               `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Links      []*Link               `protobuf:"bytes,3,rep,name=links,proto3" json:"links,omitempty"`
	Parameters *ExperimentParameters `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func NetworkFromB64String

func NetworkFromB64String(pbuf string) (*Network, error)

func NetworkFromFile added in v0.3.1

func NetworkFromFile(file string) (*Network, error)

TODO all these serialization functions need to be guarded by XIR semvers to avoid subtle and very difficult to track bugs from creeping in due to protobuf spec skew or protoc versions.

func NetworkFromRawString

func NetworkFromRawString(pbuf string) (*Network, error)

func (*Network) Descriptor deprecated

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

Deprecated: Use Network.ProtoReflect.Descriptor instead.

func (*Network) GetId

func (x *Network) GetId() string
func (n *Network) GetLink(id string) *Link
func (x *Network) GetLinks() []*Link

func (*Network) GetNode

func (n *Network) GetNode(id string) *Node

func (*Network) GetNodes

func (x *Network) GetNodes() []*Node

func (*Network) GetParameters

func (x *Network) GetParameters() *ExperimentParameters

func (*Network) Lift

func (n *Network) Lift() *Topology

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) ProtoReflect

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

func (*Network) Reset

func (x *Network) Reset()

func (*Network) String

func (x *Network) String() string

func (*Network) ToB64Buf

func (n *Network) ToB64Buf() ([]byte, error)

func (*Network) ToBuf

func (n *Network) ToBuf() ([]byte, error)

func (*Network) ToNodeGraph added in v0.3.1

func (n *Network) ToNodeGraph() (*NodeGraph, error)

func (*Network) ToSocketGraph added in v0.3.1

func (n *Network) ToSocketGraph() (*SocketGraph, error)

type Node

type Node struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Sockets  []*Socket         `protobuf:"bytes,2,rep,name=sockets,proto3" json:"sockets,omitempty"`
	Proc     *ProcSpec         `protobuf:"bytes,3,opt,name=proc,proto3" json:"proc,omitempty"`
	Memory   *MemorySpec       `protobuf:"bytes,4,opt,name=memory,proto3" json:"memory,omitempty"`
	NIC      *NICSpec          `protobuf:"bytes,5,opt,name=NIC,proto3" json:"NIC,omitempty"`
	Disks    *DiskSpec         `protobuf:"bytes,6,opt,name=disks,proto3" json:"disks,omitempty"`
	Metal    *BoolConstraint   `protobuf:"bytes,7,opt,name=metal,proto3" json:"metal,omitempty"`
	Virt     *BoolConstraint   `protobuf:"bytes,8,opt,name=virt,proto3" json:"virt,omitempty"`
	Image    *StringConstraint `protobuf:"bytes,9,opt,name=image,proto3" json:"image,omitempty"`
	Platform *StringConstraint `protobuf:"bytes,10,opt,name=platform,proto3" json:"platform,omitempty"` //TODO: should be enum?
	Viz      *Visualization    `protobuf:"bytes,11,opt,name=viz,proto3" json:"viz,omitempty"`
	Conf     *NodeConfig       `protobuf:"bytes,12,opt,name=conf,proto3" json:"conf,omitempty"`
	// Run time and post-publish properties
	Properties *Properties `protobuf:"bytes,13,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Degree

func (n *Node) Degree() int

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetConf added in v0.3.1

func (x *Node) GetConf() *NodeConfig

func (*Node) GetDisks

func (x *Node) GetDisks() *DiskSpec

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetImage

func (x *Node) GetImage() *StringConstraint

func (*Node) GetMemory

func (x *Node) GetMemory() *MemorySpec

func (*Node) GetMetal

func (x *Node) GetMetal() *BoolConstraint

func (*Node) GetNIC

func (x *Node) GetNIC() *NICSpec

func (*Node) GetPlatform

func (x *Node) GetPlatform() *StringConstraint

func (*Node) GetProc

func (x *Node) GetProc() *ProcSpec

func (*Node) GetProperties added in v0.3.1

func (x *Node) GetProperties() *Properties

func (*Node) GetSockets

func (x *Node) GetSockets() []*Socket

func (*Node) GetVirt

func (x *Node) GetVirt() *BoolConstraint

func (*Node) GetViz

func (x *Node) GetViz() *Visualization

func (*Node) Identify

func (n *Node) Identify() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeConfig added in v0.3.1

type NodeConfig struct {
	Routes []*RouteConfig `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeConfig) Descriptor deprecated added in v0.3.1

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

Deprecated: Use NodeConfig.ProtoReflect.Descriptor instead.

func (*NodeConfig) GetRoutes added in v0.3.1

func (x *NodeConfig) GetRoutes() []*RouteConfig

func (*NodeConfig) ProtoMessage added in v0.3.1

func (*NodeConfig) ProtoMessage()

func (*NodeConfig) ProtoReflect added in v0.3.1

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

func (*NodeConfig) Reset added in v0.3.1

func (x *NodeConfig) Reset()

func (*NodeConfig) String added in v0.3.1

func (x *NodeConfig) String() string

type NodeGraph added in v0.3.1

type NodeGraph struct {
	Network *Network

	*simple.UndirectedGraph
	// contains filtered or unexported fields
}

NodeGraph builds a graph using the Nodes in a Network.

func NewNodeGraph added in v0.3.1

func NewNodeGraph(n *Network) *NodeGraph

func ToNodeGraph added in v0.3.1

func ToNodeGraph(net *Network) *NodeGraph

ToNodeGraph returns a graph with xir.Nodes as vertexes and xir.Endpoints as edges.

func (*NodeGraph) NodeByName added in v0.3.1

func (ng *NodeGraph) NodeByName(name string) *NodeGraphVertex

Get graph node given a xir.Node id (name)

func (*NodeGraph) ToDot added in v0.3.1

func (g *NodeGraph) ToDot() ([]byte, error)

type NodeGraphEdge added in v0.3.1

type NodeGraphEdge struct {
	Link         *Link
	EndpointFrom *Endpoint
	EndpointTo   *Endpoint

	simple.Edge
}

NodeGraphEdge has the endpoints and Link of the edge between the nodes.

func (NodeGraphEdge) FromPort added in v0.3.1

func (e NodeGraphEdge) FromPort() (string, string)

func (NodeGraphEdge) ToPort added in v0.3.1

func (e NodeGraphEdge) ToPort() (string, string)

type NodeGraphVertex added in v0.3.1

type NodeGraphVertex struct {
	Node *Node
	// contains filtered or unexported fields
}

NodeGraphVertex is the Node itself.

func (NodeGraphVertex) Attributes added in v0.3.1

func (v NodeGraphVertex) Attributes() []encoding.Attribute

dot vertex attribute interface. We add a label divided into an area per interface. The edges use these areas to point to the correct place on the vertex. Format for this is "<n> name|<n1> name1|...|<nx> namex>". The Mrecord shape gives us rounded corners on the vertex.

func (NodeGraphVertex) DOTID added in v0.3.1

func (v NodeGraphVertex) DOTID() string

graphviz interfaces

func (NodeGraphVertex) ID added in v0.3.1

func (v NodeGraphVertex) ID() int64

implement simple.Graph interface

type OSConfig

type OSConfig struct {
	BGP              []*BGPRouterConfig          `protobuf:"bytes,1,rep,name=BGP,proto3" json:"BGP,omitempty"`
	Bridge           []*BridgeConfig             `protobuf:"bytes,2,rep,name=bridge,proto3" json:"bridge,omitempty"`
	VLAN             []*VLANConfig               `protobuf:"bytes,3,rep,name=VLAN,proto3" json:"VLAN,omitempty"`
	ServiceEndpoints map[uint32]*ServiceEndpoint `` //map key is VxLAN VNI
	/* 198-byte string literal not displayed */
	Append       string `protobuf:"bytes,5,opt,name=append,proto3" json:"append,omitempty"`
	Rootdev      string `protobuf:"bytes,6,opt,name=rootdev,proto3" json:"rootdev,omitempty"`
	DefaultImage string `protobuf:"bytes,7,opt,name=default_image,json=defaultImage,proto3" json:"default_image,omitempty"`
	// contains filtered or unexported fields
}

func (*OSConfig) Descriptor deprecated

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

Deprecated: Use OSConfig.ProtoReflect.Descriptor instead.

func (*OSConfig) GetAppend

func (x *OSConfig) GetAppend() string

func (*OSConfig) GetBGP

func (x *OSConfig) GetBGP() []*BGPRouterConfig

func (*OSConfig) GetBridge

func (x *OSConfig) GetBridge() []*BridgeConfig

func (*OSConfig) GetDefaultImage

func (x *OSConfig) GetDefaultImage() string

func (*OSConfig) GetRootdev

func (x *OSConfig) GetRootdev() string

func (*OSConfig) GetServiceEndpoints

func (x *OSConfig) GetServiceEndpoints() map[uint32]*ServiceEndpoint

func (*OSConfig) GetVLAN

func (x *OSConfig) GetVLAN() []*VLANConfig

func (*OSConfig) ProtoMessage

func (*OSConfig) ProtoMessage()

func (*OSConfig) ProtoReflect

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

func (*OSConfig) Reset

func (x *OSConfig) Reset()

func (*OSConfig) String

func (x *OSConfig) String() string

type Operator

type Operator int32
const (
	Operator_Op_Undefined Operator = 0
	Operator_LT           Operator = 1
	Operator_LE           Operator = 2
	Operator_GT           Operator = 3
	Operator_GE           Operator = 4
	Operator_EQ           Operator = 5
	Operator_NE           Operator = 6
)

func (Operator) Descriptor

func (Operator) Descriptor() protoreflect.EnumDescriptor

func (Operator) Enum

func (x Operator) Enum() *Operator

func (Operator) EnumDescriptor deprecated

func (Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operator.Descriptor instead.

func (Operator) Number

func (x Operator) Number() protoreflect.EnumNumber

func (Operator) String

func (x Operator) String() string

func (Operator) Type

type Phyo

type Phyo struct {
	Id    string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Eqtns []string `protobuf:"bytes,2,rep,name=eqtns,proto3" json:"eqtns,omitempty"`
	// contains filtered or unexported fields
}

func (*Phyo) Descriptor deprecated

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

Deprecated: Use Phyo.ProtoReflect.Descriptor instead.

func (*Phyo) GetEqtns

func (x *Phyo) GetEqtns() []string

func (*Phyo) GetId

func (x *Phyo) GetId() string

func (*Phyo) ProtoMessage

func (*Phyo) ProtoMessage()

func (*Phyo) ProtoReflect

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

func (*Phyo) Reset

func (x *Phyo) Reset()

func (*Phyo) String

func (x *Phyo) String() string

type Port

type Port struct {
	Parent     string        `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Index      uint32        `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	Protocols  []Layer1      `protobuf:"varint,3,rep,packed,name=protocols,proto3,enum=xir.Layer1" json:"protocols,omitempty"`
	Capacity   uint64        `protobuf:"varint,4,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Mac        string        `protobuf:"bytes,5,opt,name=mac,proto3" json:"mac,omitempty"`
	FormFactor ConnectorKind `protobuf:"varint,6,opt,name=form_factor,json=formFactor,proto3,enum=xir.ConnectorKind" json:"form_factor,omitempty"`
	Connector  *Ref          `protobuf:"bytes,7,opt,name=connector,proto3" json:"connector,omitempty"`
	Role       LinkRole      `protobuf:"varint,8,opt,name=role,proto3,enum=xir.LinkRole" json:"role,omitempty"`
	TPA        uint64        `protobuf:"varint,9,opt,name=TPA,proto3" json:"TPA,omitempty"`
	Queues     uint64        `protobuf:"varint,10,opt,name=queues,proto3" json:"queues,omitempty"`
	Breakout   *Breakout     `protobuf:"bytes,11,opt,name=breakout,proto3" json:"breakout,omitempty"`
	Bond       *PortBond     `protobuf:"bytes,12,opt,name=bond,proto3" json:"bond,omitempty"`
	Name       string        `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetBond added in v0.3.1

func (x *Port) GetBond() *PortBond

func (*Port) GetBreakout added in v0.3.1

func (x *Port) GetBreakout() *Breakout

func (*Port) GetCapacity

func (x *Port) GetCapacity() uint64

func (*Port) GetConnector

func (x *Port) GetConnector() *Ref

func (*Port) GetFormFactor

func (x *Port) GetFormFactor() ConnectorKind

func (*Port) GetIndex

func (x *Port) GetIndex() uint32

func (*Port) GetMac

func (x *Port) GetMac() string

func (*Port) GetName added in v0.3.1

func (x *Port) GetName() string

func (*Port) GetParent

func (x *Port) GetParent() string

func (*Port) GetProtocols

func (x *Port) GetProtocols() []Layer1

func (*Port) GetQueues

func (x *Port) GetQueues() uint64

func (*Port) GetRole

func (x *Port) GetRole() LinkRole

func (*Port) GetTPA

func (x *Port) GetTPA() uint64

func (*Port) Label

func (p *Port) Label() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

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

func (*Port) Reset

func (x *Port) Reset()

func (*Port) Satisfies

func (p *Port) Satisfies(s *PortSpec) bool

func (*Port) SetCapacity

func (p *Port) SetCapacity(c uint64)

func (*Port) SetConnector

func (p *Port) SetConnector(c ConnectorKind)

func (*Port) String

func (x *Port) String() string

type PortAllocation

type PortAllocation struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Mac      string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"`
	Capacity uint64 `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

func (*PortAllocation) Add

func (a *PortAllocation) Add(x *PortAllocation)

func (*PortAllocation) Descriptor deprecated

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

Deprecated: Use PortAllocation.ProtoReflect.Descriptor instead.

func (*PortAllocation) GetCapacity

func (x *PortAllocation) GetCapacity() uint64

func (*PortAllocation) GetMac added in v0.3.1

func (x *PortAllocation) GetMac() string

func (*PortAllocation) GetName added in v0.3.1

func (x *PortAllocation) GetName() string

func (*PortAllocation) ProtoMessage

func (*PortAllocation) ProtoMessage()

func (*PortAllocation) ProtoReflect

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

func (*PortAllocation) Reset

func (x *PortAllocation) Reset()

func (*PortAllocation) String

func (x *PortAllocation) String() string

type PortBond added in v0.3.1

type PortBond struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PortBond) Descriptor deprecated added in v0.3.1

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

Deprecated: Use PortBond.ProtoReflect.Descriptor instead.

func (*PortBond) GetName added in v0.3.1

func (x *PortBond) GetName() string

func (*PortBond) ProtoMessage added in v0.3.1

func (*PortBond) ProtoMessage()

func (*PortBond) ProtoReflect added in v0.3.1

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

func (*PortBond) Reset added in v0.3.1

func (x *PortBond) Reset()

func (*PortBond) String added in v0.3.1

func (x *PortBond) String() string

type PortRef

type PortRef struct {
	Mac string `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	// contains filtered or unexported fields
}

func (*PortRef) Descriptor deprecated

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

Deprecated: Use PortRef.ProtoReflect.Descriptor instead.

func (*PortRef) GetMac

func (x *PortRef) GetMac() string

func (*PortRef) ProtoMessage

func (*PortRef) ProtoMessage()

func (*PortRef) ProtoReflect

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

func (*PortRef) Reset

func (x *PortRef) Reset()

func (*PortRef) String

func (x *PortRef) String() string

type PortSpec

type PortSpec struct {
	Protocols  []Layer1                 `protobuf:"varint,1,rep,packed,name=protocols,proto3,enum=xir.Layer1" json:"protocols,omitempty"`
	Capacity   *Uint64Constraint        `protobuf:"bytes,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	FormFactor *ConnectorKindConstraint `protobuf:"bytes,3,opt,name=form_factor,json=formFactor,proto3" json:"form_factor,omitempty"`
	Queues     *Uint64Constraint        `protobuf:"bytes,4,opt,name=queues,proto3" json:"queues,omitempty"`
	Model      *NICModelConstraint      `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
	DPDK       *BoolConstraint          `protobuf:"bytes,6,opt,name=DPDK,proto3" json:"DPDK,omitempty"`
	// contains filtered or unexported fields
}

func (*PortSpec) Descriptor deprecated

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

Deprecated: Use PortSpec.ProtoReflect.Descriptor instead.

func (*PortSpec) GetCapacity

func (x *PortSpec) GetCapacity() *Uint64Constraint

func (*PortSpec) GetDPDK

func (x *PortSpec) GetDPDK() *BoolConstraint

func (*PortSpec) GetFormFactor

func (x *PortSpec) GetFormFactor() *ConnectorKindConstraint

func (*PortSpec) GetModel

func (x *PortSpec) GetModel() *NICModelConstraint

func (*PortSpec) GetProtocols

func (x *PortSpec) GetProtocols() []Layer1

func (*PortSpec) GetQueues

func (x *PortSpec) GetQueues() *Uint64Constraint

func (*PortSpec) ProtoMessage

func (*PortSpec) ProtoMessage()

func (*PortSpec) ProtoReflect

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

func (*PortSpec) Reset

func (x *PortSpec) Reset()

func (*PortSpec) String

func (x *PortSpec) String() string

type PowerDistributionUnit

type PowerDistributionUnit struct {
	Host    string                     `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Outlets []uint32                   `protobuf:"varint,2,rep,packed,name=outlets,proto3" json:"outlets,omitempty"`
	Kind    PowerDistributionUnit_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=xir.PowerDistributionUnit_Kind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*PowerDistributionUnit) Descriptor deprecated

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

Deprecated: Use PowerDistributionUnit.ProtoReflect.Descriptor instead.

func (*PowerDistributionUnit) GetHost

func (x *PowerDistributionUnit) GetHost() string

func (*PowerDistributionUnit) GetKind

func (*PowerDistributionUnit) GetOutlets

func (x *PowerDistributionUnit) GetOutlets() []uint32

func (*PowerDistributionUnit) ProtoMessage

func (*PowerDistributionUnit) ProtoMessage()

func (*PowerDistributionUnit) ProtoReflect

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

func (*PowerDistributionUnit) Reset

func (x *PowerDistributionUnit) Reset()

func (*PowerDistributionUnit) String

func (x *PowerDistributionUnit) String() string

type PowerDistributionUnit_Kind

type PowerDistributionUnit_Kind int32
const (
	PowerDistributionUnit_APC PowerDistributionUnit_Kind = 0
)

func (PowerDistributionUnit_Kind) Descriptor

func (PowerDistributionUnit_Kind) Enum

func (PowerDistributionUnit_Kind) EnumDescriptor deprecated

func (PowerDistributionUnit_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use PowerDistributionUnit_Kind.Descriptor instead.

func (PowerDistributionUnit_Kind) Number

func (PowerDistributionUnit_Kind) String

func (PowerDistributionUnit_Kind) Type

type Proc

type Proc struct {
	Isa           ISA          `protobuf:"varint,1,opt,name=isa,proto3,enum=xir.ISA" json:"isa,omitempty"`
	Family        string       `protobuf:"bytes,2,opt,name=family,proto3" json:"family,omitempty"`
	BaseFrequency uint64       `protobuf:"varint,3,opt,name=BaseFrequency,proto3" json:"BaseFrequency,omitempty"`
	L2            uint64       `protobuf:"varint,4,opt,name=L2,proto3" json:"L2,omitempty"`
	Cores         uint32       `protobuf:"varint,5,opt,name=cores,proto3" json:"cores,omitempty"`
	Threads       uint32       `protobuf:"varint,6,opt,name=threads,proto3" json:"threads,omitempty"`
	Tdp           uint32       `protobuf:"varint,7,opt,name=tdp,proto3" json:"tdp,omitempty"`
	Hyperthreaded bool         `protobuf:"varint,8,opt,name=hyperthreaded,proto3" json:"hyperthreaded,omitempty"`
	ProductInfo   *ProductInfo `protobuf:"bytes,9,opt,name=product_info,json=productInfo,proto3" json:"product_info,omitempty"`
	// contains filtered or unexported fields
}

func (*Proc) Descriptor deprecated

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

Deprecated: Use Proc.ProtoReflect.Descriptor instead.

func (*Proc) GetBaseFrequency

func (x *Proc) GetBaseFrequency() uint64

func (*Proc) GetCores

func (x *Proc) GetCores() uint32

func (*Proc) GetFamily

func (x *Proc) GetFamily() string

func (*Proc) GetHyperthreaded

func (x *Proc) GetHyperthreaded() bool

func (*Proc) GetIsa

func (x *Proc) GetIsa() ISA

func (*Proc) GetL2

func (x *Proc) GetL2() uint64

func (*Proc) GetProductInfo

func (x *Proc) GetProductInfo() *ProductInfo

func (*Proc) GetTdp

func (x *Proc) GetTdp() uint32

func (*Proc) GetThreads

func (x *Proc) GetThreads() uint32

func (*Proc) ProtoMessage

func (*Proc) ProtoMessage()

func (*Proc) ProtoReflect

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

func (*Proc) Reset

func (x *Proc) Reset()

func (*Proc) SetProductInfo

func (x *Proc) SetProductInfo(pi *ProductInfo)

func (*Proc) String

func (x *Proc) String() string

type ProcAllocation

type ProcAllocation struct {
	Alloc map[uint32]*SocketAllocation `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProcAllocation) Allocate

func (a *ProcAllocation) Allocate(index uint32, s *SocketAllocation)

func (*ProcAllocation) Descriptor deprecated

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

Deprecated: Use ProcAllocation.ProtoReflect.Descriptor instead.

func (*ProcAllocation) GetAlloc

func (x *ProcAllocation) GetAlloc() map[uint32]*SocketAllocation

func (*ProcAllocation) ProtoMessage

func (*ProcAllocation) ProtoMessage()

func (*ProcAllocation) ProtoReflect

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

func (*ProcAllocation) Reset

func (x *ProcAllocation) Reset()

func (*ProcAllocation) Show

func (p *ProcAllocation) Show() string

func (*ProcAllocation) String

func (x *ProcAllocation) String() string

func (*ProcAllocation) TotalCores

func (p *ProcAllocation) TotalCores() uint32

type ProcSpec

type ProcSpec struct {
	Isa           *ISAConstraint    `protobuf:"bytes,1,opt,name=isa,proto3" json:"isa,omitempty"`
	Family        *StringConstraint `protobuf:"bytes,2,opt,name=family,proto3" json:"family,omitempty"`
	BaseFrequency *Uint64Constraint `protobuf:"bytes,3,opt,name=BaseFrequency,proto3" json:"BaseFrequency,omitempty"`
	L2            *Uint64Constraint `protobuf:"bytes,4,opt,name=L2,proto3" json:"L2,omitempty"`
	Cores         *Uint32Constraint `protobuf:"bytes,5,opt,name=cores,proto3" json:"cores,omitempty"`
	Threads       *Uint32Constraint `protobuf:"bytes,6,opt,name=threads,proto3" json:"threads,omitempty"`
	Tdp           *Uint32Constraint `protobuf:"bytes,7,opt,name=tdp,proto3" json:"tdp,omitempty"`
	Sockets       *Uint32Constraint `protobuf:"bytes,8,opt,name=sockets,proto3" json:"sockets,omitempty"`
	Hyperthreaded *BoolConstraint   `protobuf:"bytes,9,opt,name=hyperthreaded,proto3" json:"hyperthreaded,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcSpec) Descriptor deprecated

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

Deprecated: Use ProcSpec.ProtoReflect.Descriptor instead.

func (*ProcSpec) GetBaseFrequency

func (x *ProcSpec) GetBaseFrequency() *Uint64Constraint

func (*ProcSpec) GetCores

func (x *ProcSpec) GetCores() *Uint32Constraint

func (*ProcSpec) GetFamily

func (x *ProcSpec) GetFamily() *StringConstraint

func (*ProcSpec) GetHyperthreaded

func (x *ProcSpec) GetHyperthreaded() *BoolConstraint

func (*ProcSpec) GetIsa

func (x *ProcSpec) GetIsa() *ISAConstraint

func (*ProcSpec) GetL2

func (x *ProcSpec) GetL2() *Uint64Constraint

func (*ProcSpec) GetSockets

func (x *ProcSpec) GetSockets() *Uint32Constraint

func (*ProcSpec) GetTdp

func (x *ProcSpec) GetTdp() *Uint32Constraint

func (*ProcSpec) GetThreads

func (x *ProcSpec) GetThreads() *Uint32Constraint

func (*ProcSpec) ProtoMessage

func (*ProcSpec) ProtoMessage()

func (*ProcSpec) ProtoReflect

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

func (*ProcSpec) Reset

func (x *ProcSpec) Reset()

func (*ProcSpec) String

func (x *ProcSpec) String() string

type Product

type Product interface {
	GetProductInfo() *ProductInfo
	SetProductInfo(*ProductInfo)
}

type ProductInfo

type ProductInfo struct {
	Manufacturer string  `protobuf:"bytes,1,opt,name=Manufacturer,proto3" json:"Manufacturer,omitempty"`
	Model        string  `protobuf:"bytes,2,opt,name=Model,proto3" json:"Model,omitempty"`
	SKU          string  `protobuf:"bytes,3,opt,name=SKU,proto3" json:"SKU,omitempty"`
	Integrated   bool    `protobuf:"varint,4,opt,name=Integrated,proto3" json:"Integrated,omitempty"`
	Cost         float32 `protobuf:"fixed32,5,opt,name=cost,proto3" json:"cost,omitempty"`
	// contains filtered or unexported fields
}

func (*ProductInfo) Descriptor deprecated

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

Deprecated: Use ProductInfo.ProtoReflect.Descriptor instead.

func (*ProductInfo) GetCost

func (x *ProductInfo) GetCost() float32

func (*ProductInfo) GetIntegrated

func (x *ProductInfo) GetIntegrated() bool

func (*ProductInfo) GetManufacturer

func (x *ProductInfo) GetManufacturer() string

func (*ProductInfo) GetModel

func (x *ProductInfo) GetModel() string

func (*ProductInfo) GetSKU

func (x *ProductInfo) GetSKU() string

func (*ProductInfo) ProtoMessage

func (*ProductInfo) ProtoMessage()

func (*ProductInfo) ProtoReflect

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

func (*ProductInfo) Reset

func (x *ProductInfo) Reset()

func (*ProductInfo) String

func (x *ProductInfo) String() string

type Properties added in v0.3.1

type Properties struct {
	Keyvalues map[string]*Properties_Values `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Properties) Descriptor deprecated added in v0.3.1

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

Deprecated: Use Properties.ProtoReflect.Descriptor instead.

func (*Properties) GetKeyvalues added in v0.3.1

func (x *Properties) GetKeyvalues() map[string]*Properties_Values

func (*Properties) ProtoMessage added in v0.3.1

func (*Properties) ProtoMessage()

func (*Properties) ProtoReflect added in v0.3.1

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

func (*Properties) Reset added in v0.3.1

func (x *Properties) Reset()

func (*Properties) String added in v0.3.1

func (x *Properties) String() string

type Properties_Values added in v0.3.1

type Properties_Values struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Properties_Values) Descriptor deprecated added in v0.3.1

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

Deprecated: Use Properties_Values.ProtoReflect.Descriptor instead.

func (*Properties_Values) GetValues added in v0.3.1

func (x *Properties_Values) GetValues() []string

func (*Properties_Values) ProtoMessage added in v0.3.1

func (*Properties_Values) ProtoMessage()

func (*Properties_Values) ProtoReflect added in v0.3.1

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

func (*Properties_Values) Reset added in v0.3.1

func (x *Properties_Values) Reset()

func (*Properties_Values) String added in v0.3.1

func (x *Properties_Values) String() string

type Raven

type Raven struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*Raven) Descriptor deprecated

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

Deprecated: Use Raven.ProtoReflect.Descriptor instead.

func (*Raven) GetHost

func (x *Raven) GetHost() string

func (*Raven) ProtoMessage

func (*Raven) ProtoMessage()

func (*Raven) ProtoReflect

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

func (*Raven) Reset

func (x *Raven) Reset()

func (*Raven) String

func (x *Raven) String() string

type Ref

type Ref struct {
	Element string  `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
	Index   uint32  `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	Subref  *Subref `protobuf:"bytes,3,opt,name=subref,proto3" json:"subref,omitempty"`
	// contains filtered or unexported fields
}

func (*Ref) Descriptor deprecated

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

Deprecated: Use Ref.ProtoReflect.Descriptor instead.

func (*Ref) Eq

func (r *Ref) Eq(other *Ref) bool

func (*Ref) GetElement

func (x *Ref) GetElement() string

func (*Ref) GetIndex

func (x *Ref) GetIndex() uint32

func (*Ref) GetSubref added in v0.3.1

func (x *Ref) GetSubref() *Subref

func (*Ref) Label

func (r *Ref) Label() string

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) ProtoReflect

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

func (*Ref) Reset

func (x *Ref) Reset()

func (*Ref) String

func (x *Ref) String() string

type RelayBoard

type RelayBoard struct {
	Host  string          `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Index uint32          `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	Kind  RelayBoard_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=xir.RelayBoard_Kind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayBoard) Descriptor deprecated

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

Deprecated: Use RelayBoard.ProtoReflect.Descriptor instead.

func (*RelayBoard) GetHost

func (x *RelayBoard) GetHost() string

func (*RelayBoard) GetIndex

func (x *RelayBoard) GetIndex() uint32

func (*RelayBoard) GetKind

func (x *RelayBoard) GetKind() RelayBoard_Kind

func (*RelayBoard) ProtoMessage

func (*RelayBoard) ProtoMessage()

func (*RelayBoard) ProtoReflect

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

func (*RelayBoard) Reset

func (x *RelayBoard) Reset()

func (*RelayBoard) String

func (x *RelayBoard) String() string

type RelayBoard_Kind

type RelayBoard_Kind int32
const (
	RelayBoard_NCDFusion RelayBoard_Kind = 0
)

func (RelayBoard_Kind) Descriptor

func (RelayBoard_Kind) Enum

func (x RelayBoard_Kind) Enum() *RelayBoard_Kind

func (RelayBoard_Kind) EnumDescriptor deprecated

func (RelayBoard_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use RelayBoard_Kind.Descriptor instead.

func (RelayBoard_Kind) Number

func (RelayBoard_Kind) String

func (x RelayBoard_Kind) String() string

func (RelayBoard_Kind) Type

type Resource

type Resource struct {
	Id          string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Facility    string       `protobuf:"bytes,2,opt,name=facility,proto3" json:"facility,omitempty"`
	Procs       []*Proc      `protobuf:"bytes,3,rep,name=procs,proto3" json:"procs,omitempty"`
	Memory      []*Dimm      `protobuf:"bytes,4,rep,name=memory,proto3" json:"memory,omitempty"`
	NICs        []*NIC       `protobuf:"bytes,5,rep,name=NICs,proto3" json:"NICs,omitempty"`
	Disks       []*Disk      `protobuf:"bytes,6,rep,name=disks,proto3" json:"disks,omitempty"`
	Alloc       []AllocMode  `protobuf:"varint,7,rep,packed,name=alloc,proto3,enum=xir.AllocMode" json:"alloc,omitempty"`
	Roles       []Role       `protobuf:"varint,8,rep,packed,name=roles,proto3,enum=xir.Role" json:"roles,omitempty"`
	Firmware    *Firmware    `protobuf:"bytes,9,opt,name=firmware,proto3" json:"firmware,omitempty"`
	OS          *OSConfig    `protobuf:"bytes,10,opt,name=OS,proto3" json:"OS,omitempty"`
	ProductInfo *ProductInfo `protobuf:"bytes,11,opt,name=product_info,json=productInfo,proto3" json:"product_info,omitempty"`
	TPA         uint64       `protobuf:"varint,12,opt,name=TPA,proto3" json:"TPA,omitempty"`
	// Types that are assignable to PowerControl:
	//	*Resource_Ipmi
	//	*Resource_Relayboard
	//	*Resource_Pdu
	//	*Resource_Raven
	PowerControl isResource_PowerControl `protobuf_oneof:"power_control"`
	LeafConfig   *LeafConfig             `protobuf:"bytes,17,opt,name=leaf_config,json=leafConfig,proto3" json:"leaf_config,omitempty"`
	InfranetAddr map[string]*AddressList `` //indexed by vrf
	/* 186-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Resource) Cores

func (r *Resource) Cores() uint32

func (*Resource) Degree

func (r *Resource) Degree() int

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) Device

func (r *Resource) Device() *Device

func (*Resource) DiskName added in v0.3.1

func (r *Resource) DiskName(d *Disk) string

func (*Resource) Emu added in v0.3.1

func (r *Resource) Emu() *Port

func (*Resource) Eth

func (r *Resource) Eth(i int) *Port

func (*Resource) Gbps

func (r *Resource) Gbps(v uint64) []*Port

func (*Resource) GetAlloc

func (x *Resource) GetAlloc() []AllocMode

func (*Resource) GetBGP

func (r *Resource) GetBGP() []*BGPRouterConfig

func (*Resource) GetDisks

func (x *Resource) GetDisks() []*Disk

func (*Resource) GetEVPN

func (r *Resource) GetEVPN() []*EVPNConfig

func (*Resource) GetFacility

func (x *Resource) GetFacility() string

func (*Resource) GetFirmware

func (x *Resource) GetFirmware() *Firmware

func (*Resource) GetId

func (x *Resource) GetId() string

func (*Resource) GetInfranetAddr

func (x *Resource) GetInfranetAddr() map[string]*AddressList

func (*Resource) GetIpmi

func (x *Resource) GetIpmi() *BMC

func (*Resource) GetLeafConfig

func (x *Resource) GetLeafConfig() *LeafConfig

func (*Resource) GetMemory

func (x *Resource) GetMemory() []*Dimm

func (*Resource) GetNICs

func (x *Resource) GetNICs() []*NIC

func (*Resource) GetOS

func (x *Resource) GetOS() *OSConfig

func (*Resource) GetPdu

func (x *Resource) GetPdu() *PowerDistributionUnit

func (*Resource) GetPowerControl

func (m *Resource) GetPowerControl() isResource_PowerControl

func (*Resource) GetProcs

func (x *Resource) GetProcs() []*Proc

func (*Resource) GetProductInfo

func (x *Resource) GetProductInfo() *ProductInfo

func (*Resource) GetRaven

func (x *Resource) GetRaven() *Raven

func (*Resource) GetRelayboard

func (x *Resource) GetRelayboard() *RelayBoard

func (*Resource) GetRoles

func (x *Resource) GetRoles() []Role

func (*Resource) GetTPA

func (x *Resource) GetTPA() uint64

func (*Resource) HasAllocMode

func (r *Resource) HasAllocMode(modes ...AllocMode) bool

func (*Resource) HasRole

func (r *Resource) HasRole(roles ...Role) bool

func (*Resource) HasRoles

func (r *Resource) HasRoles(roles ...Role) bool

func (*Resource) Idegree

func (r *Resource) Idegree() int

func (*Resource) Identify

func (r *Resource) Identify() string

func (*Resource) InfraBandwidth

func (r *Resource) InfraBandwidth() uint64

func (*Resource) Infranet

func (r *Resource) Infranet() *Port

func (*Resource) IsSwitch

func (r *Resource) IsSwitch() bool

func (*Resource) Mem

func (r *Resource) Mem() uint64

func (*Resource) Mgmt

func (r *Resource) Mgmt() *Port

func (*Resource) NextEno

func (r *Resource) NextEno() *Port

func (*Resource) NextEnoG

func (r *Resource) NextEnoG(gbps uint64) *Port

func (*Resource) NextEnp

func (r *Resource) NextEnp() *Port

func (*Resource) NextEnpG

func (r *Resource) NextEnpG(gbps uint64) *Port

func (*Resource) NextEnpsG

func (r *Resource) NextEnpsG(gbps uint64, quantity int) []*Port

func (*Resource) NextEns

func (r *Resource) NextEns() *Port

func (*Resource) NextEth

func (r *Resource) NextEth() *Port

func (*Resource) NextEthG

func (r *Resource) NextEthG(gbps uint64) *Port

func (*Resource) NextEthsG

func (r *Resource) NextEthsG(count uint, gbps uint64) []*Port

func (*Resource) NextIfx

func (r *Resource) NextIfx(kind NICKind) *Port

func (*Resource) NextIfxG

func (r *Resource) NextIfxG(gbps uint64, kind NICKind) *Port

func (*Resource) NextIfxs

func (r *Resource) NextIfxs(kind NICKind, count uint) []*Port

func (*Resource) NextIfxsG

func (r *Resource) NextIfxsG(gbps uint64, kind NICKind, quantity int) []*Port

func (*Resource) NextSwp

func (r *Resource) NextSwp() *Port

func (*Resource) NextSwpG

func (r *Resource) NextSwpG(gbps uint64) *Port

func (*Resource) NextSwps

func (r *Resource) NextSwps(count uint) []*Port

func (*Resource) NextSwpsG

func (r *Resource) NextSwpsG(count uint, gbps uint64) []*Port

func (*Resource) NextXpnet

func (r *Resource) NextXpnet() *Port

func (*Resource) NextXpnetG

func (r *Resource) NextXpnetG(gbps uint64) *Port

func (*Resource) PhysPortName added in v0.3.1

func (r *Resource) PhysPortName(x *Port) string

func (*Resource) PortName

func (r *Resource) PortName(x *Port) string

func (*Resource) PortSelect

func (r *Resource) PortSelect(selector func(*Port) bool) map[string]*Port

func (*Resource) PortsByRole

func (r *Resource) PortsByRole(role LinkRole) map[string]*Port

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) SetProductInfo

func (x *Resource) SetProductInfo(pi *ProductInfo)

func (*Resource) Storage

func (r *Resource) Storage() uint64

func (*Resource) String

func (x *Resource) String() string

func (*Resource) Swp

func (r *Resource) Swp(i int) *Port

func (*Resource) SwpBandwidth

func (r *Resource) SwpBandwidth() uint64

func (*Resource) Swps

func (r *Resource) Swps() []*Port

func (*Resource) Xdegree

func (r *Resource) Xdegree() int

func (*Resource) XpBandwidth

func (r *Resource) XpBandwidth() uint64

type ResourceAllocation

type ResourceAllocation struct {
	Resource string            `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Facility string            `protobuf:"bytes,2,opt,name=facility,proto3" json:"facility,omitempty"`
	Mzid     string            `protobuf:"bytes,3,opt,name=mzid,proto3" json:"mzid,omitempty"`
	Node     string            `protobuf:"bytes,4,opt,name=node,proto3" json:"node,omitempty"`
	Procs    *ProcAllocation   `protobuf:"bytes,5,opt,name=procs,proto3" json:"procs,omitempty"`
	Memory   *MemoryAllocation `protobuf:"bytes,6,opt,name=memory,proto3" json:"memory,omitempty"`
	NICs     *NICsAllocation   `protobuf:"bytes,7,opt,name=NICs,proto3" json:"NICs,omitempty"`
	Disks    *DisksAllocation  `protobuf:"bytes,8,opt,name=disks,proto3" json:"disks,omitempty"`
	Model    *Node             `protobuf:"bytes,9,opt,name=model,proto3" json:"model,omitempty"`
	Revision int64             `protobuf:"varint,10,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

func AggregateResourceAllocations

func AggregateResourceAllocations(as []*ResourceAllocation) *ResourceAllocation

func NewResourceAllocation

func NewResourceAllocation(
	resource string,
	mzid string,
	node string,
) *ResourceAllocation

func (*ResourceAllocation) AddDisks

func (a *ResourceAllocation) AddDisks(m *DisksAllocation)

func (*ResourceAllocation) AddMemory

func (a *ResourceAllocation) AddMemory(m *MemoryAllocation)

func (*ResourceAllocation) AddNICs

func (a *ResourceAllocation) AddNICs(m *NICsAllocation)

func (*ResourceAllocation) AddProc

func (a *ResourceAllocation) AddProc(p *ProcAllocation)

func (*ResourceAllocation) Descriptor deprecated

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

Deprecated: Use ResourceAllocation.ProtoReflect.Descriptor instead.

func (*ResourceAllocation) GetDisks

func (x *ResourceAllocation) GetDisks() *DisksAllocation

func (*ResourceAllocation) GetFacility

func (x *ResourceAllocation) GetFacility() string

func (*ResourceAllocation) GetMemory

func (x *ResourceAllocation) GetMemory() *MemoryAllocation

func (*ResourceAllocation) GetModel

func (x *ResourceAllocation) GetModel() *Node

func (*ResourceAllocation) GetMzid

func (x *ResourceAllocation) GetMzid() string

func (*ResourceAllocation) GetNICs

func (x *ResourceAllocation) GetNICs() *NICsAllocation

func (*ResourceAllocation) GetNode

func (x *ResourceAllocation) GetNode() string

func (*ResourceAllocation) GetProcs

func (x *ResourceAllocation) GetProcs() *ProcAllocation

func (*ResourceAllocation) GetResource

func (x *ResourceAllocation) GetResource() string

func (*ResourceAllocation) GetRevision

func (x *ResourceAllocation) GetRevision() int64

func (*ResourceAllocation) ProtoMessage

func (*ResourceAllocation) ProtoMessage()

func (*ResourceAllocation) ProtoReflect

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

func (*ResourceAllocation) Reset

func (x *ResourceAllocation) Reset()

func (*ResourceAllocation) Show

func (rs *ResourceAllocation) Show() string

func (*ResourceAllocation) String

func (x *ResourceAllocation) String() string

type Resource_Ipmi

type Resource_Ipmi struct {
	Ipmi *BMC `protobuf:"bytes,13,opt,name=ipmi,proto3,oneof"`
}

type Resource_Pdu

type Resource_Pdu struct {
	Pdu *PowerDistributionUnit `protobuf:"bytes,15,opt,name=pdu,proto3,oneof"`
}

type Resource_Raven

type Resource_Raven struct {
	Raven *Raven `protobuf:"bytes,16,opt,name=raven,proto3,oneof"`
}

type Resource_Relayboard

type Resource_Relayboard struct {
	Relayboard *RelayBoard `protobuf:"bytes,14,opt,name=relayboard,proto3,oneof"`
}

type Role

type Role int32
const (
	Role_Role_unknown     Role = 0
	Role_TbNode           Role = 1
	Role_InfraServer      Role = 2
	Role_ConsoleServer    Role = 3
	Role_PowerController  Role = 4
	Role_NetworkEmulator  Role = 5
	Role_XpSwitch         Role = 6
	Role_InfraSwitch      Role = 7
	Role_MgmtSwitch       Role = 8
	Role_Gateway          Role = 9
	Role_Leaf             Role = 10
	Role_Fabric           Role = 11
	Role_Spine            Role = 12
	Role_StorageServer    Role = 13
	Role_InfrapodServer   Role = 14
	Role_EtcdHost         Role = 15
	Role_MinIOHost        Role = 16
	Role_RexHost          Role = 17
	Role_DriverHost       Role = 18
	Role_ManagerHost      Role = 19
	Role_CommanderHost    Role = 20
	Role_SledHost         Role = 21
	Role_RallyHost        Role = 22
	Role_PDU              Role = 23
	Role_EmuSwitch        Role = 24
	Role_Hypervisor       Role = 25
	Role_PhysicsSimulator Role = 26
	Role_Stem             Role = 27
	Role_BorderGateway    Role = 28
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

func (Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type RouteConf added in v0.3.1

type RouteConf struct {
	Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	Gw  string `protobuf:"bytes,2,opt,name=gw,proto3" json:"gw,omitempty"`
	Dst string `protobuf:"bytes,3,opt,name=dst,proto3" json:"dst,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteConf) Descriptor deprecated added in v0.3.1

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

Deprecated: Use RouteConf.ProtoReflect.Descriptor instead.

func (*RouteConf) GetDst added in v0.3.1

func (x *RouteConf) GetDst() string

func (*RouteConf) GetGw added in v0.3.1

func (x *RouteConf) GetGw() string

func (*RouteConf) GetSrc added in v0.3.1

func (x *RouteConf) GetSrc() string

func (*RouteConf) ProtoMessage added in v0.3.1

func (*RouteConf) ProtoMessage()

func (*RouteConf) ProtoReflect added in v0.3.1

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

func (*RouteConf) Reset added in v0.3.1

func (x *RouteConf) Reset()

func (*RouteConf) String added in v0.3.1

func (x *RouteConf) String() string

type RouteConfig added in v0.3.1

type RouteConfig struct {
	Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	Gw  string `protobuf:"bytes,2,opt,name=gw,proto3" json:"gw,omitempty"`
	Dst string `protobuf:"bytes,3,opt,name=dst,proto3" json:"dst,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteConfig) Descriptor deprecated added in v0.3.1

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

Deprecated: Use RouteConfig.ProtoReflect.Descriptor instead.

func (*RouteConfig) GetDst added in v0.3.1

func (x *RouteConfig) GetDst() string

func (*RouteConfig) GetGw added in v0.3.1

func (x *RouteConfig) GetGw() string

func (*RouteConfig) GetSrc added in v0.3.1

func (x *RouteConfig) GetSrc() string

func (*RouteConfig) ProtoMessage added in v0.3.1

func (*RouteConfig) ProtoMessage()

func (*RouteConfig) ProtoReflect added in v0.3.1

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

func (*RouteConfig) Reset added in v0.3.1

func (x *RouteConfig) Reset()

func (*RouteConfig) String added in v0.3.1

func (x *RouteConfig) String() string

type Routing

type Routing int32
const (
	Routing_ManualRouting Routing = 0
	Routing_StaticRouting Routing = 1
)

func (Routing) Descriptor

func (Routing) Descriptor() protoreflect.EnumDescriptor

func (Routing) Enum

func (x Routing) Enum() *Routing

func (Routing) EnumDescriptor deprecated

func (Routing) EnumDescriptor() ([]byte, []int)

Deprecated: Use Routing.Descriptor instead.

func (Routing) Number

func (x Routing) Number() protoreflect.EnumNumber

func (Routing) String

func (x Routing) String() string

func (Routing) Type

func (Routing) Type() protoreflect.EnumType

type RoutingConstraint added in v0.3.1

type RoutingConstraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value Routing  `protobuf:"varint,2,opt,name=value,proto3,enum=xir.Routing" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*RoutingConstraint) Descriptor deprecated added in v0.3.1

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

Deprecated: Use RoutingConstraint.ProtoReflect.Descriptor instead.

func (*RoutingConstraint) GetOp added in v0.3.1

func (x *RoutingConstraint) GetOp() Operator

func (*RoutingConstraint) GetValue added in v0.3.1

func (x *RoutingConstraint) GetValue() Routing

func (*RoutingConstraint) ProtoMessage added in v0.3.1

func (*RoutingConstraint) ProtoMessage()

func (*RoutingConstraint) ProtoReflect added in v0.3.1

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

func (*RoutingConstraint) Reset added in v0.3.1

func (x *RoutingConstraint) Reset()

func (*RoutingConstraint) Satisfies added in v0.3.1

func (c *RoutingConstraint) Satisfies(value Routing) bool

func (*RoutingConstraint) String added in v0.3.1

func (x *RoutingConstraint) String() string

type Sensor

type Sensor struct {
	Id     string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Var    string  `protobuf:"bytes,2,opt,name=var,proto3" json:"var,omitempty"`
	Rate   float32 `protobuf:"fixed32,3,opt,name=rate,proto3" json:"rate,omitempty"`
	Target string  `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
	Tag    int32   `protobuf:"varint,5,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*Sensor) Descriptor deprecated

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

Deprecated: Use Sensor.ProtoReflect.Descriptor instead.

func (*Sensor) GetId

func (x *Sensor) GetId() string

func (*Sensor) GetRate

func (x *Sensor) GetRate() float32

func (*Sensor) GetTag

func (x *Sensor) GetTag() int32

func (*Sensor) GetTarget

func (x *Sensor) GetTarget() string

func (*Sensor) GetVar

func (x *Sensor) GetVar() string

func (*Sensor) ProtoMessage

func (*Sensor) ProtoMessage()

func (*Sensor) ProtoReflect

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

func (*Sensor) Reset

func (x *Sensor) Reset()

func (*Sensor) String

func (x *Sensor) String() string

type ServiceEndpoint

type ServiceEndpoint struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceEndpoint) Descriptor deprecated

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

Deprecated: Use ServiceEndpoint.ProtoReflect.Descriptor instead.

func (*ServiceEndpoint) GetAddress

func (x *ServiceEndpoint) GetAddress() string

func (*ServiceEndpoint) ProtoMessage

func (*ServiceEndpoint) ProtoMessage()

func (*ServiceEndpoint) ProtoReflect

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

func (*ServiceEndpoint) Reset

func (x *ServiceEndpoint) Reset()

func (*ServiceEndpoint) String

func (x *ServiceEndpoint) String() string

type SetCapacity

type SetCapacity interface {
	SetCapacity(c uint64)
}

type SetConnector

type SetConnector interface {
	SetConnector(c ConnectorKind)
}

type Socket

type Socket struct {
	Index    int32     `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Addrs    []string  `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"`
	Endpoint *Ref      `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Port     *PortSpec `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*Socket) Descriptor deprecated

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

Deprecated: Use Socket.ProtoReflect.Descriptor instead.

func (*Socket) GetAddrs

func (x *Socket) GetAddrs() []string

func (*Socket) GetEndpoint

func (x *Socket) GetEndpoint() *Ref

func (*Socket) GetIndex

func (x *Socket) GetIndex() int32

func (*Socket) GetPort

func (x *Socket) GetPort() *PortSpec

func (*Socket) Label

func (s *Socket) Label(node string) string

func (*Socket) ProtoMessage

func (*Socket) ProtoMessage()

func (*Socket) ProtoReflect

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

func (*Socket) Reset

func (x *Socket) Reset()

func (*Socket) String

func (x *Socket) String() string

type SocketAllocation

type SocketAllocation struct {
	Cores uint32 `protobuf:"varint,1,opt,name=cores,proto3" json:"cores,omitempty"`
	// contains filtered or unexported fields
}

func (*SocketAllocation) Add

func (*SocketAllocation) Descriptor deprecated

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

Deprecated: Use SocketAllocation.ProtoReflect.Descriptor instead.

func (*SocketAllocation) GetCores

func (x *SocketAllocation) GetCores() uint32

func (*SocketAllocation) ProtoMessage

func (*SocketAllocation) ProtoMessage()

func (*SocketAllocation) ProtoReflect

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

func (*SocketAllocation) Reset

func (x *SocketAllocation) Reset()

func (*SocketAllocation) String

func (x *SocketAllocation) String() string

type SocketGraph added in v0.3.1

type SocketGraph struct {
	Network *Network

	*simple.UndirectedGraph
	// contains filtered or unexported fields
}

SocketGraph is a graph of the Sockets of all Nodes in a given Network. This is a graph of the interfaces ("sockets") of Nodes.

func NewSocketGraph added in v0.3.1

func NewSocketGraph(n *Network) *SocketGraph

func ToSocketGraph added in v0.3.1

func ToSocketGraph(net *Network) *SocketGraph

Convert to a graph of all the Sockets in the Network

func (*SocketGraph) NodeByName added in v0.3.1

func (sg *SocketGraph) NodeByName(name string) *SocketGraphVertex

func (*SocketGraph) ToDot added in v0.3.1

func (g *SocketGraph) ToDot() ([]byte, error)

type SocketGraphEdge added in v0.3.1

type SocketGraphEdge struct {
	Network bool // if true, this is a network connection.
	simple.Edge
}

SocketGraphEdge just is a simple edge and contains nothing from the Network/Node/Socket.

func (SocketGraphEdge) Attributes added in v0.3.1

func (v SocketGraphEdge) Attributes() []encoding.Attribute

type SocketGraphVertex added in v0.3.1

type SocketGraphVertex struct {
	Socket *Socket
	Node   *Node // Node that the socket is a part of.
	Link   *Link // Link that the socket is in.
	// contains filtered or unexported fields
}

SocketGraphVertex holds the Socket and a pointer to the Node the Socket is a part of.

func (SocketGraphVertex) Attributes added in v0.3.1

func (v SocketGraphVertex) Attributes() []encoding.Attribute

func (SocketGraphVertex) DOTID added in v0.3.1

func (v SocketGraphVertex) DOTID() string

func (SocketGraphVertex) ID added in v0.3.1

func (v SocketGraphVertex) ID() int64

implement simple.Graph interface

func (SocketGraphVertex) IsNode added in v0.3.1

func (v SocketGraphVertex) IsNode() bool

func (SocketGraphVertex) String added in v0.3.1

func (v SocketGraphVertex) String() string

type StringConstraint

type StringConstraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StringConstraint) Descriptor deprecated

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

Deprecated: Use StringConstraint.ProtoReflect.Descriptor instead.

func (*StringConstraint) GetOp

func (x *StringConstraint) GetOp() Operator

func (*StringConstraint) GetValue

func (x *StringConstraint) GetValue() string

func (*StringConstraint) ProtoMessage

func (*StringConstraint) ProtoMessage()

func (*StringConstraint) ProtoReflect

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

func (*StringConstraint) Reset

func (x *StringConstraint) Reset()

func (*StringConstraint) String

func (x *StringConstraint) String() string

type Subref added in v0.3.1

type Subref struct {
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*Subref) Descriptor deprecated added in v0.3.1

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

Deprecated: Use Subref.ProtoReflect.Descriptor instead.

func (*Subref) GetIndex added in v0.3.1

func (x *Subref) GetIndex() uint32

func (*Subref) ProtoMessage added in v0.3.1

func (*Subref) ProtoMessage()

func (*Subref) ProtoReflect added in v0.3.1

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

func (*Subref) Reset added in v0.3.1

func (x *Subref) Reset()

func (*Subref) String added in v0.3.1

func (x *Subref) String() string

type Topology

type Topology struct {
	Devices     []*Device
	Connections []*Connection
}

func (*Topology) Device

func (t *Topology) Device(id string) *Device

func (*Topology) Select

func (t *Topology) Select(f func(*Device) bool) []*Device

func (*Topology) Show

func (t *Topology) Show() string

type Uint32Constraint

type Uint32Constraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value uint32   `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Uint32Constraint) Descriptor deprecated

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

Deprecated: Use Uint32Constraint.ProtoReflect.Descriptor instead.

func (*Uint32Constraint) GetOp

func (x *Uint32Constraint) GetOp() Operator

func (*Uint32Constraint) GetValue

func (x *Uint32Constraint) GetValue() uint32

func (*Uint32Constraint) ProtoMessage

func (*Uint32Constraint) ProtoMessage()

func (*Uint32Constraint) ProtoReflect

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

func (*Uint32Constraint) Reset

func (x *Uint32Constraint) Reset()

func (*Uint32Constraint) String

func (x *Uint32Constraint) String() string

type Uint64Constraint

type Uint64Constraint struct {
	Op    Operator `protobuf:"varint,1,opt,name=op,proto3,enum=xir.Operator" json:"op,omitempty"`
	Value uint64   `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Uint64Constraint) Descriptor deprecated

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

Deprecated: Use Uint64Constraint.ProtoReflect.Descriptor instead.

func (*Uint64Constraint) GetOp

func (x *Uint64Constraint) GetOp() Operator

func (*Uint64Constraint) GetValue

func (x *Uint64Constraint) GetValue() uint64

func (*Uint64Constraint) ProtoMessage

func (*Uint64Constraint) ProtoMessage()

func (*Uint64Constraint) ProtoReflect

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

func (*Uint64Constraint) Reset

func (x *Uint64Constraint) Reset()

func (*Uint64Constraint) String

func (x *Uint64Constraint) String() string

type VLANConfig

type VLANConfig struct {
	Device string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	Vid    uint32   `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty"`
	Addrs  []string `protobuf:"bytes,3,rep,name=addrs,proto3" json:"addrs,omitempty"`
	Role   LinkRole `protobuf:"varint,4,opt,name=role,proto3,enum=xir.LinkRole" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*VLANConfig) Descriptor deprecated

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

Deprecated: Use VLANConfig.ProtoReflect.Descriptor instead.

func (*VLANConfig) GetAddrs

func (x *VLANConfig) GetAddrs() []string

func (*VLANConfig) GetDevice

func (x *VLANConfig) GetDevice() string

func (*VLANConfig) GetRole

func (x *VLANConfig) GetRole() LinkRole

func (*VLANConfig) GetVid

func (x *VLANConfig) GetVid() uint32

func (*VLANConfig) ProtoMessage

func (*VLANConfig) ProtoMessage()

func (*VLANConfig) ProtoReflect

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

func (*VLANConfig) Reset

func (x *VLANConfig) Reset()

func (*VLANConfig) String

func (x *VLANConfig) String() string

type Variable

type Variable struct {
	// contains filtered or unexported fields
}

func (*Variable) Descriptor deprecated

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

Deprecated: Use Variable.ProtoReflect.Descriptor instead.

func (*Variable) ProtoMessage

func (*Variable) ProtoMessage()

func (*Variable) ProtoReflect

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

func (*Variable) Reset

func (x *Variable) Reset()

func (*Variable) String

func (x *Variable) String() string

type Visualization

type Visualization struct {
	Color string `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"`
	Size  uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*Visualization) Descriptor deprecated

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

Deprecated: Use Visualization.ProtoReflect.Descriptor instead.

func (*Visualization) GetColor

func (x *Visualization) GetColor() string

func (*Visualization) GetSize

func (x *Visualization) GetSize() uint32

func (*Visualization) ProtoMessage

func (*Visualization) ProtoMessage()

func (*Visualization) ProtoReflect

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

func (*Visualization) Reset

func (x *Visualization) Reset()

func (*Visualization) String

func (x *Visualization) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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