params

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username string
	Password string
	Database string
	Url      string
	// contains filtered or unexported fields
}

func ParseConfig

func ParseConfig(buf []byte) (Config, error)

func (Config) ParamsFor

func (c Config) ParamsFor(id string, status types.ContainerJSON, port int) (Params, error)

type Params

type Params struct {
	Id       string
	Hostname string
	Port     string
	Config
}

func (Params) ExecuteTemplate

func (p Params) ExecuteTemplate(tmpl *template.Template) (string, error)

func (Params) ForHost

func (p Params) ForHost(host string) (Params, error)

func (Params) ID

func (p Params) ID() string

func (Params) Interpolate

func (p Params) Interpolate(text string) (string, error)

type Set

type Set map[string]Params

Jump to

Keyboard shortcuts

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