Documentation ¶
Index ¶
- Constants
- func BoolToEnabled(b bool) string
- type Annotations
- func (a Annotations) GetDurationWithDefault(def time.Duration, keys ...string) (time.Duration, bool, error)
- func (a Annotations) GetEnabled(keys ...string) (bool, bool, error)
- func (a Annotations) GetEnabledWithDefault(def bool, keys ...string) (bool, bool, error)
- func (a Annotations) GetList(keys ...string) ([]string, bool)
- func (a Annotations) GetListWithDefault(def []string, keys ...string) ([]string, bool)
- func (a Annotations) GetMap(keys ...string) (map[string]string, bool, error)
- func (a Annotations) GetMapWithDefault(def map[string]string, keys ...string) (map[string]string, bool, error)
- func (a Annotations) GetString(keys ...string) (string, bool)
- func (a Annotations) GetStringWithDefault(def string, keys ...string) (string, bool)
- func (a Annotations) GetUint32(keys ...string) (uint32, bool, error)
- func (a Annotations) GetUint32WithDefault(def uint32, keys ...string) (uint32, bool, error)
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 ¶
Types ¶
type Annotations ¶
func (Annotations) GetDurationWithDefault ¶
func (Annotations) GetEnabled ¶
func (a Annotations) GetEnabled(keys ...string) (bool, bool, error)
func (Annotations) GetEnabledWithDefault ¶
func (Annotations) GetListWithDefault ¶
func (a Annotations) GetListWithDefault(def []string, keys ...string) ([]string, bool)
func (Annotations) GetMap ¶
GetMap returns map from annotation. Example: "dubbo.io/sidecar-env-vars: TEST1=1;TEST2=2"
func (Annotations) GetMapWithDefault ¶
func (Annotations) GetStringWithDefault ¶
func (a Annotations) GetStringWithDefault(def string, keys ...string) (string, bool)
func (Annotations) GetUint32WithDefault ¶
Click to show internal directories.
Click to hide internal directories.