metadata

package
v0.0.0-...-b4a0618 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DubboMeshAnnotation defines a Pod annotation that
	// associates a given Pod with a particular Mesh.
	// Annotation value must be the name of a Mesh resource.
	DubboMeshAnnotation = "dubbo.io/mesh"

	// DubboIngressAnnotation allows to mark pod with Dubbo Ingress
	// which is crucial for Multizone communication
	DubboIngressAnnotation = "dubbo.io/ingress"

	// DUBBOSidecarEnvVarsAnnotation is a ; separated list of env vars that will be applied on Dubbo Sidecar
	// Example value: TEST1=1;TEST2=2
	DUBBOSidecarEnvVarsAnnotation = "dubbo.io/sidecar-env-vars"

	// DubboEgressAnnotation allows marking pod with Dubbo Egress
	// which is crucial for Multizone communication
	DubboEgressAnnotation = "dubbo.io/egress"

	DubboXdsEnableAnnotation = "dubbo.io/xds-enable"

	// DubboSidecarDrainTime allows to specify drain time of Dubbo DP sidecar.
	DubboSidecarDrainTime = "dubbo.io/sidecar-drain-time"

	// DubboTagsAnnotation holds a JSON representation of desired tags
	DubboTagsAnnotation = "dubbo.io/tags"

	// DubboIngressPublicAddressAnnotation allows to pick public address for Ingress
	// If not defined, Dubbo will try to pick this address from the Ingress Service
	DubboIngressPublicAddressAnnotation = "dubbo.io/ingress-public-address"

	// DubboIngressPublicPortAnnotation allows to pick public port for Ingress
	// If not defined, Dubbo will try to pick this address from the Ingress Service
	DubboIngressPublicPortAnnotation = "dubbo.io/ingress-public-port"
)
View Source
const (
	DubboEnvoyAdminPort            = "dubbo.io/envoy-admin-port"
	DubboSidecarInjectedAnnotation = "dubbo.io/sidecar-injected"
)

Annotations that are being automatically set by the Dubbo SDK.

View Source
const (
	AnnotationEnabled  = "enabled"
	AnnotationDisabled = "disabled"
	AnnotationTrue     = "true"
	AnnotationFalse    = "false"
)
View Source
const (
	// DubboMeshLabel defines a Pod label to associate objects
	// with a particular Mesh.
	// Label value must be the name of a Mesh resource.
	DubboMeshLabel = "dubbo.io/mesh"
)

Variables

This section is empty.

Functions

func BoolToEnabled

func BoolToEnabled(b bool) string

Types

type Annotations

type Annotations map[string]string

func (Annotations) GetDurationWithDefault

func (a Annotations) GetDurationWithDefault(def time.Duration, keys ...string) (time.Duration, bool, error)

func (Annotations) GetEnabled

func (a Annotations) GetEnabled(keys ...string) (bool, bool, error)

func (Annotations) GetEnabledWithDefault

func (a Annotations) GetEnabledWithDefault(def bool, keys ...string) (bool, bool, error)

func (Annotations) GetList

func (a Annotations) GetList(keys ...string) ([]string, bool)

func (Annotations) GetListWithDefault

func (a Annotations) GetListWithDefault(def []string, keys ...string) ([]string, bool)

func (Annotations) GetMap

func (a Annotations) GetMap(keys ...string) (map[string]string, bool, error)

GetMap returns map from annotation. Example: "dubbo.io/sidecar-env-vars: TEST1=1;TEST2=2"

func (Annotations) GetMapWithDefault

func (a Annotations) GetMapWithDefault(def map[string]string, keys ...string) (map[string]string, bool, error)

func (Annotations) GetString

func (a Annotations) GetString(keys ...string) (string, bool)

func (Annotations) GetStringWithDefault

func (a Annotations) GetStringWithDefault(def string, keys ...string) (string, bool)

func (Annotations) GetUint32

func (a Annotations) GetUint32(keys ...string) (uint32, bool, error)

func (Annotations) GetUint32WithDefault

func (a Annotations) GetUint32WithDefault(def uint32, keys ...string) (uint32, bool, error)

Jump to

Keyboard shortcuts

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