kubernetes

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSchemes

func WithSchemes(fns ...func(s *runtime.Scheme) error)

WithSchemes allow add extensions scheme to client

Types

type Client

type Client interface {
	Cache() cache.Cache
	Direct() client.Client
	Metrics() versioned.Interface
	ClientSet() kubernetes.Interface
}

Client retrieves k8s resource with cache or not

func NewClientFor

func NewClientFor(cfg *rest.Config, stopCh chan struct{}) (Client, error)

NewClientFor generate client by config

type InternalClient

type InternalClient struct {
	// contains filtered or unexported fields
}

func (*InternalClient) Cache

func (c *InternalClient) Cache() cache.Cache

func (*InternalClient) ClientSet

func (c *InternalClient) ClientSet() kubernetes.Interface

func (*InternalClient) Direct

func (c *InternalClient) Direct() client.Client

func (*InternalClient) Metrics

func (c *InternalClient) Metrics() versioned.Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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