service

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package service provides the runnable service that acts as the root of the overall system. It provides a configuration structure, a way to initialise a primed instance of the service which can then be start via the .Start() func.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App stores application state

func Initialise

func Initialise(c Config) (app *App, err error)

Initialise prepares an instance of the app to run

func (*App) Start

func (app *App) Start(ctx context.Context) error

Start launches the app and blocks until fatal error

type Config

type Config struct {
	Target        string
	Hostname      string
	NoSSH         bool
	Directory     string
	CheckInterval time.Duration
	VaultAddress  string
	VaultToken    string
	VaultPath     string
	VaultRenewal  time.Duration
}

Config specifies static configuration parameters (from CLI or environment)

Jump to

Keyboard shortcuts

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