app

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config       *Config
	DockerClient docker.RawClient
	STSClient    iam.STSClient
}

App holds the state of the application.

func New

func New(config *Config, dockerClient docker.RawClient, stsClient iam.STSClient) *App

New creates a new application with the given config.

func (*App) Run

func (app *App) Run() error

Run starts the application asynchronously.

type Config

type Config struct {
	ListenAddr              string
	MetaDataUpstream        *url.URL
	EventHandlers           int
	ReadTimeout             time.Duration
	WriteTimeout            time.Duration
	DockerSyncPeriod        time.Duration
	CredentialRefreshPeriod time.Duration
	DisableUpstream         bool
}

Config holds application configuration

Jump to

Keyboard shortcuts

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