Documentation
¶
Index ¶
Constants ¶
View Source
const (
Running = "Running"
)
View Source
const ServiceAccountPath = "/run/secrets/kubernetes.io/serviceaccount"
Variables ¶
This section is empty.
Functions ¶
func InKubernetes ¶
func InKubernetes() bool
InKubernetes returns true when running inside a kubernetes instance
func KubeRoutine ¶
func KubeRoutine(stopSig chan bool)
Types ¶
type ItemMetadata ¶
type ItemMetadata struct { Name string `json:"name"` Namespace string `json:"namespace"` SelfLink string `json:"selfLink"` UID string `json:"uid"` ResourceVersion string `json:"resourceVersion"` CreationTimestamp time.Time `json:"creationTimestamp"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` OwnerReferences interface{} `json:"ownerReferences"` }
type Pod ¶
type Pod struct { Metadata ItemMetadata `json:"metadata"` Status PodStatus `json:"status"` }
type Service ¶
type Service struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata interface{} `json:"metadata"` Items []ServiceItem `json:"items"` }
type ServiceItem ¶
type ServiceItem struct { Metadata ItemMetadata `json:"metadata"` Spec ServiceItemSpec `json:"spec"` Status interface{} `json:"status"` }
type ServiceItemSpec ¶
type ServiceItemSpec struct { Ports []ServiceItemSpecPort `json:"ports"` Selector map[string]string `json:"selector"` ClusterIP string `json:"clusterIP"` SessionAffinity string `json:"sessionAffinity"` }
Click to show internal directories.
Click to hide internal directories.