Versions in this module Expand all Collapse all v0 v0.2.5 Nov 13, 2025 v0.2.4 Nov 9, 2025 Changes in this version + func FormatDiff(plan *Plan) string + type ActionType string + const ActionCreate + const ActionDelete + const ActionNone + const ActionUpdate + type ConfigAction struct + Action ActionType + ConfigID string + Data []byte + Labels map[string]string + Name string + type CurrentState struct + Configs map[string]swarm.Config + Networks map[string]swarm.Network + Secrets map[string]swarm.Secret + Services map[string]swarm.Service + Volumes map[string]struct{} + type DesiredState struct + Configs map[string]*compose.Config + Networks map[string]*compose.Network + Secrets map[string]*compose.Secret + Services map[string]*compose.Service + Volumes map[string]*compose.Volume + func BuildDesiredState(composeFile *compose.ComposeFile) *DesiredState + type NetworkAction struct + Action ActionType + Driver string + Labels map[string]string + Name string + NetworkID string + type Plan struct + Configs []ConfigAction + Networks []NetworkAction + OrphanedConfigs []string + OrphanedNetworks []string + OrphanedSecrets []string + OrphanedServices []string + OrphanedVolumes []string + Secrets []SecretAction + Services []ServiceAction + StackName string + Volumes []VolumeAction + func (p *Plan) IsEmpty() bool + type Planner struct + func NewPlanner(cli *client.Client, stackName string) *Planner + func (p *Planner) CreatePlan(ctx context.Context, current *CurrentState, desired *DesiredState) (*Plan, error) + type SecretAction struct + Action ActionType + Data []byte + Labels map[string]string + Name string + SecretID string + type ServiceAction struct + Action ActionType + Changes []string + CurrentMeta *swarm.Meta + CurrentSpec *swarm.ServiceSpec + DesiredSpec *swarm.ServiceSpec + Name string + ServiceID string + type VolumeAction struct + Action ActionType + Driver string + Labels map[string]string + Name string + VolumeID string