kubernetes

package
v2.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DspNamespaceEnv = "DSP_NAMESPACE"
View Source
const DspPodEnv = "DSP_POD"

Variables

View Source
var JsonSerializer = createSerializer("json")
View Source
var YamlSerializer = createSerializer("yaml")

Functions

func Apply

func Apply(ctx context.Context, obj runtime.Object, changedBy, changeReason string, forceOverwrite bool) (runtime.Object, error)

func Delete

func Delete(ctx context.Context, gvk schema.GroupVersionKind, namespace string, name string) error

func DeleteObject

func DeleteObject(ctx context.Context, obj runtime.Object) error

func Get

func Get(ctx context.Context, gvk schema.GroupVersionKind, namespace string, name string) (runtime.Object, error)

func GetObject added in v2.0.10

func GetObject(ctx context.Context, obj runtime.Object) error

func GroupVersionKindForObject

func GroupVersionKindForObject(obj runtime.Object) (schema.GroupVersionKind, error)

Types

type PodReference

type PodReference struct {
	Namespace string `json:"namespace"`
	Pod       string `json:"pod"`
}

func GetCurrentPodReference

func GetCurrentPodReference() (*PodReference, error)

type PvcResizingError added in v2.0.16

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

func (PvcResizingError) Error added in v2.0.16

func (re PvcResizingError) Error() string

func (PvcResizingError) Is added in v2.0.16

func (re PvcResizingError) Is(target error) bool

func (PvcResizingError) Unwrap added in v2.0.16

func (re PvcResizingError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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