manifest1

package
v0.0.0-...-3fc6cc6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Docker = func(args ...string) *exec.Cmd {
	return exec.Command("docker", args...)
}
View Source
var ManifestRandomPorts = true
View Source
var StaticColors = map[string]color.Attribute{
	"convox": color.FgWhite,
	"build":  color.FgWhite,
}

Functions

func DockerHostExposedPorts

func DockerHostExposedPorts() ([]int, error)

func RunAsync

func RunAsync(s Stream, cmd *exec.Cmd, done chan error, opts RunnerOptions)

RunAsync runs a command asynchronously and streams the output

func UpperName

func UpperName(name string) string

Types

type ArgOptions

type ArgOptions struct {
	Command     string
	IgnorePorts bool
	Name        string
}

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) Hash

func (b *Build) Hash() string

Hash returns a string suitable for using as a map key

func (*Build) UnmarshalYAML

func (b *Build) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaller interface.

type BuildOptions

type BuildOptions struct {
	Cache       bool
	Environment map[string]string
	Service     string
	Verbose     bool
}

type Command

type Command struct {
	String string   `yaml:"-"`
	Array  []string `yaml:"-"`
}

Command represents the command docker will run either in string or array of strings

func (Command) MarshalYAML

func (c Command) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface for the Command type

func (*Command) UnmarshalYAML

func (c *Command) UnmarshalYAML(unmarshal func(interface{}) error) error

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

type EnvironmentItem

type EnvironmentItem struct {
	Name   string
	Value  string
	Needed