pub struct ServiceTaskSpecContainerSpecBuilder<___State = __ServiceTaskSpecContainerSpecBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Args, __Commands, __Configs, __Dir, __DnsConfig, __Env, __Groups, __Healthcheck, __Hostname, __Hosts, __Image, __Isolation, __Labels, __Mounts, __Privileges, __ReadOnly, __Secrets, __StopGracePeriod, __StopSignal, __Sysctl, __User> ServiceTaskSpecContainerSpecBuilder<(__Args, __Commands, __Configs, __Dir, __DnsConfig, __Env, __Groups, __Healthcheck, __Hostname, __Hosts, __Image, __Isolation, __Labels, __Mounts, __Privileges, __ReadOnly, __Secrets, __StopGracePeriod, __StopSignal, __Sysctl, __User)>
impl<__Args, __Commands, __Configs, __Dir, __DnsConfig, __Env, __Groups, __Healthcheck, __Hostname, __Hosts, __Image, __Isolation, __Labels, __Mounts, __Privileges, __ReadOnly, __Secrets, __StopGracePeriod, __StopSignal, __Sysctl, __User> ServiceTaskSpecContainerSpecBuilder<(__Args, __Commands, __Configs, __Dir, __DnsConfig, __Env, __Groups, __Healthcheck, __Hostname, __Hosts, __Image, __Isolation, __Labels, __Mounts, __Privileges, __ReadOnly, __Secrets, __StopGracePeriod, __StopSignal, __Sysctl, __User)>
sourcepub fn build_struct(self) -> ServiceTaskSpecContainerSpecwhere
__Args: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecContainerSpecBuilder__args>,
__Commands: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecContainerSpecBuilder__commands>,
__Configs: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecConfig>>>>, ServiceTaskSpecContainerSpecBuilder__configs>,
__Dir: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__dir>,
__DnsConfig: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecDnsConfig>>>, ServiceTaskSpecContainerSpecBuilder__dns_config>,
__Env: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ServiceTaskSpecContainerSpecBuilder__env>,
__Groups: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecContainerSpecBuilder__groups>,
__Healthcheck: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecHealthcheck>>>, ServiceTaskSpecContainerSpecBuilder__healthcheck>,
__Hostname: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__hostname>,
__Hosts: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecHost>>>>, ServiceTaskSpecContainerSpecBuilder__hosts>,
__Image: IntoSet<Box<String>, ServiceTaskSpecContainerSpecBuilder__image>,
__Isolation: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__isolation>,
__Labels: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecLabel>>>>, ServiceTaskSpecContainerSpecBuilder__labels>,
__Mounts: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecMount>>>>, ServiceTaskSpecContainerSpecBuilder__mounts>,
__Privileges: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecPrivileges>>>, ServiceTaskSpecContainerSpecBuilder__privileges>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecBuilder__read_only>,
__Secrets: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecSecret>>>>, ServiceTaskSpecContainerSpecBuilder__secrets>,
__StopGracePeriod: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__stop_grace_period>,
__StopSignal: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__stop_signal>,
__Sysctl: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ServiceTaskSpecContainerSpecBuilder__sysctl>,
__User: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__user>,
pub fn build_struct(self) -> ServiceTaskSpecContainerSpecwhere
__Args: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecContainerSpecBuilder__args>,
__Commands: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecContainerSpecBuilder__commands>,
__Configs: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecConfig>>>>, ServiceTaskSpecContainerSpecBuilder__configs>,
__Dir: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__dir>,
__DnsConfig: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecDnsConfig>>>, ServiceTaskSpecContainerSpecBuilder__dns_config>,
__Env: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ServiceTaskSpecContainerSpecBuilder__env>,
__Groups: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecContainerSpecBuilder__groups>,
__Healthcheck: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecHealthcheck>>>, ServiceTaskSpecContainerSpecBuilder__healthcheck>,
__Hostname: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__hostname>,
__Hosts: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecHost>>>>, ServiceTaskSpecContainerSpecBuilder__hosts>,
__Image: IntoSet<Box<String>, ServiceTaskSpecContainerSpecBuilder__image>,
__Isolation: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__isolation>,
__Labels: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecLabel>>>>, ServiceTaskSpecContainerSpecBuilder__labels>,
__Mounts: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecMount>>>>, ServiceTaskSpecContainerSpecBuilder__mounts>,
__Privileges: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecPrivileges>>>, ServiceTaskSpecContainerSpecBuilder__privileges>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecBuilder__read_only>,
__Secrets: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecSecret>>>>, ServiceTaskSpecContainerSpecBuilder__secrets>,
__StopGracePeriod: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__stop_grace_period>,
__StopSignal: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__stop_signal>,
__Sysctl: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ServiceTaskSpecContainerSpecBuilder__sysctl>,
__User: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecBuilder__user>,
Finishes building and returns the requested object.
sourcepub fn maybe_args(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Argswhere
__Args: IsUnset,
pub fn maybe_args(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Argswhere
__Args: IsUnset,
Same as [Self::r#args
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn args(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Argswhere
__Args: IsUnset,
pub fn args(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Argswhere
__Args: IsUnset,
Arguments to the command
sourcepub fn maybe_commands(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Commandswhere
__Commands: IsUnset,
pub fn maybe_commands(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Commandswhere
__Commands: IsUnset,
Same as [Self::r#commands
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn commands(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Commandswhere
__Commands: IsUnset,
pub fn commands(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Commandswhere
__Commands: IsUnset,
The command/entrypoint to be run in the image. According to the docker cli the override of the entrypoint is also passed to the command
property and there is no entrypoint
attribute in the ContainerSpec
of the service.
sourcepub fn maybe_configs(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecConfig>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Configswhere
__Configs: IsUnset,
pub fn maybe_configs(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecConfig>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Configswhere
__Configs: IsUnset,
Same as [Self::r#configs
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn configs(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecConfig>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Configswhere
__Configs: IsUnset,
pub fn configs(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecConfig>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Configswhere
__Configs: IsUnset,
References to zero or more configs that will be exposed to the service
sourcepub fn maybe_dir(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Dirwhere
__Dir: IsUnset,
pub fn maybe_dir(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Dirwhere
__Dir: IsUnset,
Same as [Self::r#dir
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn dir(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Dirwhere
__Dir: IsUnset,
pub fn dir(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Dirwhere
__Dir: IsUnset,
The working directory for commands to run in
sourcepub fn maybe_dns_config(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecDnsConfig>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::DnsConfigwhere
__DnsConfig: IsUnset,
pub fn maybe_dns_config(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecDnsConfig>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::DnsConfigwhere
__DnsConfig: IsUnset,
Same as [Self::r#dns_config
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn dns_config(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecDnsConfig>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::DnsConfigwhere
__DnsConfig: IsUnset,
pub fn dns_config(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecDnsConfig>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::DnsConfigwhere
__DnsConfig: IsUnset,
Specification for DNS related configurations in resolver configuration file (resolv.conf
)
sourcepub fn maybe_env(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Envwhere
__Env: IsUnset,
pub fn maybe_env(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Envwhere
__Env: IsUnset,
Same as [Self::r#env
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn env(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Envwhere
__Env: IsUnset,
pub fn env(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Envwhere
__Env: IsUnset,
A list of environment variables in the form VAR=“value”
sourcepub fn maybe_groups(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Groupswhere
__Groups: IsUnset,
pub fn maybe_groups(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Groupswhere
__Groups: IsUnset,
Same as [Self::r#groups
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn groups(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Groupswhere
__Groups: IsUnset,
pub fn groups(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Groupswhere
__Groups: IsUnset,
A list of additional groups that the container process will run as
sourcepub fn maybe_healthcheck(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecHealthcheck>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
pub fn maybe_healthcheck(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecHealthcheck>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
Same as [Self::r#healthcheck
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn healthcheck(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecHealthcheck>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
pub fn healthcheck(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecHealthcheck>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
A test to perform to check that the container is healthy
sourcepub fn maybe_hostname(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
pub fn maybe_hostname(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
Same as [Self::r#hostname
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn hostname(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
pub fn hostname(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
The hostname to use for the container, as a valid RFC 1123 hostname
sourcepub fn maybe_hosts(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecHost>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
pub fn maybe_hosts(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecHost>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
Same as [Self::r#hosts
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn hosts(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecHost>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
pub fn hosts(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecHost>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
A list of hostname/IP mappings to add to the container’s hosts file
sourcepub fn image(
self,
value: impl Into<Box<String>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Imagewhere
__Image: IsUnset,
pub fn image(
self,
value: impl Into<Box<String>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Imagewhere
__Image: IsUnset,
The image name to use for the containers of the service, like nginx:1.17.6
. Also use the data-source or resource of docker.RemoteImage
with the repo_digest
or docker.RegistryImage
with the name
attribute for this, as shown in the examples.
sourcepub fn maybe_isolation(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Isolationwhere
__Isolation: IsUnset,
pub fn maybe_isolation(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Isolationwhere
__Isolation: IsUnset,
Same as [Self::r#isolation
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn isolation(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Isolationwhere
__Isolation: IsUnset,
pub fn isolation(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Isolationwhere
__Isolation: IsUnset,
Isolation technology of the containers running the service. (Windows only). Defaults to default
.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecLabel>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecLabel>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Labelswhere
__Labels: IsUnset,
Same as [Self::r#labels
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn labels(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecLabel>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecLabel>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Labelswhere
__Labels: IsUnset,
User-defined key/value metadata
sourcepub fn maybe_mounts(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecMount>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
pub fn maybe_mounts(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecMount>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
Same as [Self::r#mounts
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn mounts(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecMount>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
pub fn mounts(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecMount>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
Specification for mounts to be added to containers created as part of the service
sourcepub fn maybe_privileges(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecPrivileges>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Privilegeswhere
__Privileges: IsUnset,
pub fn maybe_privileges(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecPrivileges>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Privilegeswhere
__Privileges: IsUnset,
Same as [Self::r#privileges
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn privileges(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecPrivileges>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Privilegeswhere
__Privileges: IsUnset,
pub fn privileges(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecPrivileges>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Privilegeswhere
__Privileges: IsUnset,
Security options for the container
sourcepub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
Same as [Self::r#read_only
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn read_only(
self,
value: impl Into<Box<Option<bool>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn read_only(
self,
value: impl Into<Box<Option<bool>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
Mount the container’s root filesystem as read only
sourcepub fn maybe_secrets(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecSecret>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Secretswhere
__Secrets: IsUnset,
pub fn maybe_secrets(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecSecret>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Secretswhere
__Secrets: IsUnset,
Same as [Self::r#secrets
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn secrets(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecSecret>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Secretswhere
__Secrets: IsUnset,
pub fn secrets(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecSecret>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Secretswhere
__Secrets: IsUnset,
References to zero or more secrets that will be exposed to the service
sourcepub fn maybe_stop_grace_period(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopGracePeriodwhere
__StopGracePeriod: IsUnset,
pub fn maybe_stop_grace_period(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopGracePeriodwhere
__StopGracePeriod: IsUnset,
Same as [Self::r#stop_grace_period
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn stop_grace_period(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopGracePeriodwhere
__StopGracePeriod: IsUnset,
pub fn stop_grace_period(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopGracePeriodwhere
__StopGracePeriod: IsUnset,
Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h). If not specified or ‘0s’ the destroy will not check if all tasks/containers of the service terminate.
sourcepub fn maybe_stop_signal(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
pub fn maybe_stop_signal(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
Same as [Self::r#stop_signal
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn stop_signal(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
pub fn stop_signal(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
Signal to stop the container
sourcepub fn maybe_sysctl(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Sysctlwhere
__Sysctl: IsUnset,
pub fn maybe_sysctl(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Sysctlwhere
__Sysctl: IsUnset,
Same as [Self::r#sysctl
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn sysctl(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Sysctlwhere
__Sysctl: IsUnset,
pub fn sysctl(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecBuilderSetMember>::Sysctlwhere
__Sysctl: IsUnset,
Sysctls config (Linux only)