Documentation ¶
Index ¶
- func WithApplyOptions(cmd *exec.Cmd, opts ...ApplyOption)
- func WithCreateOptions(cmd *exec.Cmd, opts ...CreateOption)
- func WithDeleteOptions(cmd *exec.Cmd, opts ...DeleteOption)
- func WithGetOptions(cmd *exec.Cmd, opts ...GetOption)
- func WithPatchOptions(cmd *exec.Cmd, opts ...PatchOption)
- func WithWaitOptions(cmd *exec.Cmd, opts ...WaitOption)
- type AllNamespaces
- type ApplyOption
- type CreateOption
- type DeleteOption
- type DryRun
- type FieldManager
- type GetOption
- type IgnoreNotFound
- type Output
- type Patch
- type PatchOption
- type PatchType
- type Resource
- type Selector
- type Wait
- type WaitOption
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 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 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 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.
func OutputCustomColumns ¶
func OutputCustomColumnsFile ¶
func OutputGoTemplate ¶
func OutputGoTemplateFile ¶
func OutputJSONPath ¶
func OutputJSONPathFile ¶
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.
type Resource ¶
type Resource string
Resource represents an individual named resource or type of resource passed as an argument.
func ResourceKind ¶
ResourceKind returns a resource argument using the GVK.
func ResourceKindName ¶
ResourceKindName returns a resource argument using GVK and a name.
func ResourceName ¶
ResourceName returns a resource argument using a GVR and a name.
func ResourceType ¶
ResourceType returns a resource argument using the GVR(s).
type WaitOption ¶
type WaitOption interface {
// contains filtered or unexported methods
}