config

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name   string
	DryRun bool `mapstructure:"dry-run" yaml:"dry-run"`
}

Action represents a kube action and whether it should be a dry-run

type Config

type Config struct {
	Contexts []Context
}

Config holds the Contexts for the plugin

func ReadConfig

func ReadConfig() (*Config, error)

ReadConfig reads the cautious.yaml

type Context

type Context struct {
	Name    string
	Actions []Action
}

Context holds the configuration for a specific context

Jump to

Keyboard shortcuts

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