Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AWSAuth aws.Auth AWSRegion aws.Region LogBuffer bytes.Buffer Logger = NewLogger(&LogBuffer) )
View Source
var RsyncDefaultOpts = []string{"-av", "--delete"}
Functions ¶
func LoadAWSConfigFile ¶
Types ¶
type CommandLine ¶ added in v0.0.4
type CommandLine string
func (CommandLine) Invoke ¶ added in v0.0.4
func (c CommandLine) Invoke() error
func (CommandLine) InvokePipe ¶ added in v0.0.4
func (c CommandLine) InvokePipe(src io.Reader) error
func (CommandLine) String ¶ added in v0.0.4
func (c CommandLine) String() string
type CommandLines ¶ added in v0.0.4
type CommandLines []CommandLine
func (CommandLines) Invoke ¶ added in v0.0.4
func (cs CommandLines) Invoke() error
func (CommandLines) InvokePipe ¶ added in v0.0.4
func (cs CommandLines) InvokePipe(src *bytes.Buffer) error
type Commands ¶
type Commands struct {
Pre CommandLines `yaml:"pre"`
Post CommandLines `yaml:"post"`
Success CommandLines `yaml:"success"`
Failure CommandLines `yaml:"failure"`
}
type ConsulEvent ¶
type ConsulEvent struct {
ID string `json:"ID"`
Name string `json:"Name"`
Payload string `json:"Payload"`
LTime int `json:"LTime"`
}
func ParseConsulEvents ¶
func ParseConsulEvents(in io.Reader) (*ConsulEvent, error)
func (ConsulEvent) PayloadString ¶
func (ev ConsulEvent) PayloadString() string
type ConsulEvents ¶
type ConsulEvents []ConsulEvent
Click to show internal directories.
Click to hide internal directories.