config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mode       RunMode
	Resources  []Resource
	Namespaces []string
	Notifier   Notifier
}

func New

func New(filepath string) (*Config, error)

New returns new Config

type NoOp

type NoOp struct {
	Enabled bool
}

type Notifier

type Notifier struct {
	Slack   Slack
	Webhook Webhook
	NoOp    NoOp
}

type Resource

type Resource struct {
	Kind string
}

type RunMode

type RunMode string
const (
	WatchMode RunMode = "watch"
	DiffMode  RunMode = "diff"
)

type Slack

type Slack struct {
	Enabled bool
	Token   string
	Channel string
	Title   string
}

Slack contains slack configuration

type Webhook

type Webhook struct {
	Enabled bool
	Url     string
}

Jump to

Keyboard shortcuts

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