Documentation ¶
Index ¶
- type KubeConfig
- func (k *KubeConfig) GetEnvironment() string
- func (k *KubeConfig) GetKubectx() string
- func (k *KubeConfig) GetManifestDirectory() string
- func (k *KubeConfig) GetName() string
- func (k *KubeConfig) GetNamespace() string
- func (k *KubeConfig) New(conf KubeConfig) error
- func (k *KubeConfig) SupportedCommand(cmd string) bool
- func (k *KubeConfig) SupportedKind(kind string) bool
- func (k *KubeConfig) SupportedResource(resource string) bool
- func (k *KubeConfig) SupportedVersion(version string) bool
- func (k *KubeConfig) ValidContext(ctx string) bool
- func (k *KubeConfig) ValidManifestDirectory(dir string) error
- type KubeUser
- type KubeUtil
- type Label
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeConfig ¶
type KubeConfig struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Kubectx string `json:"kubectx"` Namespace string `json:"namespace"` Environment string `json:"environment"` Name string `json:"name"` ManifestDirectory string `json:"manifestDirectory"` }
func (*KubeConfig) GetEnvironment ¶
func (k *KubeConfig) GetEnvironment() string
func (*KubeConfig) GetKubectx ¶
func (k *KubeConfig) GetKubectx() string
func (*KubeConfig) GetManifestDirectory ¶
func (k *KubeConfig) GetManifestDirectory() string
func (*KubeConfig) GetName ¶
func (k *KubeConfig) GetName() string
func (*KubeConfig) GetNamespace ¶
func (k *KubeConfig) GetNamespace() string
func (*KubeConfig) New ¶
func (k *KubeConfig) New(conf KubeConfig) error
func (*KubeConfig) SupportedCommand ¶
func (k *KubeConfig) SupportedCommand(cmd string) bool
func (*KubeConfig) SupportedKind ¶
func (k *KubeConfig) SupportedKind(kind string) bool
func (*KubeConfig) SupportedResource ¶
func (k *KubeConfig) SupportedResource(resource string) bool
func (*KubeConfig) SupportedVersion ¶
func (k *KubeConfig) SupportedVersion(version string) bool
func (*KubeConfig) ValidContext ¶
func (k *KubeConfig) ValidContext(ctx string) bool
func (*KubeConfig) ValidManifestDirectory ¶
func (k *KubeConfig) ValidManifestDirectory(dir string) error
type KubeUser ¶
type KubeUser struct { // CustomerID - required CustomerID int // UserID requesting sync UserID string // Kind being synced Kind string // AuthorizationToken - Optional AuthorizationToken string // ReferenceID - user assigned ID for debugging ReferenceID string }
KubeUser
Is used to label manifests and authenticate requests
func (*KubeUser) GenerateLables ¶
type KubeUtil ¶
type KubeUtil struct {
// contains filtered or unexported fields
}
func (*KubeUtil) ExecWithContext ¶
func (*KubeUtil) LabelManifest ¶
func (k *KubeUtil) LabelManifest()
Click to show internal directories.
Click to hide internal directories.