Documentation
¶
Index ¶
- func CheckVersion(verbose bool) (string, error)
- func IsClusterResourceDeployed(resource string, labelName string, labelValue string, verbose bool) (bool, error)
- func IsPodDeployed(namespace string, labelName string, labelValue string, verbose bool) (bool, error)
- func IsPodReady(namespace string, labelName string, labelValue string, verbose bool) (bool, error)
- func IsResourceDeployed(resource string, namespace string, labelName string, labelValue string, ...) (bool, error)
- func RunApplyCmd(resources []map[string]interface{}, verbose bool) (string, error)
- func RunCmd(verbose bool, args ...string) (string, error)
- func RunCmdWithTimeout(timeout time.Duration, verbose bool, args ...string) (string, error)
- func WaitForPodGone(namespace string, labelName string, labelValue string, verbose bool) error
- func WaitForPodReady(namespace string, labelName string, labelValue string, verbose bool) error
- type Wrapper
- func (w *Wrapper) CheckVersion() (string, error)
- func (w *Wrapper) IsClusterResourceDeployed(resource string, labelName string, labelValue string) (bool, error)
- func (w *Wrapper) IsPodDeployed(namespace string, labelName string, labelValue string) (bool, error)
- func (w *Wrapper) IsPodReady(namespace string, labelName string, labelValue string) (bool, error)
- func (w *Wrapper) IsResourceDeployed(resource string, namespace string, labelName string, labelValue string) (bool, error)
- func (w *Wrapper) RunApplyCmd(resources []map[string]interface{}) (string, error)
- func (w *Wrapper) RunCmd(args ...string) (string, error)
- func (w *Wrapper) WaitForPodGone(namespace string, labelName string, labelValue string) error
- func (w *Wrapper) WaitForPodReady(namespace string, labelName string, labelValue string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
CheckVersion assures that the kubectl version used is compatible
func IsClusterResourceDeployed ¶
func IsClusterResourceDeployed(resource string, labelName string, labelValue string, verbose bool) (bool, error)
IsClusterResourceDeployed checks if a kubernetes cluster resource is deployed. It will not wait till it is deployed. The resource gets identified by a lebel key=value pair.
func IsPodDeployed ¶
func IsPodDeployed(namespace string, labelName string, labelValue string, verbose bool) (bool, error)
IsPodDeployed checks if a pod is deployed. It will not wait till it is deployed. The pod gets identified by the namespace and a label key=value pair.
func IsPodReady ¶
IsPodReady checks if a pod is deployed and running. It will not wait till it is deployed or running. The pod gets identified by the namespace and a lebel key=value pair.
func IsResourceDeployed ¶
func IsResourceDeployed(resource string, namespace string, labelName string, labelValue string, verbose bool) (bool, error)
IsResourceDeployed checks if a kubernetes resource is deployed. It will not wait till it is deployed. The resource gets identified by the namespace and a lebel key=value pair.
func RunApplyCmd ¶
RunApplyCmd executes a kubectl apply command with given resources
func RunCmdWithTimeout ¶
func WaitForPodGone ¶
WaitForPodGone waits till a pod is not existent anymore. The pod gets identified by the namespace and a lebel key=value pair.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}