Documentation
¶
Index ¶
- Variables
- func DockerHostExposedPorts() ([]int, error)
- func RunAsync(s Stream, cmd *exec.Cmd, done chan error, opts RunnerOptions)
- func UpperName(name string) string
- type ArgOptions
- type Build
- type BuildOptions
- type Command
- type Environment
- type EnvironmentItem
- type Exec
- type ExternalNetwork
- type InternalNetwork
- type Labels
- type Manifest
- func (m Manifest) BalancerResourceName(process string) string
- func (m Manifest) Balancers() []ManifestBalancer
- func (m *Manifest) Build(dir, appName string, s Stream, opts BuildOptions) error
- func (m Manifest) EntryNames() []string
- func (m *Manifest) ExternalPorts() []int
- func (m Manifest) GetBalancer(name string) *ManifestBalancer
- func (m Manifest) HasExternalPorts() bool
- func (m Manifest) HasProcesses() bool
- func (m *Manifest) InternalPorts() []int
- func (m Manifest) MarshalYAML() (interface{}, error)
- func (m *Manifest) PortConflicts() ([]int, error)
- func (m *Manifest) Push(template, app, build string, stream Stream) error
- func (m *Manifest) Raw() ([]byte, error)
- func (m *Manifest) Run(dir, app string, opts RunOptions) Run
- func (m Manifest) Service(name string) (*Service, error)
- func (m *Manifest) Shift(shift int) error
- func (m *Manifest) UDPPorts() []int
- func (m Manifest) Validate() []error
- type ManifestBalancer
- func (mb ManifestBalancer) DrainingTimeout() (string, error)
- func (mb ManifestBalancer) ExternalPorts() []Port
- func (mb ManifestBalancer) FirstPort() string
- func (mb ManifestBalancer) HealthInterval() (string, error)
- func (mb ManifestBalancer) HealthPath() string
- func (mb ManifestBalancer) HealthPort() string
- func (mb ManifestBalancer) HealthProtocol() string
- func (mb ManifestBalancer) HealthThresholdHealthy() string
- func (mb ManifestBalancer) HealthThresholdUnhealthy() string
- func (mb ManifestBalancer) HealthTimeout() string
- func (mb ManifestBalancer) IdleTimeout() (string, error)
- func (mb ManifestBalancer) InstanceProtocol(p Port) string
- func (mb ManifestBalancer) InternalPorts() []Port
- func (mb ManifestBalancer) ListenerProtocol(p Port) string
- func (mb ManifestBalancer) LoadBalancerName(app string) string
- func (mb ManifestBalancer) PortMappings() []Port
- func (mb ManifestBalancer) Ports() []string
- func (mb ManifestBalancer) ProcessName() string
- func (mb ManifestBalancer) Protocol(p Port) string
- func (mb ManifestBalancer) ProxyProtocol(p Port) bool
- func (mb ManifestBalancer) Randoms() map[string]int
- func (mb ManifestBalancer) ResourceName() string
- func (mb ManifestBalancer) Scheme() string
- type Memory
- type MountableVolume
- type Network
- type Networks
- type Output
- type Port
- type Ports
- type Process
- type Protocol
- type Proxy
- type Run
- type RunOptions
- type Runner
- type RunnerOptions
- type Service
- func (s Service) ContainerPorts() []string
- func (s Service) DefaultParams() string
- func (s Service) DeploymentMaximum() string
- func (s Service) DeploymentMinimum() string
- func (s Service) ExternalPorts() []Port
- func (s Service) ExtraHostsMap() map[string]string
- func (s Service) HasBalancer() bool
- func (s Service) InternalPorts() []Port
- func (s Service) IsAgent() bool
- func (s Service) LabelDefault(label, def string) string
- func (s Service) LabelsByPrefix(prefix string) map[string]string
- func (s Service) MountableVolumes() []MountableVolume
- func (s *Service) NetworkName() string
- func (s Service) ParamName(name string) string
- func (s *Service) Process(app string, m Manifest) Process
- func (s *Service) Proxies(app string) []Proxy
- func (s *Service) Randoms() map[string]int
- func (s Service) RegistryImage(appName, buildId string, outputs map[string]string) string
- func (s *Service) SyncPaths() (map[string]string, error)
- func (s Service) TCPPorts() []Port
- func (s *Service) Tag(appName string) string
- func (s Service) UDPPorts() []Port
- func (s Service) UseSecureEnvironment() bool
- type Services
- type Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var ManifestRandomPorts = true
Functions ¶
func DockerHostExposedPorts ¶
Types ¶
type ArgOptions ¶
type Build ¶
type Build struct {
Context string `yaml:"context,omitempty"`
Dockerfile string `yaml:"dockerfile,omitempty"`
Args map[string]string `yaml:"args,omitempty"`
}
see yaml.go for unmarshallers
func (*Build) UnmarshalYAML ¶
UnmarshalYAML implements the Unmarshaller interface.
type BuildOptions ¶
type Command ¶
Command represents the command docker will run either in string or array of strings
func (Command) MarshalYAML ¶
MarshalYAML implements the Marshaller interface for the Command type
func (*Command) UnmarshalYAML ¶
type Environment ¶
type Environment []EnvironmentItem
Environment is a service's default environment
func (Environment) Len ¶
func (ee Environment) Len() int
func (Environment) Less ¶
func (ee Environment) Less(i, j int) bool
func (Environment) MarshalYAML ¶
func (ee Environment) MarshalYAML() (interface{}, error)
MarshalYAML implements the Marshaller interface for the Environment type
func (Environment) Swap ¶
func (ee Environment) Swap(i, j int)
func (*Environment) UnmarshalYAML ¶
func (e *Environment) UnmarshalYAML(unmarshal func(interface{}) error) error