tools

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaResourceNamespaceKeyFunc

func MetaResourceNamespaceKeyFunc(kind string, obj interface{}) (string, error)

MetaResourceNamespaceKeyFunc is a convenient KeyFunc which knows how to make keys for API objects which implement meta.Interface. The key uses the format <kind>/<namespace>/<name> unless <namespace> is empty, then it's <kind>/<name>.

func SplitMetaResourceNamespaceKeyFunc

func SplitMetaResourceNamespaceKeyFunc(key string) (kind, namespace, name string, err error)

SplitMetaResourceNamespaceKeyFunc returns the kind, namespace and name that MetaResourceNamespaceKeyFunc encoded into key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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