client

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	Config *rest.Config
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(cfg *rest.Config, impersonate bool, opts ...FactoryOption) (*Factory, error)

func (*Factory) AdminClient

func (p *Factory) AdminClient(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

func (*Factory) AdminClientForWatch

func (p *Factory) AdminClientForWatch(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

func (*Factory) AdminDynamicClient

func (p *Factory) AdminDynamicClient() dynamic.Interface

func (*Factory) AdminK8sInterface

func (p *Factory) AdminK8sInterface() (kubernetes.Interface, error)

func (*Factory) Client

func (p *Factory) Client(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

func (*Factory) ClientForWatch

func (p *Factory) ClientForWatch(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

func (*Factory) DynamicClient

func (p *Factory) DynamicClient(ctx *types.APIRequest, warningHandler rest.WarningHandler) (dynamic.Interface, error)

func (*Factory) IsImpersonating

func (p *Factory) IsImpersonating() bool

func (*Factory) K8sInterface

func (p *Factory) K8sInterface(ctx *types.APIRequest) (kubernetes.Interface, error)

func (*Factory) MetadataClient

func (p *Factory) MetadataClient() metadata.Interface

func (*Factory) TableAdminClient

func (p *Factory) TableAdminClient(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

func (*Factory) TableAdminClientForWatch

func (p *Factory) TableAdminClientForWatch(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

func (*Factory) TableClient

func (p *Factory) TableClient(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

func (*Factory) TableClientForWatch

func (p *Factory) TableClientForWatch(ctx *types.APIRequest, s *types.APISchema, namespace string, warningHandler rest.WarningHandler) (dynamic.ResourceInterface, error)

type FactoryOption added in v0.6.4

type FactoryOption func(*factoryOptions)

FactoryOption is an option-func for configuring the newly created factory.

func WithQPSAndBurst added in v0.6.4

func WithQPSAndBurst(qps float32, burst int) FactoryOption

WithQPSAndBurst configures the rest.Config used for creating the clients in the factory with the provided burst and qps configuration.

See https://pkg.go.dev/k8s.io/client-go/rest#Config for more.

Jump to

Keyboard shortcuts

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