Documentation
¶
Index ¶
- type Kubectl
- func (k *Kubectl) ApplyAllManifest(ctx context.Context, manifests []string, wait bool) error
- func (k *Kubectl) ApplyFile(ctx context.Context, filePath string) error
- func (k *Kubectl) ApplyFileAndWait(ctx context.Context, filepath string) error
- func (k *Kubectl) ApplyKustomize(ctx context.Context, kustomizePath string) error
- func (k *Kubectl) Capture(ctx context.Context, args []string) (stdout string, stderr string, err error)
- func (k *Kubectl) DeleteAllManifest(ctx context.Context, manifests []string, wait bool) error
- func (k *Kubectl) DeleteFile(ctx context.Context, filePath string) error
- func (k *Kubectl) DeleteFileAndWait(ctx context.Context, filePath string) error
- func (k *Kubectl) DeleteKustomize(ctx context.Context, kustomizePath string) error
- func (k *Kubectl) DeleteResource(ctx context.Context, name, namespace, resource string) error
- func (k *Kubectl) Dir() string
- func (k *Kubectl) Envs() []string
- func (k *Kubectl) Execute(ctx context.Context, args []string) error
- func (k *Kubectl) GetNamespacesList(ctx context.Context) ([]string, error)
- func (k *Kubectl) GetResourceNameList(ctx context.Context, namespace, resource string) ([]string, error)
- func (k *Kubectl) GetResourceStatusList(ctx context.Context, namespacedName types.NamespacedName, resource string) (bool, error)
- func (k *Kubectl) Name() string
- func (k *Kubectl) Path() string
- func (k *Kubectl) URL() string
- func (k *Kubectl) UseContext(ctx context.Context, clusterName string) error
- func (k *Kubectl) Version() string
- func (k *Kubectl) WaitAResource(ctx context.Context, resource string, namespacedName types.NamespacedName) (ready bool, err error)
- func (k *Kubectl) WaitFileForReady(ctx context.Context, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubectl ¶
type Kubectl struct {
// contains filtered or unexported fields
}
func NewKubectl ¶
func (*Kubectl) ApplyAllManifest ¶
func (*Kubectl) ApplyFileAndWait ¶
func (*Kubectl) ApplyKustomize ¶
func (*Kubectl) Capture ¶
func (k *Kubectl) Capture(ctx context.Context, args []string) (stdout string, stderr string, err error)
Capture execute command with returning outs as string.
func (*Kubectl) DeleteAllManifest ¶
func (*Kubectl) DeleteFile ¶
func (*Kubectl) DeleteFileAndWait ¶
func (*Kubectl) DeleteKustomize ¶
func (*Kubectl) DeleteResource ¶
func (*Kubectl) GetNamespacesList ¶
func (*Kubectl) GetResourceNameList ¶
func (*Kubectl) GetResourceStatusList ¶
func (*Kubectl) UseContext ¶
func (*Kubectl) WaitAResource ¶
func (k *Kubectl) WaitAResource(ctx context.Context, resource string, namespacedName types.NamespacedName) (ready bool, err error)
WaitAResource waits until deploy is ready.
Click to show internal directories.
Click to hide internal directories.