Documentation
¶
Index ¶
Constants ¶
View Source
const FakeProjectName = "f-a-k-e"
FakeProjectName is a placeholder name for the project to be able to strip it from the resource names used as prefix.
View Source
const MachinesExtensionKey = "x-machines"
View Source
const PortsExtensionKey = "x-ports"
Variables ¶
This section is empty.
Functions ¶
func LoadProject ¶
func LoadProject(ctx context.Context, paths []string, opts ...composecli.ProjectOptionsFn) (*types.Project, error)
func ServiceSpecFromCompose ¶
Types ¶
type Deployment ¶
type Deployment struct {
Client Client
Project *types.Project
SpecResolver *deploy.ServiceSpecResolver
Strategy deploy.Strategy
// contains filtered or unexported fields
}
func NewDeployment ¶
func NewDeploymentWithStrategy ¶ added in v0.11.0
func (*Deployment) Plan ¶
func (d *Deployment) Plan(ctx context.Context) (deploy.SequenceOperation, error)
func (*Deployment) ServiceSpec ¶
func (d *Deployment) ServiceSpec(name string) (api.ServiceSpec, error)
ServiceSpec returns the service specification for the given compose service that is ready for deployment.
type MachinesSource ¶ added in v0.10.0
type MachinesSource []string
MachinesSource represents the parsed x-machines extension data as slice of strings
func (*MachinesSource) DecodeMapstructure ¶ added in v0.10.0
func (m *MachinesSource) DecodeMapstructure(value interface{}) error
DecodeMapstructure implements custom decoding for multiple input types
type PortsSource ¶
type PortsSource []string
Click to show internal directories.
Click to hide internal directories.