pub struct ExtensionManifest {
pub name: String,
pub version: String,
pub digest: String,
pub resource_types: IndexMap<ResourceType, ResourceTypeDescriptor>,
pub egress: Vec<String>,
}Expand description
An extension a stack uses, and the resource types it defines.
Fields§
§name: StringThe extension’s name, the first part of each type it defines, such as “acme”.
version: StringThe extension’s version.
digest: StringThe sha256 digest of the extension’s bundle. Every loader checks the bundle against it.
resource_types: IndexMap<ResourceType, ResourceTypeDescriptor>The resource types the extension defines, keyed by type name, such as “acme/dns-zone”.
egress: Vec<String>The origins (https://host[:port]) the extension’s controllers may call besides its
cloud, as its bundle declares them. The setup template shows them to the customer.
Implementations§
Source§impl ExtensionManifest
impl ExtensionManifest
Sourcepub fn owner_of(resource_type: &ResourceType) -> Option<&str>
pub fn owner_of(resource_type: &ResourceType) -> Option<&str>
The extension that can define resource_type: the type’s first part, as acme in
acme/dns-zone. The name prefixes every type an extension adds.
Sourcepub fn owns(&self, resource_type: &ResourceType) -> bool
pub fn owns(&self, resource_type: &ResourceType) -> bool
Whether this extension can define resource_type.
Sourcepub fn identity_id(&self) -> String
pub fn identity_id(&self) -> String
The id of the setup-owned identity the extension’s controllers run as, such as “acme-ext”. Short, since cloud identity names carry the deployment’s prefix and GCP caps a service account’s at 30 characters.
Trait Implementations§
Source§impl Clone for ExtensionManifest
impl Clone for ExtensionManifest
Source§impl Debug for ExtensionManifest
impl Debug for ExtensionManifest
Source§impl<'de> Deserialize<'de> for ExtensionManifest
impl<'de> Deserialize<'de> for ExtensionManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ExtensionManifest
Source§impl PartialEq for ExtensionManifest
impl PartialEq for ExtensionManifest
Source§impl Serialize for ExtensionManifest
impl Serialize for ExtensionManifest
impl StructuralPartialEq for ExtensionManifest
Auto Trait Implementations§
impl Forget for ExtensionManifest
impl Freeze for ExtensionManifest
impl Move for ExtensionManifest
impl RefUnwindSafe for ExtensionManifest
impl Send for ExtensionManifest
impl Sync for ExtensionManifest
impl Unpin for ExtensionManifest
impl UnsafeUnpin for ExtensionManifest
impl UnwindSafe for ExtensionManifest
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.