resource

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubernetesResourceTypeService int = iota
	KubernetesResourceTypeStatefulSet
	KubernetesResourceTypeDeployment
	KubernetesResourceTypeDaemonSet
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesLabels added in v0.8.0

type KubernetesLabels struct {
	NodeType  string
	AccountID string
	TenantID  string
	// NodeID      string
	NodeGroupID string
	NetID       string
	SubnetID    string
}

type KubernetesResource

type KubernetesResource struct {
	KubernetesResourceType int
	Namespace              string
	Name                   string
	Connected              bool

	NetStatus NetStatus

	Labels             KubernetesLabels
	ServiceAnnotations map[string]string
}

func (*KubernetesResource) GetGatewayNodeInstance

func (r *KubernetesResource) GetGatewayNodeInstance(s *topology.Subnet, externalPort int32) (*topology.NodeInstance, error)

func (*KubernetesResource) GetPodNodeInstance

func (r *KubernetesResource) GetPodNodeInstance(s *topology.Subnet) (*topology.NodeInstance, error)

func (*KubernetesResource) ParseLabelsGateway added in v0.8.0

func (r *KubernetesResource) ParseLabelsGateway(labels map[string]string)

func (*KubernetesResource) ParseLabelsPod added in v0.8.0

func (r *KubernetesResource) ParseLabelsPod(labels map[string]string)

func (*KubernetesResource) ParseServiceAnnotations added in v0.8.0

func (r *KubernetesResource) ParseServiceAnnotations(annotations map[string]string)

type NetStatus added in v0.8.0

type NetStatus struct {
	TenantID string
	NetID    string
	SubnetID string
}

Jump to

Keyboard shortcuts

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