kube

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const FieldManager = "spin-plugin-kube"

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

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

func New

func New(kubeclient client.Client, configFlags *genericclioptions.ConfigFlags) *Impl

func (*Impl) ApplySpinApp

func (i *Impl) ApplySpinApp(ctx context.Context, app *spinv1alpha1.SpinApp) error

func (*Impl) DeleteSpinApp

func (i *Impl) DeleteSpinApp(ctx context.Context, name client.ObjectKey) error

func (*Impl) GetLogs

func (i *Impl) GetLogs(ctx context.Context, key client.ObjectKey) ([]byte, error)

func (*Impl) GetSpinApp

func (i *Impl) GetSpinApp(ctx context.Context, name client.ObjectKey) (spinv1alpha1.SpinApp, error)

func (*Impl) ListSpinApps

func (i *Impl) ListSpinApps(ctx context.Context, namespace string) (spinv1alpha1.SpinAppList, error)

ListSpinApps returns all resources of type SpinApp in the given namespace. If namespace is the empty string, it returns all SpinApp resources across all namespaces.

Jump to

Keyboard shortcuts

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