k8sutil

package
v1.12.4-alpine-2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCached

func NewCached(config *rest.Config) (meta.RESTMapper, error)

Types

type Cached

type Cached struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Cached) KindFor

func (*Cached) KindsFor

func (c *Cached) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)

func (*Cached) RESTMapping

func (c *Cached) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)

func (*Cached) RESTMappings

func (c *Cached) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)

func (*Cached) ResourceFor

func (*Cached) ResourceSingularizer

func (c *Cached) ResourceSingularizer(resource string) (singular string, err error)

func (*Cached) ResourcesFor

func (c *Cached) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)

Jump to

Keyboard shortcuts

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