xir

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 18 Imported by: 32

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",
		29: "OpsServer",
	}
	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,
		"OpsServer":        29,
	}
)

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",
		5: "Mariner",
	}
	DiskRole_value = map[string]int32{
		"DiskRole_Unspecified": 0,
		"System":               1,
		"MinIO":                2,
		"Etcd":                 3,
		"Rally":                4,
		"Mariner":              5,
	}
)

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
	DiskRole_Mariner              DiskRole = 5
)

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"`
	Experimentnetresolution bool                  `protobuf:"varint,6,opt,name=experimentnetresolution,proto3" json:"experimentnetresolution,omitempty"` // If true, resolve experiment names before infra names
	// 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) GetExperimentnetresolution added in v0.3.9

func (x *ExperimentParameters) GetExperimentnetresolution() bool

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 NetworkFromFileJSON added in v0.3.5

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

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"`
	Host       *StringConstraint `protobuf:"bytes,14,opt,name=host,proto3" json:"host,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) GetHost added in v0.3.7

func (x *Node) GetHost() *StringConstraint

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