kubectl

package
v0.6.0-SURE-6125.5 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package kubectl is a wrapper around the kubectl CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func New

func New(cnt string, ns string) Command

func (Command) Apply

func (c Command) Apply(args ...string) (string, error)

func (Command) Context

func (c Command) Context(cnt string) Command

func (Command) Create added in v0.4.0

func (c Command) Create(args ...string) (string, error)

func (Command) Delete

func (c Command) Delete(args ...string) (string, error)

func (Command) Get

func (c Command) Get(args ...string) (string, error)

func (Command) Namespace

func (c Command) Namespace(ns string) Command

func (Command) Patch added in v0.4.0

func (c Command) Patch(args ...string) (string, error)

func (Command) Run

func (c Command) Run(args ...string) (string, error)

func (Command) Stdout

func (c Command) Stdout(enable bool) Command

func (Command) Workdir

func (c Command) Workdir(dir string) Command

Jump to

Keyboard shortcuts

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