smart

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedDiscoveryClient

type CachedDiscoveryClient struct {
	discovery.DiscoveryInterface
}

func (*CachedDiscoveryClient) Fresh

func (c *CachedDiscoveryClient) Fresh() bool

Fresh returns true if no cached data was used that had been retrieved before the instantiation.

func (*CachedDiscoveryClient) Invalidate

func (c *CachedDiscoveryClient) Invalidate()

Invalidate enforces that no cached data is used in the future that is older than the current time.

type ClientPool added in v0.2.0

type ClientPool interface {
	// ClientForGroupVersionKind returns a client configured for the specified groupVersionKind.
	// Kind may be empty.
	ClientForGroupVersionKind(schema.GroupVersionKind) (dynamic.Interface, error)
}

ClientPool manages a pool of dynamic clients.

type DynamicClient

type DynamicClient struct {
	CoreDynamic, ScDynamic ClientPool
	Mapper, ScMapper       Mapper
}

func NewClient

func NewClient(config, scConfig *rest.Config, clientset kubernetes.Interface, scClient scClientset.Interface) *DynamicClient

func (*DynamicClient) ForGVK

type Mapper

type Mapper interface {
	// RESTMapping identifies a preferred resource mapping for the provided group kind.
	RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
}

Jump to

Keyboard shortcuts

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