chaperon

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapChecker

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

func NewBootstrapChecker

func NewBootstrapChecker(logger logger, agentClient agentClient, statusClient statusClient, sleeper func(duration time.Duration)) BootstrapChecker

func (BootstrapChecker) StartInBootstrapMode

func (b BootstrapChecker) StartInBootstrapMode() (startInBootstrapMode bool, err error)

type Client

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

func NewClient

func NewClient(controller controller, keyringRemover keyringRemover, configWriter configWriter) Client

func (Client) Start

func (c Client) Start(cfg config.Config, timeout utils.Timeout) error

func (Client) Stop

func (c Client) Stop()

type ConfigWriter

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

func NewConfigWriter

func NewConfigWriter(dir string, logger logger) ConfigWriter

func (ConfigWriter) Write

func (w ConfigWriter) Write(cfg config.Config) error

type Controller

type Controller struct {
	AgentRunner    agentRunner
	AgentClient    agentClient
	Retrier        utils.Retrier
	EncryptKeys    []string
	SSLDisabled    bool
	Logger         logger
	ConfigDir      string
	ServiceDefiner serviceDefiner
	Config         config.Config
}

func (Controller) BootAgent

func (c Controller) BootAgent(timeout utils.Timeout) error

func (Controller) ConfigureClient

func (c Controller) ConfigureClient() error

func (Controller) ConfigureServer

func (c Controller) ConfigureServer(timeout utils.Timeout) error

func (Controller) StopAgent

func (c Controller) StopAgent()

func (Controller) WriteServiceDefinitions

func (c Controller) WriteServiceDefinitions() error

type KeyringRemover

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

func NewKeyringRemover

func NewKeyringRemover(path string, logger logger) KeyringRemover

func (KeyringRemover) Execute

func (r KeyringRemover) Execute() error

type Server

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

func NewServer

func NewServer(controller controller, configWriter configWriter, bootstrapChecker bootstrapChecker) Server

func (Server) Start

func (s Server) Start(cfg config.Config, timeout utils.Timeout) error

func (Server) Stop

func (s Server) Stop()

Jump to

Keyboard shortcuts

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