k8scontext

package
v0.22.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin added in v0.22.4

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

Implements functions for dealing with the Kubernetes context. Exposes an API for other plugins to get and validate the allowed k8s context.

func NewPlugin added in v0.22.4

func NewPlugin(context k8s.KubeContext, env k8s.Env) Plugin

func (Plugin) NewState added in v0.22.4

func (e Plugin) NewState() interface{}

func (Plugin) OnStart added in v0.22.4

func (e Plugin) OnStart(env *starkit.Environment) error

type State

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

func GetState

func GetState(model starkit.Model) (State, error)

func MustState

func MustState(model starkit.Model) State

func (State) IsAllowed

func (s State) IsAllowed() bool

func (State) KubeContext

func (s State) KubeContext() k8s.KubeContext

Jump to

Keyboard shortcuts

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