Documentation
¶
Index ¶
- type Condition
- type Kubectl
- func (k Kubectl) Apply(yamlFile string) error
- func (k Kubectl) ApplyString(yamlString string) error
- func (k Kubectl) ApplyWithLabels(yamlFile, label string) error
- func (k Kubectl) CreateFromString(yamlString string) error
- func (k Kubectl) CreateNamespace(ns string) error
- func (k Kubectl) Delete(kind, name string) error
- func (k Kubectl) DeleteCRDs(crds []string) error
- func (k Kubectl) DeleteFromFile(yamlFile string) error
- func (k Kubectl) DeleteNamespace(namespaces ...string) error
- func (k Kubectl) DeleteNamespaceNoWait(namespaces ...string) error
- func (k Kubectl) Describe(kind, name string) (string, error)
- func (k Kubectl) Exec(pod, container, command string) (string, error)
- func (k Kubectl) ForceDelete(kind, name string) error
- func (k Kubectl) GetEvents() (string, error)
- func (k Kubectl) GetInternalIP(label string) (string, error)
- func (k Kubectl) GetPods(args ...string) (string, error)
- func (k Kubectl) GetSecret(secret string) (string, error)
- func (k Kubectl) GetYAML(kind, name string) (string, error)
- func (k Kubectl) Label(kind, name, labelKey, labelValue string) error
- func (k Kubectl) Logs(pod string, since *time.Duration) (string, error)
- func (k Kubectl) Patch(kind, name, patchType, patch string) error
- func (k Kubectl) Wait(waitFor, resource string, timeout time.Duration) error
- func (k Kubectl) WaitNamespaceDeleted(ns string) error
- func (k Kubectl) WithBinary(binary string) Kubectl
- func (k Kubectl) WithClusterName(name string) Kubectl
- func (k Kubectl) WithKubeconfig(kubeconfig string) Kubectl
- func (k Kubectl) WithNamespace(ns string) Kubectl
- type Metadata
- type Resource
- type ResourceList
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubectl ¶
type Kubectl struct { ClusterName string // contains filtered or unexported fields }
func (Kubectl) ApplyString ¶
ApplyString applies the given yaml string to the cluster
func (Kubectl) ApplyWithLabels ¶
ApplyWithLabels applies the given yaml file to the cluster with the given labels
func (Kubectl) CreateFromString ¶
CreateFromString creates a resource from the given yaml string
func (Kubectl) CreateNamespace ¶
CreateNamespace creates a namespace If the namespace already exists, it will return nil
func (Kubectl) DeleteCRDs ¶
DeleteCRDs deletes the CRDs by given list of crds names
func (Kubectl) DeleteFromFile ¶
DeleteFromFile deletes a resource from the given yaml file
func (Kubectl) DeleteNamespace ¶
DeleteNamespace deletes a namespace and waits for it to be removed completely.
func (Kubectl) DeleteNamespaceNoWait ¶
DeleteNamespaceNoWait deletes a namespace and returns immediately (without waiting for the namespace to be removed).
func (Kubectl) ForceDelete ¶
ForceDelete deletes a resource by removing its finalizers
func (Kubectl) GetInternalIP ¶
GetInternalIP returns the internal IP of a node
func (Kubectl) WaitNamespaceDeleted ¶
WaitNamespaceDeleted waits for a namespace to be deleted
func (Kubectl) WithBinary ¶
WithBinary returns a new Kubectl with the binary set to the given value; if the value is "", the binary is set to "kubectl"
func (Kubectl) WithClusterName ¶
WithClusterName sets the cluster clusterName on this Kubectl
func (Kubectl) WithKubeconfig ¶
WithKubeconfig returns a new Kubectl with kubeconfig set to the given value
func (Kubectl) WithNamespace ¶
WithNamespace returns a new Kubectl with the namespace set to the given value