pub struct HealthcheckConfig {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl HealthcheckConfig
impl HealthcheckConfig
Sourcepub async fn id(&self) -> Result<HealthcheckConfigId, DaggerError>
pub async fn id(&self) -> Result<HealthcheckConfigId, DaggerError>
A unique identifier for this HealthcheckConfig.
Sourcepub async fn interval(&self) -> Result<String, DaggerError>
pub async fn interval(&self) -> Result<String, DaggerError>
Interval between running healthcheck. Example:30s
Sourcepub async fn retries(&self) -> Result<isize, DaggerError>
pub async fn retries(&self) -> Result<isize, DaggerError>
The maximum number of consecutive failures before the container is marked as unhealthy. Example:3
Sourcepub async fn shell(&self) -> Result<bool, DaggerError>
pub async fn shell(&self) -> Result<bool, DaggerError>
Healthcheck command is a shell command.
Sourcepub async fn start_interval(&self) -> Result<String, DaggerError>
pub async fn start_interval(&self) -> Result<String, DaggerError>
StartInterval configures the duration between checks during the startup phase. Example:5s
Sourcepub async fn start_period(&self) -> Result<String, DaggerError>
pub async fn start_period(&self) -> Result<String, DaggerError>
StartPeriod allows for failures during this initial startup period which do not count towards maximum number of retries. Example:0s
Sourcepub async fn timeout(&self) -> Result<String, DaggerError>
pub async fn timeout(&self) -> Result<String, DaggerError>
Healthcheck timeout. Example:3s
Trait Implementations§
Source§impl Clone for HealthcheckConfig
impl Clone for HealthcheckConfig
Source§fn clone(&self) -> HealthcheckConfig
fn clone(&self) -> HealthcheckConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl IntoID<HealthcheckConfigId> for HealthcheckConfig
impl IntoID<HealthcheckConfigId> for HealthcheckConfig
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<HealthcheckConfigId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for HealthcheckConfig
impl !RefUnwindSafe for HealthcheckConfig
impl Send for HealthcheckConfig
impl Sync for HealthcheckConfig
impl Unpin for HealthcheckConfig
impl UnsafeUnpin for HealthcheckConfig
impl !UnwindSafe for HealthcheckConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more