client

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 18 Imported by: 8

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

	// todo: aggregate to versioned
	Metrics() versioned.Interface
	ClientSet() kubernetes.Interface

	Discovery() discovery.DiscoveryInterface

	CacheDiscovery() discovery.CachedDiscoveryInterface

	RESTMapper() meta.RESTMapper
}

Client retrieves k8s resource with cache or not

func NewClientFor

func NewClientFor(ctx context.Context, cfg *rest.Config) (Client, error)

NewClientFor generate client by config todo: with options

type InternalClient

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

func (*InternalClient) Cache

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

func (*InternalClient) CacheDiscovery added in v1.7.6

func (*InternalClient) ClientSet

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

func (*InternalClient) Direct

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

func (*InternalClient) Discovery

func (*InternalClient) Metrics

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

func (*InternalClient) RESTMapper

func (c *InternalClient) RESTMapper() meta.RESTMapper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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