kubeclnt

package
v0.0.0-...-b0e6734 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

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

func NewClientFactory

func NewClientFactory() (*ClientFactory, error)

func (*ClientFactory) Discovery

func (*ClientFactory) Dynamic

func (f *ClientFactory) Dynamic() dynamic.Interface

func (*ClientFactory) KubeClient

func (f *ClientFactory) KubeClient() KubeClienter

func (*ClientFactory) Mapper

func (*ClientFactory) Static

func (f *ClientFactory) Static() kubernetes.Interface

type KubeClient

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

func NewKubeClient

func NewKubeClient(staticClient kubernetes.Interface, dynamicClient dynamic.Interface, discoveryClient discovery.CachedDiscoveryInterface, mapper meta.ResettableRESTMapper) *KubeClient

func (*KubeClient) Apply

func (*KubeClient) Create

func (*KubeClient) Delete

func (c *KubeClient) Delete(ctx context.Context, resource *resrcid.ResourceID, opts KubeClientDeleteOptions) error

func (*KubeClient) Get

func (*KubeClient) MergePatch

func (c *KubeClient) MergePatch(ctx context.Context, resource *resrcid.ResourceID, patch []byte) (*unstructured.Unstructured, error)

type KubeClientApplyOptions

type KubeClientApplyOptions struct {
	DryRun bool
}

type KubeClientCreateOptions

type KubeClientCreateOptions struct {
	ForceReplicas *int
}

type KubeClientDeleteOptions

type KubeClientDeleteOptions struct {
	PropagationPolicy *metav1.DeletionPropagation
}

type KubeClientGetOptions

type KubeClientGetOptions struct {
	TryCache bool
}

Jump to

Keyboard shortcuts

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