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 ConvertToSwarmSpec(serviceName string, service *Service, stackName string) (*swarm.ServiceSpec, error) + type BuildConfig struct + Args map[string]string + CacheFrom []string + Context string + Dockerfile string + ExtraHosts []string + Labels map[string]string + Network string + ShmSize string + Target string + type ComposeFile struct + Configs map[string]*Config + Networks map[string]*Network + Secrets map[string]*Secret + Services map[string]*Service + Version string + Volumes map[string]*Volume + func ParseComposeFile(path string) (*ComposeFile, error) + type Config struct + External interface{} + File string + Labels map[string]string + type DeployConfig struct + EndpointMode string + Labels map[string]string + Mode string + Placement *Placement + Replicas *int + Resources *Resources + RestartPolicy *RestartPolicy + RollbackConfig *UpdateConfig + UpdateConfig *UpdateConfig + type DeviceRequest struct + Capabilities []string + Count int + DeviceIDs []string + Driver string + Options map[string]string + type DiscreteResourceSpec struct + Kind string + Value int64 + type GenericResource struct + DiscreteResourceSpec *DiscreteResourceSpec + type HealthCheck struct + Disable bool + Interval string + Retries int + StartPeriod string + Test interface{} + Timeout string + type IPAMConfig struct + Config []IPAMPool + Driver string + Options map[string]string + type IPAMPool struct + AuxAddress map[string]string + Gateway string + IPRange string + Subnet string + type LoggingConfig struct + Driver string + Options map[string]string + type Network struct + Attachable bool + Driver string + DriverOpts map[string]string + EnableIPv6 bool + External interface{} + IPAM *IPAMConfig + Internal bool + Labels map[string]string + type Placement struct + Constraints []string + MaxReplicas int + Platforms []Platform + Preferences []PlacementPreference + type PlacementPreference struct + Spread string + type Platform struct + Architecture string + OS string + type ResourceLimit struct + CPUs string + Devices []DeviceRequest + GenericResources []GenericResource + Memory string + Pids int64 + type Resources struct + Limits *ResourceLimit + Reservations *ResourceLimit + type RestartPolicy struct + Condition string + Delay string + MaxAttempts *int + Window string + type Secret struct + External interface{} + File string + Labels map[string]string + type Service struct + Build *BuildConfig + CapAdd []string + CapDrop []string + CgroupParent string + Command interface{} + Configs []interface{} + DNS interface{} + DNSOptions []string + DNSSearch interface{} + DependsOn interface{} + Deploy *DeployConfig + Devices []string + Domainname string + Entrypoint interface{} + EnvFile interface{} + Environment interface{} + Expose []interface{} + ExternalLinks []string + ExtraHosts []string + HealthCheck *HealthCheck + Hostname string + Image string + Init *bool + IpcMode string + Isolation string + Labels map[string]string + Links []string + Logging *LoggingConfig + MacAddress string + Networks interface{} + PidMode string + Ports []interface{} + Privileged bool + ReadOnly bool + Restart string + Secrets []interface{} + SecurityOpt []string + StdinOpen bool + StopGracePeriod string + StopSignal string + StorageOpt map[string]string + Sysctls interface{} + Tmpfs interface{} + Tty bool + Ulimits map[string]interface{} + User string + Volumes []interface{} + VolumesFrom []string + WorkingDir string + type UpdateConfig struct + Delay string + FailureAction string + MaxFailureRatio float64 + Monitor string + Order string + Parallelism int + type Volume struct + Driver string + DriverOpts map[string]string + External interface{} + Labels map[string]string