kubernetes

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 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 added in v1.2.4

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

func Client added in v1.2.4

func ClientForObject added in v1.2.4

func ClientForObject(ctx context.Context, obj runtime.Object, namespace string) (dynamic.ResourceInterface, schema.GroupVersionKind, bool, error)

func Delete added in v1.2.4

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

func DeleteObject added in v1.2.4

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

func Get added in v1.2.4

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

func GroupVersionKindForObject added in v1.2.4

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

func Populate added in v1.2.4

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

Types

type PodReference

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

func GetCurrentPodReference

func GetCurrentPodReference() (*PodReference, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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