kubectl

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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) Create

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) 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