pub struct SigningVerifier {
pub id: String,
}Expand description
A protected install’s verifier, <prefix>-verifier: the only principal that changes what
runs. Worker controllers hand it the cloud writes they build, and machine rolls go through
it; it checks them against the signed release before anything is written.
Setup creates it, and only setup changes it, so it is Frozen only. A preflight adds it to a stack with signing settings that has a function or a machine cluster; a stack can’t declare it, and its id is reserved.
Maps to:
- AWS: a Lambda function and its role
- GCP: a Cloud Run service and its service account
- Azure: a Container App in a managed environment of its own
Fields§
§id: StringIdentifier of the verifier, always SigningVerifier::ID.
Implementations§
Source§impl SigningVerifier
impl SigningVerifier
Sourcepub fn new(id: String) -> SigningVerifierBuilder
pub fn new(id: String) -> SigningVerifierBuilder
Create an instance of SigningVerifier using the builder syntax
Source§impl SigningVerifier
impl SigningVerifier
Sourcepub const RESOURCE_TYPE: ResourceType
pub const RESOURCE_TYPE: ResourceType
The resource type identifier for the verifier.
Trait Implementations§
Source§impl Clone for SigningVerifier
impl Clone for SigningVerifier
Source§impl Debug for SigningVerifier
impl Debug for SigningVerifier
Source§impl<'de> Deserialize<'de> for SigningVerifier
impl<'de> Deserialize<'de> for SigningVerifier
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SigningVerifier
Source§impl PartialEq for SigningVerifier
impl PartialEq for SigningVerifier
Source§impl ResourceDefinition for SigningVerifier
impl ResourceDefinition for SigningVerifier
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Returns the resource type for this instance
Source§fn get_dependencies(&self) -> Vec<ResourceRef>
fn get_dependencies(&self) -> Vec<ResourceRef>
Returns the list of other resources this resource depends on
Source§fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
Validates if an update from the current configuration to a new configuration is allowed
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Provides mutable access to the underlying concrete type for downcasting
Source§fn box_clone(&self) -> Box<dyn ResourceDefinition>
fn box_clone(&self) -> Box<dyn ResourceDefinition>
Creates a boxed clone of this resource definition
Source§fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
For equality comparison between resource definitions
Source§fn to_json_value(&self) -> Result<Value>
fn to_json_value(&self) -> Result<Value>
Serialize this resource to a JSON value (without the “type” tag - that’s added by Resource)
Source§fn get_permissions(&self) -> Option<&str>
fn get_permissions(&self) -> Option<&str>
Returns the permission profile name for this resource, if it has one. Read more
Source§fn replace_after_failed_create_is_safe(&self) -> bool
fn replace_after_failed_create_is_safe(&self) -> bool
Whether the executor may delete this resource and create it again when its create
failed and its config changed since. Read more
Source§fn with_empty_input_references_removed(
&self,
_inputs: &InputAnswers<'_>,
) -> Option<Box<dyn ResourceDefinition>>
fn with_empty_input_references_removed( &self, _inputs: &InputAnswers<'_>, ) -> Option<Box<dyn ResourceDefinition>>
Resolves the fields of this config that point at a deployer stack input. Read more
Source§impl Serialize for SigningVerifier
impl Serialize for SigningVerifier
impl StructuralPartialEq for SigningVerifier
Auto Trait Implementations§
impl Forget for SigningVerifier
impl Freeze for SigningVerifier
impl Move for SigningVerifier
impl RefUnwindSafe for SigningVerifier
impl Send for SigningVerifier
impl Sync for SigningVerifier
impl Unpin for SigningVerifier
impl UnsafeUnpin for SigningVerifier
impl UnwindSafe for SigningVerifier
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,
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
Compare self to
key and return true if they are equal.