Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyTier = "tier" KeyPosition = "position" KeyPodIndex = "podIndex" KeyPlaneIndex = "planeIndex" KeyRelativeNodeIndex = "relativeNodeIndex" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fabric ¶
type Link ¶
type Link interface { From() graph.Node To() graph.Node ReversedLine() graph.Line ID() int64 String() string FromNodeName() string ToNodeName() string FromIfName() string ToIfName() string Attributes() []encoding.Attribute SetLabel(label map[string]string) error UpdateLabel(label map[string]string) error GetLabels() labels.Set }
type Node ¶
type Node interface { ID() int64 String() string DOTID() string GetPosition() string GetRelativeNodeIndex() string GetPlaneIndex() string GetPodIndex() string GetVendorType() targetv1.VendorType GetPlatform() string GetUplinkPerNode() uint32 GetInterfaceName(idx uint32) string GetInterfaceNameWithPlatfromOffset(idx uint32) string IsToBeDeployed() bool GetLocation() *topov1alpha1.Location Attributes() []encoding.Attribute SetLabel(label map[string]string) error UpdateLabel(label map[string]string) error GetLabels() labels.Set }
type Option ¶
type Option func(Fabric)
Option can be used to manipulate Fabric config.
func WithClient ¶ added in v0.0.2
WithClient specifies the fabric to use within the client.
func WithLocation ¶ added in v0.0.14
func WithLocation(l *topov1alpha1.Location) Option
WithClient specifies the fabric to use within the client.
func WithLogger ¶
WithLogger specifies how the Fabric logs messages.
type TopologyJsonFile ¶ added in v0.0.14
type TopologyJsonFile struct { Nodes []*TopologyJsonNode `json:"nodes,omitempty"` Edges []*TopologyJsonLink `json:"edges,omitempty"` }
type TopologyJsonLink ¶ added in v0.0.14
type TopologyJsonNode ¶ added in v0.0.14
type TopologyJsonNodedata ¶ added in v0.0.14
Click to show internal directories.
Click to hide internal directories.