kubectl

package
v0.25.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paths

type Paths struct {
	Kubectl    string
	WorkDir    string
	Kubeconfig string
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(executor execx.Executor, paths Paths, serverSide, skipNotFound, clientVersion bool) *Runner

func (*Runner) APIResources

func (r *Runner) APIResources(params ...string) (string, error)

func (*Runner) Apply

func (r *Runner) Apply(manifestPath string, params ...string) error

func (*Runner) CmdPath

func (r *Runner) CmdPath() string

func (*Runner) Delete

func (r *Runner) Delete(manifestPath string, params ...string) (string, error)

func (*Runner) DeleteResource

func (r *Runner) DeleteResource(ns, res, name string) (string, error)

DeleteResource deletes the specified resource in the specified namespace.

func (*Runner) DeleteResources

func (r *Runner) DeleteResources(ns, res string) (string, error)

DeleteResources deletes the specified resources in the specified namespace.

func (*Runner) DeleteResourcesInAllNamespaces

func (r *Runner) DeleteResourcesInAllNamespaces(res string) (string, error)

DeleteResourcesInAllNamespaces deletes the specified resources in all namespaces.

func (*Runner) Get

func (r *Runner) Get(ns string, params ...string) (string, error)

func (*Runner) GetResource

func (r *Runner) GetResource(ns, res, name string) (string, error)

func (*Runner) Version

func (r *Runner) Version() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL