client

package
v0.0.0-...-1d80bfb Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 19 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

	// 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

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

func (*InternalClient) RefreshCacheDiscovery

func (c *InternalClient) RefreshCacheDiscovery()

RefreshCacheDiscovery refresh cache discovery

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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