pub struct SetupTarget {
pub deployment_platform: Platform,
pub cloud_platform: Platform,
}Expand description
Where a setup package installs: the platform the deployment runs on and the cloud its
infrastructure lives in. They differ for managed Kubernetes (an EKS, GKE or AKS cluster runs
on Kubernetes, in the Aws, Gcp or Azure cloud).
Every question about what a setup package emits and registers is answered from this, so the generators, the emitters and the manager’s registration check cannot disagree about it.
Fields§
§deployment_platform: PlatformThe platform the deployment runs on.
cloud_platform: PlatformThe cloud the setup’s infrastructure lives in.
Implementations§
Source§impl SetupTarget
impl SetupTarget
Sourcepub fn new(
deployment_platform: Platform,
base_platform: Option<Platform>,
) -> Self
pub fn new( deployment_platform: Platform, base_platform: Option<Platform>, ) -> Self
A target from a registration’s platform and basePlatform.
Sourcepub fn from_cloud(cloud_platform: Platform, targets_kubernetes: bool) -> Self
pub fn from_cloud(cloud_platform: Platform, targets_kubernetes: bool) -> Self
A target from the cloud and whether the setup installs onto a Kubernetes cluster in it.
pub fn is_kubernetes(&self) -> bool
Trait Implementations§
Source§impl Clone for SetupTarget
impl Clone for SetupTarget
impl Copy for SetupTarget
Source§impl Debug for SetupTarget
impl Debug for SetupTarget
impl Eq for SetupTarget
Source§impl PartialEq for SetupTarget
impl PartialEq for SetupTarget
impl StructuralPartialEq for SetupTarget
Auto Trait Implementations§
impl Forget for SetupTarget
impl Freeze for SetupTarget
impl Move for SetupTarget
impl RefUnwindSafe for SetupTarget
impl Send for SetupTarget
impl Sync for SetupTarget
impl Unpin for SetupTarget
impl UnsafeUnpin for SetupTarget
impl UnwindSafe for SetupTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.