pub struct DaemonBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> DaemonBuilder<S>
impl<S: State> DaemonBuilder<S>
Sourcepub fn build(self) -> Daemonwhere
S: IsComplete,
pub fn build(self) -> Daemonwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn health_check(
self,
value: HealthCheck,
) -> DaemonBuilder<SetHealthCheck<S>>where
S::HealthCheck: IsUnset,
pub fn health_check(
self,
value: HealthCheck,
) -> DaemonBuilder<SetHealthCheck<S>>where
S::HealthCheck: IsUnset,
Sourcepub fn maybe_health_check(
self,
value: Option<HealthCheck>,
) -> DaemonBuilder<SetHealthCheck<S>>where
S::HealthCheck: IsUnset,
pub fn maybe_health_check(
self,
value: Option<HealthCheck>,
) -> DaemonBuilder<SetHealthCheck<S>>where
S::HealthCheck: IsUnset,
Sourcepub fn cluster(self, value: String) -> DaemonBuilder<SetCluster<S>>where
S::Cluster: IsUnset,
pub fn cluster(self, value: String) -> DaemonBuilder<SetCluster<S>>where
S::Cluster: IsUnset,
Sourcepub fn maybe_cluster(
self,
value: Option<String>,
) -> DaemonBuilder<SetCluster<S>>where
S::Cluster: IsUnset,
pub fn maybe_cluster(
self,
value: Option<String>,
) -> DaemonBuilder<SetCluster<S>>where
S::Cluster: IsUnset,
Sourcepub fn permissions(self, value: String) -> DaemonBuilder<SetPermissions<S>>where
S::Permissions: IsUnset,
pub fn permissions(self, value: String) -> DaemonBuilder<SetPermissions<S>>where
S::Permissions: IsUnset,
Sourcepub fn maybe_permissions(
self,
value: Option<String>,
) -> DaemonBuilder<SetPermissions<S>>where
S::Permissions: IsUnset,
pub fn maybe_permissions(
self,
value: Option<String>,
) -> DaemonBuilder<SetPermissions<S>>where
S::Permissions: IsUnset,
Sourcepub fn code(self, value: DaemonCode) -> DaemonBuilder<SetCode<S>>where
S::Code: IsUnset,
pub fn code(self, value: DaemonCode) -> DaemonBuilder<SetCode<S>>where
S::Code: IsUnset,
Required.
Sourcepub fn cpu(self, value: ResourceSpec) -> DaemonBuilder<SetCpu<S>>where
S::Cpu: IsUnset,
pub fn cpu(self, value: ResourceSpec) -> DaemonBuilder<SetCpu<S>>where
S::Cpu: IsUnset,
Sourcepub fn maybe_cpu(self, value: Option<ResourceSpec>) -> DaemonBuilder<SetCpu<S>>where
S::Cpu: IsUnset,
pub fn maybe_cpu(self, value: Option<ResourceSpec>) -> DaemonBuilder<SetCpu<S>>where
S::Cpu: IsUnset,
Sourcepub fn memory(self, value: ResourceSpec) -> DaemonBuilder<SetMemory<S>>where
S::Memory: IsUnset,
pub fn memory(self, value: ResourceSpec) -> DaemonBuilder<SetMemory<S>>where
S::Memory: IsUnset,
Sourcepub fn maybe_memory(
self,
value: Option<ResourceSpec>,
) -> DaemonBuilder<SetMemory<S>>where
S::Memory: IsUnset,
pub fn maybe_memory(
self,
value: Option<ResourceSpec>,
) -> DaemonBuilder<SetMemory<S>>where
S::Memory: IsUnset,
Sourcepub fn pool(self, value: String) -> DaemonBuilder<SetPool<S>>where
S::Pool: IsUnset,
pub fn pool(self, value: String) -> DaemonBuilder<SetPool<S>>where
S::Pool: IsUnset,
Sourcepub fn maybe_pool(self, value: Option<String>) -> DaemonBuilder<SetPool<S>>where
S::Pool: IsUnset,
pub fn maybe_pool(self, value: Option<String>) -> DaemonBuilder<SetPool<S>>where
S::Pool: IsUnset,
Sourcepub fn command(self, value: Vec<String>) -> DaemonBuilder<SetCommand<S>>where
S::Command: IsUnset,
pub fn command(self, value: Vec<String>) -> DaemonBuilder<SetCommand<S>>where
S::Command: IsUnset,
Sourcepub fn maybe_command(
self,
value: Option<Vec<String>>,
) -> DaemonBuilder<SetCommand<S>>where
S::Command: IsUnset,
pub fn maybe_command(
self,
value: Option<Vec<String>>,
) -> DaemonBuilder<SetCommand<S>>where
S::Command: IsUnset,
Sourcepub fn stop_grace_period_seconds(
self,
value: u32,
) -> DaemonBuilder<SetStopGracePeriodSeconds<S>>where
S::StopGracePeriodSeconds: IsUnset,
pub fn stop_grace_period_seconds(
self,
value: u32,
) -> DaemonBuilder<SetStopGracePeriodSeconds<S>>where
S::StopGracePeriodSeconds: IsUnset,
Sourcepub fn maybe_stop_grace_period_seconds(
self,
value: Option<u32>,
) -> DaemonBuilder<SetStopGracePeriodSeconds<S>>where
S::StopGracePeriodSeconds: IsUnset,
pub fn maybe_stop_grace_period_seconds(
self,
value: Option<u32>,
) -> DaemonBuilder<SetStopGracePeriodSeconds<S>>where
S::StopGracePeriodSeconds: IsUnset,
Sourcepub fn priority(self, value: WorkloadPriority) -> DaemonBuilder<SetPriority<S>>where
S::Priority: IsUnset,
pub fn priority(self, value: WorkloadPriority) -> DaemonBuilder<SetPriority<S>>where
S::Priority: IsUnset,
Sourcepub fn maybe_priority(
self,
value: Option<WorkloadPriority>,
) -> DaemonBuilder<SetPriority<S>>where
S::Priority: IsUnset,
pub fn maybe_priority(
self,
value: Option<WorkloadPriority>,
) -> DaemonBuilder<SetPriority<S>>where
S::Priority: IsUnset,
Sourcepub fn runtime(self, value: DaemonRuntime) -> DaemonBuilder<SetRuntime<S>>where
S::Runtime: IsUnset,
pub fn runtime(self, value: DaemonRuntime) -> DaemonBuilder<SetRuntime<S>>where
S::Runtime: IsUnset,
Sourcepub fn maybe_runtime(
self,
value: Option<DaemonRuntime>,
) -> DaemonBuilder<SetRuntime<S>>where
S::Runtime: IsUnset,
pub fn maybe_runtime(
self,
value: Option<DaemonRuntime>,
) -> DaemonBuilder<SetRuntime<S>>where
S::Runtime: IsUnset,
Sourcepub fn security(self, value: ContainerSecurity) -> DaemonBuilder<SetSecurity<S>>where
S::Security: IsUnset,
pub fn security(self, value: ContainerSecurity) -> DaemonBuilder<SetSecurity<S>>where
S::Security: IsUnset,
Sourcepub fn maybe_security(
self,
value: Option<ContainerSecurity>,
) -> DaemonBuilder<SetSecurity<S>>where
S::Security: IsUnset,
pub fn maybe_security(
self,
value: Option<ContainerSecurity>,
) -> DaemonBuilder<SetSecurity<S>>where
S::Security: IsUnset,
Sourcepub fn environment(
self,
value: HashMap<String, String>,
) -> DaemonBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn environment(
self,
value: HashMap<String, String>,
) -> DaemonBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Sourcepub fn maybe_environment(
self,
value: Option<HashMap<String, String>>,
) -> DaemonBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn maybe_environment(
self,
value: Option<HashMap<String, String>>,
) -> DaemonBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Sourcepub fn commands_enabled(
self,
value: bool,
) -> DaemonBuilder<SetCommandsEnabled<S>>where
S::CommandsEnabled: IsUnset,
pub fn commands_enabled(
self,
value: bool,
) -> DaemonBuilder<SetCommandsEnabled<S>>where
S::CommandsEnabled: IsUnset,
Sourcepub fn maybe_commands_enabled(
self,
value: Option<bool>,
) -> DaemonBuilder<SetCommandsEnabled<S>>where
S::CommandsEnabled: IsUnset,
pub fn maybe_commands_enabled(
self,
value: Option<bool>,
) -> DaemonBuilder<SetCommandsEnabled<S>>where
S::CommandsEnabled: IsUnset,
Sourcepub fn commands_capability_file(
self,
value: bool,
) -> DaemonBuilder<SetCommandsCapabilityFile<S>>where
S::CommandsCapabilityFile: IsUnset,
pub fn commands_capability_file(
self,
value: bool,
) -> DaemonBuilder<SetCommandsCapabilityFile<S>>where
S::CommandsCapabilityFile: IsUnset,
Optional (Some / Option setters).
Default: false.
Set by alien build when the daemon’s command receiver reads its
credential from ALIEN_COMMANDS_CAPABILITY_FILE. Absent means the
receiver may be older, so a deployer that rotates credentials keeps
the long-lived ALIEN_COMMANDS_TOKEN for it. Build output replaces any
value written in the stack definition.
Sourcepub fn maybe_commands_capability_file(
self,
value: Option<bool>,
) -> DaemonBuilder<SetCommandsCapabilityFile<S>>where
S::CommandsCapabilityFile: IsUnset,
pub fn maybe_commands_capability_file(
self,
value: Option<bool>,
) -> DaemonBuilder<SetCommandsCapabilityFile<S>>where
S::CommandsCapabilityFile: IsUnset,
Optional (Some / Option setters).
Default: false.
Set by alien build when the daemon’s command receiver reads its
credential from ALIEN_COMMANDS_CAPABILITY_FILE. Absent means the
receiver may be older, so a deployer that rotates credentials keeps
the long-lived ALIEN_COMMANDS_TOKEN for it. Build output replaces any
value written in the stack definition.