Versions in this module Expand all Collapse all v0 v0.0.2 Mar 2, 2021 Changes in this version + const QuarksHelmRelease type Kubectl + func (k *Kubectl) Curl(namespace, url string) ([]byte, error) + func (k *Kubectl) ServiceWorks(namespace, serviceName string) (bool, error) v0.0.1 Sep 25, 2020 Changes in this version + const CFOperatorRelease + func Apply(namespace string, yamlFilePath string) error + func Create(namespace string, yamlFilePath string) error + func CreateNamespace(name string) error + func CreateSecretFromLiteral(namespace string, secretName string, literalValues map[string]string) error + func Delete(namespace string, yamlFilePath string) error + func DeleteLabelFilter(namespace string, resourceName string, labelName string) error + func DeleteNamespace(ns string) error + func DeleteResource(namespace string, resourceName string, name string) error + func DeleteSecret(namespace string, secretName string) error + func DeleteWebhooks(ns string) error + func GetData(namespace string, resourceName string, name string, templatePath string) ([]byte, error) + func HelmBinaryVersion() (string, error) + func NewContext() context.Context + func PatchNamespace(name string, patch string) error + func RestartOperator(namespace string) error + func RunCommandWithOutput(namespace string, podName string, commandInPod string) (string, error) + func RunHelmBinaryWithCustomErr(args ...string) error + func SecretCheckData(namespace string, secretName string, fieldPath string) error + func TriggerQJob(namespace, qjob string) error + type BDPL struct + APIVersion string + Kind string + Metadata struct{ ... } + Spec struct{ ... } + type ClusterCrd struct + Items []struct{ ... } + func GetCRDs() (*ClusterCrd, error) + func (c *ClusterCrd) ContainsElement(element string) bool + type ConfigMap struct + APIVersion string + Data map[string]string + Kind string + Metadata struct{ ... } + type CustomError struct + Err error + Msg string + StdOut string + func (e *CustomError) Error() string + type Kubectl struct + Log *zap.SugaredLogger + Namespace string + PollTimeout time.Duration + func NewKubectl() *Kubectl + func (k *Kubectl) ApplyYAML(namespace string, name string, v interface{}) error + func (k *Kubectl) CreateRoleBinding(namespace string, clusterrole, serviceaccount, role string) error + func (k *Kubectl) CreateServiceAccount(namespace string, serviceaccount string) error + func (k *Kubectl) Delete(args ...string) error + func (k *Kubectl) DeleteRoleBinding(namespace string, role string) error + func (k *Kubectl) DeleteServiceAccount(namespace string, serviceaccount string) error + func (k *Kubectl) Exists(namespace, resource, name string) (bool, error) + func (k *Kubectl) GetBoshDeployment(namespace string, name string) (BDPL, error) + func (k *Kubectl) GetConfigMap(namespace string, name string) (ConfigMap, error) + func (k *Kubectl) GetPodNames(namespace string, selector string) ([]string, error) + func (k *Kubectl) PodExists(namespace string, labelName string, podName string) (bool, error) + func (k *Kubectl) PodStatus(namespace string, podName string) (*v1.PodStatus, error) + func (k *Kubectl) RunCommandWithCheckString(namespace string, podName string, commandInPod string, result string) error + func (k *Kubectl) SecretExists(namespace string, secretName string) (bool, error) + func (k *Kubectl) Service(namespace string, serviceName string) (v1.Service, error) + func (k *Kubectl) ServiceExists(namespace string, serviceName string) (bool, error) + func (k *Kubectl) Wait(namespace string, requiredStatus string, resourceName string, ...) error + func (k *Kubectl) WaitForData(namespace string, resourceName string, name string, template string, ...) error + func (k *Kubectl) WaitForPVC(namespace string, pvcName string) error + func (k *Kubectl) WaitForPod(namespace string, labelName string, podName string) error + func (k *Kubectl) WaitForPodDelete(namespace string, podName string) error + func (k *Kubectl) WaitForSecret(namespace string, secretName string) error + func (k *Kubectl) WaitForService(namespace string, serviceName string) error + func (k *Kubectl) WaitLabelFilter(namespace string, requiredStatus string, resourceName string, labelName string) error