Skip to main content

CloudCliStatusV1

Struct CloudCliStatusV1 

Source
pub struct CloudCliStatusV1 {
Show 21 fields pub available: bool, pub connected: bool, pub instance: Option<CloudStatusInstanceV1>, pub org: Option<CloudStatusOrgV1>, pub last_seen: Option<UtcTimestamp>, pub url: String, pub drafts: CloudStatusDraftsV1, pub filter_packs: Vec<CloudStatusFilterPackV1>, pub policy_refusal: Option<String>, pub web_url: Option<String>, pub bus_controls: Vec<CloudStatusBusControlV1>, pub bus_controls_inactive: Option<CloudBusControlsInactiveV1>, pub metrics_v2: Option<CloudStatusMetricsV2>, pub vault_mismatch: Option<CloudStatusVaultMismatchV1>, pub managed: Option<CloudStatusManagedV1>, pub team_stop: Option<Option<CloudStatusTeamStopV1>>, pub role: Option<String>, pub org_slug: Option<String>, pub company: Option<CloudStatusCompanyV1>, pub step_up_url: Option<String>, pub user: Option<CloudStatusUserV1>,
}
Expand description

Output of lean-ctx cloud status --json. null fields are printed.

Fields§

§available: bool

The engine build has the Cloud connector.

§connected: bool

Enrolled and the lease is not lapsed.

§instance: Option<CloudStatusInstanceV1>§org: Option<CloudStatusOrgV1>§last_seen: Option<UtcTimestamp>

Last successful exchange with Cloud.

§url: String

Cloud web origin (the configured [cloud] url, default hosted).

§drafts: CloudStatusDraftsV1

1.2.

§filter_packs: Vec<CloudStatusFilterPackV1>

1.2.

§policy_refusal: Option<String>

1.2: why the newest policy bundle was refused (the last verified one stays).

§web_url: Option<String>

1.3: origin of the LeanCTX Cloud web app (its “Open” link): the one enrollment named, else url.

§bus_controls: Vec<CloudStatusBusControlV1>

1.5: bus controls in force. Left out when empty, so readers of earlier shapes see unchanged output.

§bus_controls_inactive: Option<CloudBusControlsInactiveV1>

1.5: why recorded controls do not apply; left out when they do or none are recorded.

§metrics_v2: Option<CloudStatusMetricsV2>

Engine metrics v2 (telemetry SPEC §4); left out when not connected.

§vault_mismatch: Option<CloudStatusVaultMismatchV1>

1.6: the project here was resolved to a vault its link file or its identity no longer backs. Left out when they agree, so readers of earlier shapes see unchanged output.

§managed: Option<CloudStatusManagedV1>

1.7: this machine carries a managed configuration (leanctx.managed-config/v1). Left out when it carries none, so readers of earlier shapes see unchanged output.

§team_stop: Option<Option<CloudStatusTeamStopV1>>

1.8: the team stop (kill switch) as the Cloud last answered it. Left out when not connected or the Cloud does not offer it, so readers of earlier shapes see unchanged output; null (Some(None)) when connected but no answer is kept yet, so nothing reads as “running”.

§role: Option<String>

1.8: the linked person’s acting role in the team (the Cloud’s word).

§org_slug: Option<String>

1.8: the team’s slug (what cloud stop --release --confirm names).

§company: Option<CloudStatusCompanyV1>

1.8: the person’s standing in the team’s company, when the Cloud names it.

§step_up_url: Option<String>

1.8: the browser page that confirms a release (admin, two-factor); only while the team is stopped and this person may release it.

§user: Option<CloudStatusUserV1>

1.9 (rc3-9): the linked account as the Cloud’s instance card names it; absent before the first card, after a disconnect and from older Clouds.

Implementations§

Source§

impl CloudCliStatusV1

Source

pub fn not_connected(url: Option<&str>) -> Self

Status of an engine that was never connected.

Trait Implementations§

Source§

impl Clone for CloudCliStatusV1

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CloudCliStatusV1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CloudCliStatusV1

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for CloudCliStatusV1

Source§

impl PartialEq for CloudCliStatusV1

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CloudCliStatusV1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CloudCliStatusV1

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.