config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_CONF_PATH = "./sentinel.yml"

NOTE maybe fmt.Sprintf("%s.yml", agent.nodename) sentinel will try to read this file if environment variable SENTINEL_CONF_PATH isn't set

View Source
const PATTERN string = "([a-z0-9]+)=(\"[\\s-:,@a-z0-9]+\")"

Variables

This section is empty.

Functions

func Path

func Path() (string, error)

Types

type Config

type Config struct {
	Name      string
	Actuator  *PluginConfig
	Heartbeat *HeartbeatConfig
	Adapter   *PluginConfig
}

func Load

func Load(confPath string) (*Config, error)

type HeartbeatConfig

type HeartbeatConfig struct {
	// NOTE create Heartbeat plugin here ?
	Plugin  string
	Opts    map[string]string
	Filters []agent.EventFilter
}

type PluginConfig

type PluginConfig struct {
	Plugin string
	Opts   map[string]string
}

type REParser

type REParser struct {
	RE *regexp.Regexp
}

func NewREParser

func NewREParser() *REParser

func (REParser) Parse

func (p REParser) Parse(spec string) *PluginConfig

Jump to

Keyboard shortcuts

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