@quadnix/octo
Index
Decorators
Errors/Command
Errors/Container
Errors/Decorator
Errors/Definition
Errors/Event
Errors/Input
Errors/Module
Errors/Node
Errors/Rule
Errors/Schema
Errors/Terraform
Errors/Transaction
- AppLockError
- ApplyRefusedTransactionError
- DiffsOnDirtyResourcesTransactionError
- InputNotFoundTransactionError
- ModelActionExceptionTransactionError
- NoMatchingActionFoundTransactionError
- OverlayActionExceptionTransactionError
- PendingModulesTransactionError
- ResourceActionExceptionTransactionError
- ResourceActionTimeoutTransactionError
- ResponseNotFoundTransactionError
- StateNotFoundTransactionError
- TransactionError
- ValidateFailedTransactionError
- ValidationTransactionError
Events
Events/Action
Events/Command
Events/Hooks
Events/Hooks/Commit
Events/Hooks/Model
Events/Hooks/Resource
Events/Mode
Events/ModeResult
Events/Module
Events/Registration
Events/Rule
Events/Serialization
Events/State
Events/Terraform
Events/Transaction
Functions/Container
Functions/Dependency
Functions/Diff
Functions/Node
Functions/Schema
Main
Models
Models/Account
Models/App
Models/Deployment
Models/Environment
Models/Execution
Models/Filesystem
Models/Image
Models/Pipeline
Models/Region
Models/Server
Models/Service
Models/Subnet
Modules
Overlays
Resources
Services/State Management
Types
Utilities
Utilities/Hcl
Utilities/String
Utilities/Terraform
Events/Mode
OctoMode
Modules
TestModule
One module to load into a TestModuleContainer run.
Set hidden to register the module without running it - use it for a module a test needs
present but not applied, e.g. one that is only there to be found by a schema lookup.
Type parameters
- M: UnknownModule
optionalhidden
inputs
moduleId
type
Types
ActionOutputs
The resources an action declared, keyed by an ID of your choosing.
Type declaration
[key string]: UnknownResource
AnchorSchema
The schema of an anchor class.
Type parameters
- T
Constructable
The class of T, i.e. what you pass when an API wants a type rather than an instance.
Type parameters
- T
Type declaration
Parameters
rest...args: any[]
Returns T
DiffValueTypePropertyUpdate
The value of a Diff on a properties field: which property changed, and to what.
key
The property that changed.
value
Its new value.
DiffValueTypeTagUpdate
The value of a Diff on a tags field, split by what happened to each tag.
add
The tags added, with their values.
Type declaration
[key string]: string
delete
The keys of the tags removed.
update
The tags whose value changed, with their new values.
Type declaration
[key string]: string
EnhancedModuleSchema
Everything an action knows about the module it belongs to: the inputs it was loaded with, whatever AModule.registerMetadata derived, and the nodes the module produced.
This is the second argument of IModelAction.handle.
Type parameters
- T: UnknownModule
inputs
The inputs the module was loaded with, references resolved.
metadata
What the module's AModule.registerMetadata returned.
models
The models the module produced, by their key.
overlays
The overlays the module produced, by their key.
resources
The resources the module's actions produced so far, by their key.
ModuleSchema
The schema of a module class.
Type parameters
- T
ModuleSchemaInputs
A module's schema as the caller supplies it - properties with a default become optional. This is the shape Octo.loadModule accepts.
Type parameters
- T
OverlaySchema
The schema of an overlay class.
Type parameters
- T
ResourceSchema
The schema of a resource class.
Type parameters
- T
Utilities/Hcl
HclBlock
One parsed HCL block: each attribute by name, and each nested block by its type. An attribute holding
a quoted string is unquoted; any other value (a number, a list, a reference, a jsonencode(...) call)
is kept as the HCL text it was rendered as. A nested block repeated in its parent (two ingress
blocks) is an array.
The steps of the octo lifecycle.
Events/Mode