kubernetes

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppKubernetesComponent = "app.kubernetes.io/component"
	AppKubernetesManagedBy = "app.kubernetes.io/managed-by"
	AppKubernetesName      = "app.kubernetes.io/name"
	AppKubernetesPartOf    = "app.kubernetes.io/part-of"
)

Variables

This section is empty.

Functions

func ConfigurationView

func ConfigurationView() (string, error)

Types

type Kubernetes

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

func NewKubernetes

func NewKubernetes() (*Kubernetes, error)

func (*Kubernetes) PodsDelete added in v0.0.12

func (k *Kubernetes) PodsDelete(ctx context.Context, namespace, name string) (string, error)

func (*Kubernetes) PodsGet added in v0.0.10

func (k *Kubernetes) PodsGet(ctx context.Context, namespace, name string) (string, error)

func (*Kubernetes) PodsListInAllNamespaces

func (k *Kubernetes) PodsListInAllNamespaces(ctx context.Context) (string, error)

func (*Kubernetes) PodsListInNamespace

func (k *Kubernetes) PodsListInNamespace(ctx context.Context, namespace string) (string, error)

func (*Kubernetes) PodsLog added in v0.0.10

func (k *Kubernetes) PodsLog(ctx context.Context, namespace, name string) (string, error)

func (*Kubernetes) PodsRun added in v0.0.11

func (k *Kubernetes) PodsRun(ctx context.Context, namespace, name, image string, port int32) (string, error)

func (*Kubernetes) ResourcesCreateOrUpdate added in v0.0.10

func (k *Kubernetes) ResourcesCreateOrUpdate(ctx context.Context, resource string) (string, error)

func (*Kubernetes) ResourcesDelete added in v0.0.10

func (k *Kubernetes) ResourcesDelete(ctx context.Context, gvk *schema.GroupVersionKind, namespace, name string) error

func (*Kubernetes) ResourcesGet added in v0.0.10

func (k *Kubernetes) ResourcesGet(ctx context.Context, gvk *schema.GroupVersionKind, namespace, name string) (string, error)

func (*Kubernetes) ResourcesList

func (k *Kubernetes) ResourcesList(ctx context.Context, gvk *schema.GroupVersionKind, namespace string) (string, error)

Jump to

Keyboard shortcuts

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