kubernetes

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecommendedConfigPathEnvVar = "KUBECONFIG"
	RecommendedHomeDir          = ".kube"
	RecommendedFileName         = "config"
)

Variables

View Source
var (
	RecommendedConfigDir = filepath.Join(homedir(), RecommendedHomeDir)
	RecommendedHomeFile  = filepath.Join(RecommendedConfigDir, RecommendedFileName)
)

Functions

This section is empty.

Types

type KubePolicies

type KubePolicies struct {
	policies.ToolPolicies
	DisableDestructive bool `yaml:"disable-destructive" json:"disable-destructive"`
}

type Provider

type Provider struct {
	api.BasicToolsProvider
	ReadOnly           bool `json:"-"`
	DisableDestructive bool `json:"-"`
}

func (*Provider) GetDefaultPolicies

func (p *Provider) GetDefaultPolicies() map[string]any

func (*Provider) GetTools

func (p *Provider) GetTools(ctx context.Context) ([]*api.Tool, error)

func (*Provider) Initialize

func (p *Provider) Initialize(_ context.Context, toolPolicies any)

Jump to

Keyboard shortcuts

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