k

package
v0.0.0-...-26f1130 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultResyncPeriod = 10 * time.Minute
)

Variables

This section is empty.

Functions

func IsSubResource

func IsSubResource(resource string) bool

func NewScheme

func NewScheme(addTo ...func(*runtime.Scheme) error) *runtime.Scheme

NewScheme ...

Types

type Client

type Client struct {
	Conf            *rest.Config
	Discovery       *discovery.DiscoveryClient
	InformerFactory dynamicinformer.DynamicSharedInformerFactory
}

Client provides read-only access to Kubernetes resources.

func NewClient

func NewClient() (*Client, error)

NewClient returns a new Kubernetes client.

func (*Client) InformOnResource

func (c *Client) InformOnResource(gvr schema.GroupVersionResource, handler cache.ResourceEventHandler)

func (*Client) Run

func (c *Client) Run(stopChan <-chan struct{})

Jump to

Keyboard shortcuts

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