pub enum HookKind {
CloudformationModifier,
TerraformModifier,
HelmModifier,
CloudformationEmitter,
TerraformEmitter,
HelmEmitter,
Importer,
Link,
AwsInterceptor,
GcpInterceptor,
AzureInterceptor,
KubernetesInterceptor,
}Expand description
The kinds of hook a module can declare. A module that declares any other kind is refused at load, since no host could call that hook.
Variants§
CloudformationModifier
Changes the CloudFormation template Alien generates: a CfTemplate in, a CfTemplate out
TerraformModifier
Changes the Terraform module Alien generates: TemplateFiles in,
TerraformModifierOutput out
HelmModifier
Adds templates to the Helm chart Alien generates: TemplateFiles in,
HelmModifierOutput out
CloudformationEmitter
Writes a custom resource into a CloudFormation template: EmitInput in. Out, by
method: emit, the resources as [logicalId, CfResource] pairs; emitImportRef, a
CfExpression; emitBindingRef, a CfExpression or null
TerraformEmitter
Writes a custom resource into a Terraform module: EmitInput in. Out, by method:
emit, a TerraformFragment; emitImportRef, an HCL expression as text;
emitBindingRef, an HCL expression as text or null
HelmEmitter
Writes a custom resource into a Helm chart: EmitInput in, HelmFragmentOutput out
Importer
Turns what a setup template created into a custom resource’s controller state:
ImportInput in, ImportOutput out
Link
Says what a workload gets when it links a custom resource: the resource’s outputs in,
LinkOutput out
AwsInterceptor
Changes the requests Alien’s controllers send to AWS: InterceptorInput in,
InterceptorOutput out
GcpInterceptor
Changes the requests Alien’s controllers send to Google Cloud
AzureInterceptor
Changes the requests Alien’s controllers send to Azure
KubernetesInterceptor
Changes the requests Alien’s controllers send to Kubernetes
Trait Implementations§
impl Copy for HookKind
Source§impl<'de> Deserialize<'de> for HookKind
impl<'de> Deserialize<'de> for HookKind
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 HookKind
impl StructuralPartialEq for HookKind
Auto Trait Implementations§
impl Forget for HookKind
impl Freeze for HookKind
impl Move for HookKind
impl RefUnwindSafe for HookKind
impl Send for HookKind
impl Sync for HookKind
impl Unpin for HookKind
impl UnsafeUnpin for HookKind
impl UnwindSafe for HookKind
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.