k8s

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8S

type K8S interface {
	GetConfig() any
	GetClusterName() string
	HasAdminPrivileges(ctx context.Context) (bool, error)
	CreateNamespace(ctx context.Context, name string) error
	ListNamespaces(ctx context.Context) (*corev1.NamespaceList, error)
	CreateDeployment(ctx context.Context, namespace string) error
	CreateHPA(ctx context.Context, namespace string) error
}

func New

func New(cfg any) (K8S, error)

func NewFromFormFile

func NewFromFormFile(f *multipart.FileHeader) (K8S, error)

Jump to

Keyboard shortcuts

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