pub struct DeploymentManifestV1 { /* private fields */ }Expand description
Contract describing one installation of an application.
Implementations§
Source§impl DeploymentManifestV1
impl DeploymentManifestV1
Sourcepub fn builder(
installation_id: InstallationId,
application_id: ApplicationId,
mode: RuntimeMode,
storage: ProviderConfig,
network: NetworkConfig,
) -> DeploymentManifestBuilder
pub fn builder( installation_id: InstallationId, application_id: ApplicationId, mode: RuntimeMode, storage: ProviderConfig, network: NetworkConfig, ) -> DeploymentManifestBuilder
Starts a deployment manifest builder.
Sourcepub fn manifest_version(&self) -> u16
pub fn manifest_version(&self) -> u16
Returns the manifest schema version.
Sourcepub fn installation_id(&self) -> &InstallationId
pub fn installation_id(&self) -> &InstallationId
Returns the installation identity.
Sourcepub fn application_id(&self) -> &ApplicationId
pub fn application_id(&self) -> &ApplicationId
Returns the installed application identity.
Sourcepub fn mode(&self) -> RuntimeMode
pub fn mode(&self) -> RuntimeMode
Returns the explicit runtime mode.
Sourcepub fn supervisor(&self) -> DeploymentSupervisorConfig
pub fn supervisor(&self) -> DeploymentSupervisorConfig
Returns installation-owned supervisor settings.
Sourcepub fn control_plane(&self) -> Option<&ProviderConfig>
pub fn control_plane(&self) -> Option<&ProviderConfig>
Returns the optional control-plane provider.
Sourcepub fn coordination_store(&self) -> Option<&ProviderConfig>
pub fn coordination_store(&self) -> Option<&ProviderConfig>
Returns the optional coordination-store provider.
Sourcepub fn secret_provider(&self) -> Option<&ProviderConfig>
pub fn secret_provider(&self) -> Option<&ProviderConfig>
Returns the optional installation secret provider.
Sourcepub fn job_provider(&self) -> Option<&ProviderConfig>
pub fn job_provider(&self) -> Option<&ProviderConfig>
Returns the optional durable job provider.
Sourcepub fn volumes(&self) -> &[VolumeMount]
pub fn volumes(&self) -> &[VolumeMount]
Returns volume mounts.
Sourcepub fn storage(&self) -> &ProviderConfig
pub fn storage(&self) -> &ProviderConfig
Returns the selected storage provider.
Sourcepub fn database(&self) -> Option<&ProviderConfig>
pub fn database(&self) -> Option<&ProviderConfig>
Returns the optional database provider.
Sourcepub fn update_provider(&self) -> Option<&ProviderConfig>
pub fn update_provider(&self) -> Option<&ProviderConfig>
Returns the optional update provider.
Sourcepub fn network(&self) -> &NetworkConfig
pub fn network(&self) -> &NetworkConfig
Returns installation network configuration.
Sourcepub fn peer_discovery(&self) -> Option<&ProviderConfig>
pub fn peer_discovery(&self) -> Option<&ProviderConfig>
Returns the optional peer-discovery provider.
Sourcepub fn adapters(&self) -> &BTreeMap<String, ProviderConfig>
pub fn adapters(&self) -> &BTreeMap<String, ProviderConfig>
Returns named adapters.
Sourcepub fn environment(&self) -> &BTreeMap<String, EnvironmentBinding>
pub fn environment(&self) -> &BTreeMap<String, EnvironmentBinding>
Returns environment bindings.
Sourcepub fn validate(&self) -> ContractResult<()>
pub fn validate(&self) -> ContractResult<()>
Validates mode invariants and rejects embedded secrets.
Trait Implementations§
Source§impl Clone for DeploymentManifestV1
impl Clone for DeploymentManifestV1
Source§fn clone(&self) -> DeploymentManifestV1
fn clone(&self) -> DeploymentManifestV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more