k8shelpers

package
v0.0.0-...-d3bfbd9 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeCluster = "cluster"
	ModeToken   = "token"
	ModeLocal   = "local"
)

Variables

This section is empty.

Functions

func MustConfigure

func MustConfigure(opts Options) *rest.Config

Configure kubernetes or die

Types

type K8sHelperService

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

func NewK8sHelperService

func NewK8sHelperService(cfg *rest.Config, mode Mode) *K8sHelperService

type Mode

type Mode string

type Options

type Options struct {
	Mode       Mode
	KubeConfig string
}

type Service

type Service interface {
	HasAccess(string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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