Documentation
¶
Index ¶
- func ExtractMetric(metricId string, metricValue float64)
- func RunExporter(duration time.Duration, namespace string)
- type Metric
- type NetworkTopology
- type NetworkTopologyList
- type NetworkTopologySpec
- type NodeType
- type SWMClient
- type TopologyLinkCapabilities
- type TopologyLinkSpec
- type TopologyNodeSpec
- type TopologyPathSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractMetric ¶
func RunExporter ¶
Types ¶
type NetworkTopology ¶
type NetworkTopology struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NetworkTopologySpec `json:"spec,omitempty"`
}
func GenerateTopologyFromMetrics ¶
func GenerateTopologyFromMetrics(metricArray []collector.MetricData) (NetworkTopology, error)
func HardcodeTopology ¶
func HardcodeTopology() NetworkTopology
func (NetworkTopology) GetUnstructuredData ¶
func (networkTopology NetworkTopology) GetUnstructuredData() *unstructured.Unstructured
type NetworkTopologyList ¶
type NetworkTopologyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NetworkTopology `json:"items"`
}
type NetworkTopologySpec ¶
type NetworkTopologySpec struct {
NetworkImplementation string `json:"networkImplementation"`
PhysicalBase string `json:"physicalBase"`
Nodes []TopologyNodeSpec `json:"nodes,omitempty"`
Links []TopologyLinkSpec `json:"links,omitempty"`
}
type SWMClient ¶
type SWMClient struct {
SchemaGVR schema.GroupVersionResource
DynamicClient *dynamic.DynamicClient
}
Uses ExporterClient interface
func (*SWMClient) ExportCRD ¶
func (swmClient *SWMClient) ExportCRD(namespace string, networkTopology exporterclient.StructCustomResourceDefinition)
func (*SWMClient) GetDynamicClient ¶
func (swmClient *SWMClient) GetDynamicClient() dynamic.DynamicClient
func (*SWMClient) GetSchemaGVR ¶
func (swmClient *SWMClient) GetSchemaGVR() schema.GroupVersionResource
type TopologyLinkSpec ¶
type TopologyLinkSpec struct {
Name string `json:"name"`
Source string `json:"source"`
Target string `json:"target"`
Capabilities TopologyLinkCapabilities `json:"capabilities"`
}
type TopologyNodeSpec ¶
type TopologyPathSpec ¶
type TopologyPathSpec struct {
Nodes []string `json:"nodes"`
}
Click to show internal directories.
Click to hide internal directories.