params

package
v0.7.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

func TCPPortFor added in v0.7.0

func TCPPortFor(status types.ContainerJSON, port int) string

func TCPPortsFor added in v0.7.0

func TCPPortsFor(status types.ContainerJSON) map[string]string

Types

type Config

type Config struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Database string `json:"database,omitempty"`
	Url      string `json:"url,omitempty"`
	// 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 `json:"id"`
	Hostname string `json:"hostname"`
	Port     string `json:"port"`
	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