config

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(config Config, path string) error

WriteConfig function that can write to the yaml file

Types

type Action

type Action struct {
	Name   string
	Params map[interface{}]interface{}
}

Action that the controller will be taking based on the Parameters

type Config

type Config struct {
	PollTimeInterval     string `yaml:"pollTimeInterval"`
	Age                  string
	Resources            []string
	Actions              []Action
	RestrictedNamespaces []string `yaml:"restrictedNamespaces"`
}

Config which would be read from the config.yaml

func GetConfiguration

func GetConfiguration() Config

GetConfiguration gets the yaml configuration for the controller

func ReadConfig

func ReadConfig(filePath string) (Config, error)

ReadConfig function that reads the yaml file

Jump to

Keyboard shortcuts

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