resource

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 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 KubernetesResource

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

	MMeshType string
	AccountID string
	TenantID  string
	NetID     string
	SubnetID  string

	// Labels map[string]string
	Annotations 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) ParseAnnotations

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

func (*KubernetesResource) ParseLabels

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

Jump to

Keyboard shortcuts

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