pub struct Desired {Show 16 fields
pub name: String,
pub instance_type: InstanceType,
pub image: ImageSource,
pub pool: String,
pub profiles: Vec<String>,
pub config: Props,
pub devices: BTreeMap<String, DesiredDevice>,
pub volumes: Vec<EnsureVolume>,
pub owners: Vec<OwnerFixup>,
pub ready: Vec<ReadyCheck>,
pub ready_timeout: Duration,
pub exec: ExecDefaults,
pub idmap_mode: Option<IdmapMode>,
pub sensitive: BTreeSet<String>,
pub egress: Option<Plumbing>,
pub before_start: Option<BeforeStart>,
}Expand description
A spec resolved against the host: exactly what incus should hold.
Fields§
§name: String§instance_type: InstanceType§image: ImageSource§pool: String§profiles: Vec<String>§config: Props§devices: BTreeMap<String, DesiredDevice>Includes the root disk (create-only; never reconciled).
volumes: Vec<EnsureVolume>§owners: Vec<OwnerFixup>§ready: Vec<ReadyCheck>§ready_timeout: Duration§exec: ExecDefaults§idmap_mode: Option<IdmapMode>The idmap mode when the spec set one (not for {raw: ...}): an absent
raw.idmap is then a decision, not an omission.
sensitive: BTreeSet<String>Config keys holding secret values (environment.KEY from
{secret: NAME}): set, but never shown in plans or reports.
egress: Option<Plumbing>The egress plumbing the spec asks for (egress:).
before_start: Option<BeforeStart>Run on an instance this apply created, before its first start: an OCI app reads its secret files as it starts, and a container’s files can be written while it is stopped.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Desired
impl !UnwindSafe for Desired
impl Freeze for Desired
impl Send for Desired
impl Sync for Desired
impl Unpin for Desired
impl UnsafeUnpin for Desired
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