Documentation
¶
Index ¶
- type ApplyStackRequest
- type ContainerInfo
- type DiffAction
- type DiffResult
- type Manager
- func (m *Manager) ApplyStack(ctx context.Context, req *ApplyStackRequest) (string, error)
- func (m *Manager) DiffStack(ctx context.Context, stackName string, newContent string) (*DiffResult, error)
- func (m *Manager) GetStack(ctx context.Context, name string) (*Stack, error)
- func (m *Manager) ListStacks(ctx context.Context) ([]*Stack, error)
- func (m *Manager) RemoveStack(ctx context.Context, stackName string, removeVolumes bool) (string, error)
- type ServiceDiff
- type Stack
- type StackState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyStackRequest ¶
type ContainerInfo ¶
type DiffAction ¶
type DiffAction int
const ( DiffActionNone DiffAction = iota DiffActionCreate DiffActionUpdate DiffActionDelete )
type DiffResult ¶
type DiffResult struct {
Services []ServiceDiff
HasChanges bool
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) ApplyStack ¶
ApplyStack applies a compose file (create or update)
func (*Manager) DiffStack ¶
func (m *Manager) DiffStack(ctx context.Context, stackName string, newContent string) (*DiffResult, error)
DiffStack compares current stack with new compose content
func (*Manager) ListStacks ¶
ListStacks discovers all stacks in the stack root
type ServiceDiff ¶
type ServiceDiff struct {
Name string
Action DiffAction
Changes []string
}
type StackState ¶
type StackState int
const ( StateUnknown StackState = iota StateRunning StateStopped StateError StatePartial )
Click to show internal directories.
Click to hide internal directories.