pub struct ContainerCodePackageProperties {Show 17 fields
pub name: String,
pub image: String,
pub image_registry_credential: Option<Box<ImageRegistryCredential>>,
pub entry_point: Option<String>,
pub commands: Option<Vec<String>>,
pub environment_variables: Option<Vec<EnvironmentVariable>>,
pub settings: Option<Vec<Setting>>,
pub labels: Option<Vec<ContainerLabel>>,
pub endpoints: Option<Vec<EndpointProperties>>,
pub resources: Box<ResourceRequirements>,
pub volume_refs: Option<Vec<VolumeReference>>,
pub volumes: Option<Vec<ApplicationScopedVolume>>,
pub diagnostics: Option<Box<DiagnosticsRef>>,
pub reliable_collections_refs: Option<Vec<ReliableCollectionsRef>>,
pub instance_view: Option<Box<ContainerInstanceView>>,
pub liveness_probe: Option<Vec<Probe>>,
pub readiness_probe: Option<Vec<Probe>>,
}Expand description
ContainerCodePackageProperties : Describes a container and its runtime properties.
Fields§
§name: StringThe name of the code package.
image: StringThe Container image to use.
image_registry_credential: Option<Box<ImageRegistryCredential>>§entry_point: Option<String>Override for the default entry point in the container.
commands: Option<Vec<String>>Command array to execute within the container in exec form.
environment_variables: Option<Vec<EnvironmentVariable>>The environment variables to set in this container
settings: Option<Vec<Setting>>The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
labels: Option<Vec<ContainerLabel>>The labels to set in this container.
endpoints: Option<Vec<EndpointProperties>>The endpoints exposed by this container.
resources: Box<ResourceRequirements>§volume_refs: Option<Vec<VolumeReference>>Volumes to be attached to the container. The lifetime of these volumes is independent of the application’s lifetime.
volumes: Option<Vec<ApplicationScopedVolume>>Volumes to be attached to the container. The lifetime of these volumes is scoped to the application’s lifetime.
diagnostics: Option<Box<DiagnosticsRef>>§reliable_collections_refs: Option<Vec<ReliableCollectionsRef>>A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
instance_view: Option<Box<ContainerInstanceView>>§liveness_probe: Option<Vec<Probe>>An array of liveness probes for a code package. It determines when to restart a code package.
readiness_probe: Option<Vec<Probe>>An array of readiness probes for a code package. It determines when to unpublish an endpoint.
Implementations§
Source§impl ContainerCodePackageProperties
impl ContainerCodePackageProperties
Sourcepub fn new(
name: String,
image: String,
resources: ResourceRequirements,
) -> ContainerCodePackageProperties
pub fn new( name: String, image: String, resources: ResourceRequirements, ) -> ContainerCodePackageProperties
Describes a container and its runtime properties.