roll

package
v0.0.0-...-89bf411 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RollKey     = "cascade/roll"
	RunOrderKey = "cascade/run_order"
	ConsulHost  = "127.0.0.1:8500"
)

Variables

This section is empty.

Functions

func GetNodes

func GetNodes(role string) ([]string, error)

Types

type CascadeEvent

type CascadeEvent struct {
	Source string `json:"source"`
	Msg    string `json:"msg"`
	Ref    string `json:"ref"`
}

type Roll

type Roll struct {
	Nodes []string
	Msg   chan string
	// contains filtered or unexported fields
}

func NewRoll

func NewRoll(role string) (*Roll, error)

func (*Roll) Destroy

func (r *Roll) Destroy() error

func (*Roll) Dispatch

func (r *Roll) Dispatch(host string) error

func (*Roll) Roll

func (r *Roll) Roll() error

Jump to

Keyboard shortcuts

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