agent

package
v0.0.0-...-a8aec34 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoMembersToJoinError = errors.New("no members to join")

Functions

This section is empty.

Types

type Client

type Client struct {
	ExpectedMembers   []string
	ConsulAPIAgent    consulAPIAgent
	ConsulAPIOperator consulAPIOperator
	Logger            logger
}

func (Client) InstallKey

func (c Client) InstallKey(key string) error

func (Client) JoinMembers

func (c Client) JoinMembers() error

func (Client) Leave

func (c Client) Leave() error

func (Client) ListKeys

func (c Client) ListKeys() ([]string, error)

func (Client) Members

func (c Client) Members(wan bool) ([]*api.AgentMember, error)

func (Client) RaftStats

func (c Client) RaftStats() (map[string]interface{}, error)

func (Client) RemoveKey

func (c Client) RemoveKey(key string) error

func (Client) Self

func (c Client) Self() error

func (Client) SetKeys

func (c Client) SetKeys(keys []string, keyringFile string) error

func (Client) UseKey

func (c Client) UseKey(key string) error

func (Client) VerifyJoined

func (c Client) VerifyJoined() error

func (Client) VerifySynced

func (c Client) VerifySynced() error

type Runner

type Runner struct {
	Path      string
	PIDFile   string
	ConfigDir string
	Stdout    io.Writer
	Stderr    io.Writer
	Recursors []string
	Logger    logger
	// contains filtered or unexported fields
}

func (*Runner) Cleanup

func (r *Runner) Cleanup() error

func (*Runner) Exited

func (r *Runner) Exited() bool

func (*Runner) Run

func (r *Runner) Run() error

func (*Runner) Stop

func (r *Runner) Stop() error

func (*Runner) Wait

func (r *Runner) Wait() error

func (*Runner) WritePID

func (r *Runner) WritePID() error

Jump to

Keyboard shortcuts

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