Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Namespace string Host string Port string Token string CA string Dest string Base string Bearer string Transport *http.Transport }
Config The API config
type GenericHeader ¶
type GenericHeader struct { APIVersion string `json:"APIVersion"` Kind string `json:"kind"` Metadata Metadata `json:"metadata"` }
GenericHeader generic k8s header format so we can use any object type.
type Metadata ¶
type Metadata struct { Name string `json:"name"` Namespace string `json:"namespace"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` ManagedFields []interface{} `json:"managedFields"` ResourceVersion string `json:"resourceVersion"` }
Metadata standard metadata k8s structure
type Secret ¶
type Secret struct { APIVersion string `json:"APIVersion"` Kind string `json:"kind"` Metadata Metadata `json:"metadata"` Data map[string]string `json:"data"` }
Secret standard structure of a k8s secret
type ServiceAccountEvent ¶
type ServiceAccountEvent struct { Type string `json:"type"` ServiceAccount Serviceaccount `json:"object"` }
ServiceAccountEvent - currently unused
type Serviceaccount ¶
type Serviceaccount struct { APIVersion string `json:"APIVersion"` Kind string `json:"kind"` Metadata Metadata `json:"metadata"` Secrets []ServiceaccountSecrets `json:"secrets"` }
Serviceaccount Standard k8s service account object
type ServiceaccountSecrets ¶
type ServiceaccountSecrets struct {
Name string `json:"name"`
}
ServiceaccountSecrets The secret field for a service account token
Click to show internal directories.
Click to hide internal directories.