k8sdecorator

package
v1.247349.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SectionKeyClusterName   = "cluster_name"
	ClusterNameTagKeyPrefix = "kubernetes.io/cluster/"
)
View Source
const (
	SectionKeyHostIP = "host_ip"
)
View Source
const (
	SectionKeyNodeName = "node_name"
)
View Source
const (
	SectionKeyPrefFullPodName = "prefer_full_pod_name"
)
View Source
const (
	SectionKeyTargetService = "tag_service"
)
View Source
const (
	SubSectionKey = "k8sdecorator"
)

Variables

View Source
var ChildRule = map[string]Rule{}

Functions

func GetCurPath

func GetCurPath() string

func RegisterRule

func RegisterRule(fieldname string, r Rule)

Types

type ClusterName

type ClusterName struct {
}

func (*ClusterName) ApplyRule

func (c *ClusterName) ApplyRule(input interface{}) (string, interface{})

type HostIP

type HostIP struct {
}

func (*HostIP) ApplyRule

func (h *HostIP) ApplyRule(input interface{}) (string, interface{})

type K8sDecorator

type K8sDecorator struct {
}

func (*K8sDecorator) ApplyRule

func (k *K8sDecorator) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type NodeName

type NodeName struct {
}

func (*NodeName) ApplyRule

func (n *NodeName) ApplyRule(input interface{}) (string, interface{})

type PrefFullPodName

type PrefFullPodName struct {
}

func (*PrefFullPodName) ApplyRule

func (t *PrefFullPodName) ApplyRule(input interface{}) (string, interface{})

type Rule

type Rule translator.Rule

type TargetService

type TargetService struct {
}

func (*TargetService) ApplyRule

func (t *TargetService) ApplyRule(input interface{}) (string, interface{})

Jump to

Keyboard shortcuts

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