kubernetes

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOne

func ApplyOne(ctx context.Context, c client.Client, obj manifest.Object, dryRun bool) error

func AutoMergePath

func AutoMergePath(gvk schema.GroupVersionKind, live client.Object) client.Patch

func ResolveKubeConfig

func ResolveKubeConfig(contextName string) (*rest.Config, error)

Types

type KubeClient

type KubeClient struct {
	client.Client
	Config *rest.Config
}

func NewClient

func NewClient() (*KubeClient, error)

func NewClientForContext

func NewClientForContext(contextName string) (*KubeClient, error)

func (*KubeClient) AllListableGroupVersionKinds

func (c *KubeClient) AllListableGroupVersionKinds() (gvks []schema.GroupVersionKind, err error)

func (*KubeClient) ApplyResources

func (c *KubeClient) ApplyResources(ctx context.Context, list manifest.List) error

func (*KubeClient) DeleteResources

func (c *KubeClient) DeleteResources(ctx context.Context, list manifest.List) error

func (*KubeClient) Diff

func (c *KubeClient) Diff(ctx context.Context, objs []manifest.Object) ([]byte, error)

func (*KubeClient) Info

func (c *KubeClient) Info() string

func (*KubeClient) ListAll

func (c *KubeClient) ListAll(ctx context.Context, groupVersionKinds []schema.GroupVersionKind, listOptions ...client.ListOption) (l manifest.List, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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