# Functions
Architecture set the operating system constraint.
Command sets the command of the service.
ConfigExternal specifies that the config is external.
ConfigFile specifies the path of a config.
ConfigGID sets the gid of the config.
ConfigMode sets the mode of the config.
ConfigSource sets the source of the config.
ConfigTarget sets the target of the config.
ConfigUID sets the uid of the config.
ConstraintHostname set the operating system constraint.
Constraints sets the constraints to the placement.
CPUs sets the cup of the resource.
Daemonset creates a core Deployment as if owned by a stack.
Deploy sets the deploy config of the service.
Deployment creates a core Deployment as if owned by a stack.
Entrypoint sets the entrypoint of the service.
Healthcheck sets the healthcheck config of the service.
Hostname sets the hostname of the service.
Image specfies the image of the service.
Interval sets the interval duration of the healthcheck.
IPC sets the ipc mode of the service.
Limits sets the limits of the resources.
Memory sets the memory of the resource.
ModeGlobal sets the deploy mode to global.
Mount sets the volume type to mount.
OnFailure sets the restart policy to on-failure.
OperatingSystem set the operating system constraint.
Parallelism sets the parallelism of the update config.
PID sets the pid mode of the service.
Placement sets the placement of the deploy config.
Privileged sets the service to privileged.
ProtocolUDP set's the port's protocol.
Published sets the published port.
PullPolicy specifies the pull policy used for this service.
PullSecret specifies the name of the pull secret used for this service.
ReadOnly sets the service to read only.
Replicas sets the number of replicas of a deploy config.
Reservations sets the reservations of the resources.
Resources sets the resources of the deploy config.
RestartPolicy sets the restart policy of the deploy config.
Retries sets the number of retries of the healthcheck.
SecretFile specifies the path of a secret.
SecretSource sets the source of the secret.
SecretTarget sets the target of the secret.
Service creates a core Service as if owned by a stack.
Source sets the volume source.
Stack is a builder to create an Stack.
Statefulset creates a core Deployment as if owned by a stack.
StdinOpen sets the service's stdin opne to true.
StopGracePeriod specifies the stop-grace-period duration of a service.
Target sets the volume target.
Test sets the test commands of the healthcheck.
Timeout sets the timeout duration of the healthcheck.
Tty sets the service's tty to true.
Update sets the update config of a deploy config.
User specifies the user of a service.
Volume sets the volume type to volume.
VolumeReadOnly sets the volume to readonly.
WithCapAdd add a cap add to the service.
WithCapDrop adds a cap drop to the service.
WithConfig adds a config to the service.
WithConfigObjConfig add a ConfigConfig to to stack.
WithDeployLabel adds a label to the deploy config.
WithEnvironment adds an environment variable to the service.
WithExtraHost adds an extra host to the service.
WithInternalPort adds an internal port declaration.
WithLabel adds a label to a service.
WithMatchLabel adds the labels constraint to the constraint.
WithNamespace set the namespace of the stack.
WithPort adds a port config to the service.
WithSecret adds a secret to the service.
WithSecretConfig add a SecretConfig to to stack.
WithService adds a ServiceConifg to the stack.
WithTmpFS adds a path to the tmpfs of a service.
WithVolume adds a volume to the service.
WorkingDir sets the service's working folder.