metadata

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilObject = errors.New("object cannot be nil when initializing runtime data")

ErrNilObject is returned when the runtime object being initialized is nil.

Functions

func Cleanup added in v0.4.0

func Cleanup(md Metadata, silent bool) error

silent specifies if the ID should be printed, when chaining commands silence all but the last command to print the ID only once

func SetLabels added in v0.7.0

func SetLabels(obj runtime.Object, labels []string) error

SetLabels metadata labels for a given object.

func SetNameAndUID added in v0.5.0

func SetNameAndUID(obj runtime.Object, c *client.Client) error

SetNameAndUID sets the name and UID for an object if that isn't set automatically

func Success added in v0.4.0

func Success(md Metadata) error

Should be returned as the last command when creating objects

Types

type Metadata

type Metadata interface {
	runtime.Object
}

Jump to

Keyboard shortcuts

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