watcher

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromServer

func PromServer()

PromServer :prometheusのメトリクスエンドポイントを起動

func ValidateCWLogs

func ValidateCWLogs() error

ValidateCWLogs : 指定されたCWLogsのlogGroupとlogStreamが使用可能かどうか

func ValidateSlack

func ValidateSlack() error

ValidateSlack : 指定されたslackのチャンネルが使用可能かどうか。実際postする以外にprivateチャンネルの存在確認する方法はないかな…

func WatchStart

func WatchStart(appConfig []Config)

WatchStart : eventをwatchするためのmain function

Types

type Config

type Config struct {
	Namespace      string          `yaml:"namespace"`
	WatchEvent     watchEvent      `yaml:"watchEvent"`
	FieldSelectors []fieldSelector `yaml:"fieldSelectors"`
	Channel        string          `yaml:"channel"`
	LogStream      string          `yaml:"logStream"`
}

Config はファイルで読み込む設定の型

func LoadConfig

func LoadConfig() ([]Config, error)

LoadConfig :yamlファイルを読み込む

Jump to

Keyboard shortcuts

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