Versions in this module Expand all Collapse all v1 v1.3.1 Feb 17, 2023 v1.3.0 Feb 16, 2023 v1.2.9 Feb 10, 2023 v1.2.8 Feb 10, 2023 v1.2.7 Feb 9, 2023 v1.2.6 Feb 3, 2023 Changes in this version + const RuntimeContainer + const RuntimeNetworkAttachment + const RuntimePlugin + const RuntimeURLContainer + const RuntimeURLPlugin + const UpdateFailureActionContinue + const UpdateFailureActionPause + const UpdateFailureActionRollback + const UpdateOrderStartFirst + const UpdateOrderStopFirst + type Annotations struct + Labels map[string]string + Name string + type CAConfig struct + ExternalCAs []*ExternalCA + ForceRotate uint64 + NodeCertExpiry time.Duration + SigningCACert string + SigningCAKey string + type ClusterInfo struct + DataPathPort uint32 + DefaultAddrPool []string + ID string + RootRotationInProgress bool + Spec Spec + SubnetSize uint32 + TLSInfo TLSInfo + type Config struct + ID string + Spec ConfigSpec + type ConfigReference struct + ConfigID string + ConfigName string + File *ConfigReferenceFileTarget + Runtime *ConfigReferenceRuntimeTarget + type ConfigReferenceFileTarget struct + GID string + Mode os.FileMode + Name string + UID string + type ConfigReferenceRuntimeTarget struct + type ConfigSpec struct + Data []byte + Templating *Driver + type ContainerSpec struct + Args []string + CapabilityAdd []string + CapabilityDrop []string + Command []string + Configs []*ConfigReference + DNSConfig *DNSConfig + Dir string + Env []string + Groups []string + Healthcheck *container.HealthConfig + Hostname string + Hosts []string + Image string + Init *bool + Isolation container.Isolation + Labels map[string]string + Mounts []mount.Mount + OpenStdin bool + Privileges *Privileges + ReadOnly bool + Secrets []*SecretReference + StopGracePeriod *time.Duration + StopSignal string + Sysctls map[string]string + TTY bool + Ulimits []*units.Ulimit + User string + type ContainerStatus struct + ContainerID string + ExitCode int + PID int + type CredentialSpec struct + Config string + File string + Registry string + type DNSConfig struct + Nameservers []string + Options []string + Search []string + type DiscreteGenericResource struct + Kind string + Value int64 + type DispatcherConfig struct + HeartbeatPeriod time.Duration + type Driver struct + Name string + Options map[string]string + type EncryptionConfig struct + AutoLockManagers bool + type Endpoint struct + Ports []PortConfig + Spec EndpointSpec + VirtualIPs []EndpointVirtualIP + type EndpointSpec struct + Mode ResolutionMode + Ports []PortConfig + type EndpointVirtualIP struct + Addr string + NetworkID string + type EngineDescription struct + EngineVersion string + Labels map[string]string + Plugins []PluginDescription + type ExternalCA struct + CACert string + Options map[string]string + Protocol ExternalCAProtocol + URL string + type ExternalCAProtocol string + const ExternalCAProtocolCFSSL + type GenericResource struct + DiscreteResourceSpec *DiscreteGenericResource + NamedResourceSpec *NamedGenericResource + type GlobalJob struct + type GlobalService struct + type IPAMConfig struct + Gateway string + Range string + Subnet string + type IPAMOptions struct + Configs []IPAMConfig + Driver Driver + type Info struct + Cluster *ClusterInfo + ControlAvailable bool + Error string + LocalNodeState LocalNodeState + Managers int + NodeAddr string + NodeID string + Nodes int + RemoteManagers []Peer + Warnings []string + type InitRequest struct + AdvertiseAddr string + AutoLockManagers bool + Availability NodeAvailability + DataPathAddr string + DataPathPort uint32 + DefaultAddrPool []string + ForceNewCluster bool + ListenAddr string + Spec Spec + SubnetSize uint32 + type JobStatus struct + JobIteration Version + LastExecution time.Time + type JoinRequest struct + AdvertiseAddr string + Availability NodeAvailability + DataPathAddr string + JoinToken string + ListenAddr string + RemoteAddrs []string + type JoinTokens struct + Manager string + Worker string + type Limit struct + MemoryBytes int64 + NanoCPUs int64 + Pids int64 + type LocalNodeState string + const LocalNodeStateActive + const LocalNodeStateError + const LocalNodeStateInactive + const LocalNodeStateLocked + const LocalNodeStatePending + type ManagerStatus struct + Addr string + Leader bool + Reachability Reachability + type Meta struct + CreatedAt time.Time + UpdatedAt time.Time + Version Version + type NamedGenericResource struct + Kind string + Value string + type Network struct + DriverState Driver + ID string + IPAMOptions *IPAMOptions + Spec NetworkSpec + type NetworkAttachment struct + Addresses []string + Network Network + type NetworkAttachmentConfig struct + Aliases []string + DriverOpts map[string]string + Target string + type NetworkAttachmentSpec struct + ContainerID string + type NetworkSpec struct + Attachable bool + ConfigFrom *network.ConfigReference + DriverConfiguration *Driver + IPAMOptions *IPAMOptions + IPv6Enabled bool + Ingress bool + Internal bool + Scope string + type Node struct + Description NodeDescription + ID string + ManagerStatus *ManagerStatus + Spec NodeSpec + Status NodeStatus + type NodeAvailability string + const NodeAvailabilityActive + const NodeAvailabilityDrain + const NodeAvailabilityPause + type NodeDescription struct + Engine EngineDescription + Hostname string + Platform Platform + Resources Resources + TLSInfo TLSInfo + type NodeRole string + const NodeRoleManager + const NodeRoleWorker + type NodeSpec struct + Availability NodeAvailability + Role NodeRole + type NodeState string + const NodeStateDisconnected + const NodeStateDown + const NodeStateReady + const NodeStateUnknown + type NodeStatus struct + Addr string + Message string + State NodeState + type OrchestrationConfig struct + TaskHistoryRetentionLimit *int64 + type Peer struct + Addr string + NodeID string + type Placement struct + Constraints []string + MaxReplicas uint64 + Platforms []Platform + Preferences []PlacementPreference + type PlacementPreference struct + Spread *SpreadOver + type Platform struct + Architecture string + OS string + type PluginDescription struct + Name string + Type string + type PortConfig struct + Name string + Protocol PortConfigProtocol + PublishMode PortConfigPublishMode + PublishedPort uint32 + TargetPort uint32 + type PortConfigProtocol string + const PortConfigProtocolSCTP + const PortConfigProtocolTCP + const PortConfigProtocolUDP + type PortConfigPublishMode string + const PortConfigPublishModeHost + const PortConfigPublishModeIngress + type PortStatus struct + Ports []PortConfig + type Privileges struct + CredentialSpec *CredentialSpec + SELinuxContext *SELinuxContext + type RaftConfig struct + ElectionTick int + HeartbeatTick int + KeepOldSnapshots *uint64 + LogEntriesForSlowFollowers uint64 + SnapshotInterval uint64 + type Reachability string + const ReachabilityReachable + const ReachabilityUnknown + const ReachabilityUnreachable + type ReplicatedJob struct + MaxConcurrent *uint64 + TotalCompletions *uint64 + type ReplicatedService struct + Replicas *uint64 + type ResolutionMode string + const ResolutionModeDNSRR + const ResolutionModeVIP + type ResourceRequirements struct + Limits *Limit + Reservations *Resources + type Resources struct + GenericResources []GenericResource + MemoryBytes int64 + NanoCPUs int64 + type RestartPolicy struct + Condition RestartPolicyCondition + Delay *time.Duration + MaxAttempts *uint64 + Window *time.Duration + type RestartPolicyCondition string + const RestartPolicyConditionAny + const RestartPolicyConditionNone + const RestartPolicyConditionOnFailure + type RuntimeType string + type RuntimeURL string + type SELinuxContext struct + Disable bool + Level string + Role string + Type string + User string + type Secret struct + ID string + Spec SecretSpec + type SecretReference struct + File *SecretReferenceFileTarget + SecretID string + SecretName string + type SecretReferenceFileTarget struct + GID string + Mode os.FileMode + Name string + UID string + type SecretSpec struct + Data []byte + Driver *Driver + Templating *Driver + type Service struct + Endpoint Endpoint + ID string + JobStatus *JobStatus + PreviousSpec *ServiceSpec + ServiceStatus *ServiceStatus + Spec ServiceSpec + UpdateStatus *UpdateStatus + type ServiceMode struct + Global *GlobalService + GlobalJob *GlobalJob + Replicated *ReplicatedService + ReplicatedJob *ReplicatedJob + type ServiceSpec struct + EndpointSpec *EndpointSpec + Mode ServiceMode + Networks []NetworkAttachmentConfig + RollbackConfig *UpdateConfig + TaskTemplate TaskSpec + UpdateConfig *UpdateConfig + type ServiceStatus struct + CompletedTasks uint64 + DesiredTasks uint64 + RunningTasks uint64 + type Spec struct + CAConfig CAConfig + Dispatcher DispatcherConfig + EncryptionConfig EncryptionConfig + Orchestration OrchestrationConfig + Raft RaftConfig + TaskDefaults TaskDefaults + type SpreadOver struct + SpreadDescriptor string + type Swarm struct + JoinTokens JoinTokens + type TLSInfo struct + CertIssuerPublicKey []byte + CertIssuerSubject []byte + TrustRoot string + type Task struct + DesiredState TaskState + GenericResources []GenericResource + ID string + JobIteration *Version + NetworksAttachments []NetworkAttachment + NodeID string + ServiceID string + Slot int + Spec TaskSpec + Status TaskStatus + type TaskDefaults struct + LogDriver *Driver + type TaskSpec struct + ContainerSpec *ContainerSpec + ForceUpdate uint64 + LogDriver *Driver + NetworkAttachmentSpec *NetworkAttachmentSpec + Networks []NetworkAttachmentConfig + Placement *Placement + PluginSpec *runtime.PluginSpec + Resources *ResourceRequirements + RestartPolicy *RestartPolicy + Runtime RuntimeType + type TaskState string + const TaskStateAccepted + const TaskStateAllocated + const TaskStateAssigned + const TaskStateComplete + const TaskStateFailed + const TaskStateNew + const TaskStateOrphaned + const TaskStatePending + const TaskStatePreparing + const TaskStateReady + const TaskStateRejected + const TaskStateRemove + const TaskStateRunning + const TaskStateShutdown + const TaskStateStarting + type TaskStatus struct + ContainerStatus *ContainerStatus + Err string + Message string + PortStatus PortStatus + State TaskState + Timestamp time.Time + type UnlockRequest struct + UnlockKey string + type UpdateConfig struct + Delay time.Duration + FailureAction string + MaxFailureRatio float32 + Monitor time.Duration + Order string + Parallelism uint64 + type UpdateFlags struct + RotateManagerToken bool + RotateManagerUnlockKey bool + RotateWorkerToken bool + type UpdateState string + const UpdateStateCompleted + const UpdateStatePaused + const UpdateStateRollbackCompleted + const UpdateStateRollbackPaused + const UpdateStateRollbackStarted + const UpdateStateUpdating + type UpdateStatus struct + CompletedAt *time.Time + Message string + StartedAt *time.Time + State UpdateState + type Version struct + Index uint64 v1.2.5 Sep 23, 2022 v1.2.4 Jul 9, 2022 v1.2.3 Jul 6, 2022 v1.2.2 Jun 20, 2022 v1.2.1 May 31, 2022 v1.2.0 May 26, 2022 v1.1.2 May 16, 2022 v1.1.1 May 9, 2022 v1.1.0 May 7, 2022 v1.0.9 May 7, 2022 v1.0.8 May 5, 2022