Documentation ¶
Index ¶
- Constants
- type Client
- type PodInfo
- func (pi PodInfo) FindAnnotation(lookupKey string) bool
- func (pi PodInfo) GetAnnotation(lookupKey string) string
- func (pi PodInfo) GetDataCenter() (string, error)
- func (pi PodInfo) GetDefaultPort() int
- func (pi PodInfo) GetDirector() string
- func (pi PodInfo) GetEnvironment() (string, error)
- func (pi PodInfo) GetName() string
- func (pi PodInfo) GetPodIP() string
- func (pi PodInfo) GetPorts() []*int32
- func (pi PodInfo) GetUID() *string
- func (pi PodInfo) GetVaaSURL() string
- func (pi PodInfo) GetVaaSUser() string
- func (pi PodInfo) GetWeight() (int, error)
Constants ¶
View Source
const (
SidecarContainerName = "envoy-sidecar"
)
Annotation keys
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // GetPod returns current pod data. GetPod(ctx context.Context) (*corev1.Pod, error) }
Client contains methods to access k8s API
type PodInfo ¶
PodInfo describes a k8s Pod
func GetPodInfo ¶
GetPodInfo fetches k8s PodInfo for the current Pod
func (PodInfo) FindAnnotation ¶
FindAnnotation looks up an Annotation by key
func (PodInfo) GetAnnotation ¶ added in v0.1.17
GetAnnotation looks up an Annotation by key
func (PodInfo) GetDataCenter ¶
GetDataCenter returns a Pod's datacenter
func (PodInfo) GetDefaultPort ¶
GetDefaultPort returns the first available port
func (PodInfo) GetDirector ¶
GetDirector looks up VaaS director name in Pod annotations
func (PodInfo) GetEnvironment ¶
GetEnvironment returns a Pod's dev/test/prod environment
func (PodInfo) GetVaaSUser ¶
GetVaaSUser returns VaaS API Username
Click to show internal directories.
Click to hide internal directories.