package
27.5.1+incompatible
Repository: https://github.com/docker/cli.git
Documentation: pkg.go.dev

# Functions

Autolock set the swarm into autolock mode.
Config creates a config with default values.
ConfigCreatedAt sets the creation time for the config.
ConfigData sets the config payload.
ConfigID sets the config's ID.
ConfigLabels sets the config's labels.
ConfigName sets the config's name.
ConfigUpdatedAt sets the update time for the config.
ConfigVersion sets the version for the config.
Container creates a container with default values.
EngineVersion sets the node's engine version.
GlobalService sets the service to use "global" mode.
Hostname sets the node hostname.
IP sets the ip of the port.
Leader sets the current node as a leader.
Manager set the current node as a manager.
ManagerStatus create a ManageStatus with default values.
NetworkResource creates a network resource with default values.
NetworkResourceDriver sets the driver of the resource network.
NetworkResourceID sets the ID of the resource network.
NetworkResourceName sets the name of the resource network.
NetworkResourceScope sets the Scope of the resource network.
Node creates a node with default values.
NodeID sets the node id.
NodeLabels sets the node labels.
NodeName sets the node name.
PortStatus sets the tasks port config status FIXME(vdemeester) should be a sub builder 👼.
ReplicatedService sets the service to use "replicated" mode with the specified number of replicas.
Secret creates a secret with default values.
SecretCreatedAt sets the creation time for the secret.
SecretDriver sets the secret's driver name.
SecretID sets the secret's ID.
SecretLabels sets the secret's labels.
SecretName sets the secret's name.
SecretUpdatedAt sets the update time for the secret.
SecretVersion sets the version for the secret.
Service creates a service with default values.
ServiceID sets the service ID.
ServiceImage sets the service's image.
ServiceLabels sets the service's labels.
ServiceName sets the service name.
ServicePort sets the service's port.
ServiceStatus sets the services' ServiceStatus (API v1.41 and above).
StatusErr sets the tasks status error.
Swarm creates a swarm with default values.
Task creates a task with default values .
TaskDesiredState sets the task's desired state.
TaskID sets the task ID.
TaskImage sets the task's image.
TaskName sets the task name.
TaskNodeID sets the task's node id.
TaskServiceID sets the task service's ID.
TaskSlot sets the task's slot.
TaskSpec creates a task spec with default values .
TaskState sets the task's current state.
TaskStatus creates a task status with default values .
TCP sets the port to tcp.
Timestamp sets the task status timestamp.
UDP sets the port to udp.
Volume creates a volume with default values.
VolumeDriver sets the volume driver.
VolumeLabels sets the volume labels.
VolumeName sets the volume labels.
WithLabel adds a label to the container.
WithName adds a name to the container.
WithPort adds a port mapping to the container.
WithSize adds size in bytes to the container.
WithStatus sets the task status.
WithTaskSpec sets the task spec.