k8scontext

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 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 Extension

type Extension 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 NewExtension

func NewExtension(context k8s.KubeContext, env k8s.Env) Extension

func (Extension) NewState

func (e Extension) NewState() interface{}

func (Extension) OnStart

func (e Extension) 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