agent

package
v0.0.0-...-d2d5cb9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent watches etcd to trigger config updates

func NewAgent

func NewAgent(
	client *clientv3.Client,
	scs storage.ServerConfigStorage,
	mcs storage.MainConfigStorage,
	readyCh chan interface{},
) *Agent

NewAgent creates a new Agent instance

func (*Agent) Run

func (a *Agent) Run(ctx context.Context)

Run starts the agent

type Nginx

type Nginx interface {
	Run() error
	Stop() error
	Reload() error
	TestConfig() error
}

Nginx controls a nginx process

func NewNginx

func NewNginx(e shell.Executor) Nginx

NewNginx creates a new nginx instance

type StatusServer

type StatusServer interface {
	Run() error
}

StatusServer is used to query the agent status from the outside

func NewStatusServer

func NewStatusServer(readyCh <-chan interface{}) StatusServer

NewStatusServer creates a new StatusServer

Jump to

Keyboard shortcuts

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