karg

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithApplyOptions

func WithApplyOptions(cmd *exec.Cmd, opts ...ApplyOption)

func WithCreateOptions

func WithCreateOptions(cmd *exec.Cmd, opts ...CreateOption)

func WithDeleteOptions

func WithDeleteOptions(cmd *exec.Cmd, opts ...DeleteOption)

func WithGetOptions

func WithGetOptions(cmd *exec.Cmd, opts ...GetOption)

func WithPatchOptions

func WithPatchOptions(cmd *exec.Cmd, opts ...PatchOption)

func WithWaitOptions

func WithWaitOptions(cmd *exec.Cmd, opts ...WaitOption)

Types

type AllNamespaces

type AllNamespaces bool

AllNamespaces represents the "--all-namespaces" option.

type ApplyOption

type ApplyOption interface {
	// contains filtered or unexported methods
}

type CreateOption

type CreateOption interface {
	// contains filtered or unexported methods
}

type DeleteOption

type DeleteOption interface {
	// contains filtered or unexported methods
}

type DryRun

type DryRun string

DryRun represents the "--dry-run=none|client|server" option.

const (
	DryRunNone   DryRun = "none"
	DryRunClient DryRun = "client"
	DryRunServer DryRun = "server"
)

func (DryRun) IsDryRun

func (o DryRun) IsDryRun() bool

type FieldManager added in v0.4.7

type FieldManager string

FieldManager represents the "--field-manager" option on the patch command.

const (
	FieldManagerKubectlPatch FieldManager = "kubectl-patch"
)

type GetOption

type GetOption interface {
	// contains filtered or unexported methods
}

type IgnoreNotFound

type IgnoreNotFound bool

IgnoreNotFound represents the "--ignore-not-found" option.

type Output

type Output string

Output represents the "--output=json|yaml|wide|name|custom-columns=|custom-columns-file=|go-template=|go-template-file=|jsonpath=|jsonpath-file=" option.

const (
	OutputJSON Output = "json"
	OutputYAML Output = "yaml"
	OutputWide Output = "wide"
	OutputName Output = "name"
)

func OutputCustomColumns

func OutputCustomColumns(cols ...string) Output

func OutputCustomColumnsFile

func OutputCustomColumnsFile(file string) Output

func OutputGoTemplate

func OutputGoTemplate(tmpl string) Output

func OutputGoTemplateFile

func OutputGoTemplateFile(file string) Output

func OutputJSONPath

func OutputJSONPath(path string) Output

func OutputJSONPathFile

func OutputJSONPathFile(file string) Output

type Patch

type Patch string

Patch represents the "--patch" option on the patch command.

type PatchOption

type PatchOption interface {
	// contains filtered or unexported methods
}

type PatchType

type PatchType string

PatchType represents the "--type=json|merge|strategic" option on the patch command.

const (
	PatchTypeJSON      PatchType = "json"
	PatchTypeMerge     PatchType = "merge"
	PatchTypeStrategic PatchType = "strategic"
)

type Resource

type Resource string

Resource represents an individual named resource or type of resource passed as an argument.

func ResourceKind

func ResourceKind(apiVersion, kind string) Resource

ResourceKind returns a resource argument using the GVK.

func ResourceKindName

func ResourceKindName(apiVersion, kind, name string) Resource

ResourceKindName returns a resource argument using GVK and a name.

func ResourceName

func ResourceName(resourceType, resourceName string) Resource

ResourceName returns a resource argument using a GVR and a name.

func ResourceType

func ResourceType(resource ...string) Resource

ResourceType returns a resource argument using the GVR(s).

type Selector

type Selector string

Selector represents the "--selector" option.

type Wait

type Wait bool

Wait represents the "--wait" option

type WaitOption

type WaitOption interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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