config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFileName = "config.yaml"

ConfigFileName is a name of botkube configuration file

View Source
var Notify = true

Notify flag to toggle event notification

Functions

This section is empty.

Types

type Communications

type Communications struct {
	Slack Slack
}

Communications channels to send events to

type Config

type Config struct {
	Resources       []Resource
	Recommendations bool
	Communications  Communications
	Events          K8SEvents
	Settings        Settings
}

Config structure of configuration yaml file

func New

func New() (*Config, error)

New returns new Config

type K8SEvents

type K8SEvents struct {
	Types []string
}

K8SEvents contains event types

type Resource

type Resource struct {
	Name       string
	Namespaces []string
	Events     []string
}

Resource contains resources to watch

type Settings added in v0.2.0

type Settings struct {
	ClusterName  string
	AllowKubectl bool
}

Settings for multicluster support

type Slack

type Slack struct {
	Channel string
	Token   string
}

Slack configuration to authentication and send notifications

Jump to

Keyboard shortcuts

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