client

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProducer

type DefaultProducer struct {
	KubeClient    kubernetes.Interface
	DynamicClient dynamic.Interface
	GeneralClient client.Client
}

func (*DefaultProducer) ForDynamic

func (p *DefaultProducer) ForDynamic() dynamic.Interface

func (*DefaultProducer) ForGeneral

func (p *DefaultProducer) ForGeneral() client.Client

func (*DefaultProducer) ForKubernetes

func (p *DefaultProducer) ForKubernetes() kubernetes.Interface

type Producer

type Producer interface {
	// This is a general client that can be used for any resource type and for most operations.
	ForGeneral() client.Client

	// This is needed for operations that aren't supported by the general client (eg, accessing subresources like pod logs).
	ForKubernetes() kubernetes.Interface

	// While the general client supports Unstructured, this client provides a direct API via GVR which may be easier or
	// preferable in some cases.
	ForDynamic() dynamic.Interface
}

func NewProducerFromRestConfig

func NewProducerFromRestConfig(config *rest.Config) (Producer, error)

Jump to

Keyboard shortcuts

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