Expand description
Core types and traits used to create and work with flowey nodes.
Modules§
- erased
- steps
- user_
facing - Node types which are considered “user facing”, and re-exported in the
flowey
crate.
Structs§
- GhOutput
- GhTo
Rust - GhUser
Secret Var - Read a custom, user-defined secret by passing in the secret name.
- Import
Ctx - Context passed to
FlowNode::imports
. - NodeCtx
- Context object for a
FlowNode
. - Node
Handle - Cheap handle to a registered
FlowNode
- ReadVar
- Read a value from a flowey Var at runtime, returning the value written by
the Var’s corresponding
WriteVar
. - Rust
ToGh - StepCtx
- Context object for an individual step.
- Write
Var - Write a value into a flowey Var at runtime, which can then be read via a
corresponding
ReadVar
.
Enums§
- CtxAnchor
- Flow
Arch - What architecture the flow is being running on.
- Flow
Backend - What backend the flow is being running on.
- Flow
Platform - What platform the flow is being running on.
- Flow
Platform Kind - The kind platform the flow is being running on, Windows or Unix.
- Flow
Platform Linux Distro - The kind platform the flow is being running on, Windows or Unix.
- VarClaimed
- Uninhabited type used to denote that a particular
WriteVar
/ReadVar
is currently claimed by a step, and can be read/written to. - VarNot
Claimed - Uninhabited type used to denote that a particular
WriteVar
/ReadVar
is not currently claimed by any step, and cannot be directly accessed.
Traits§
- Claim
Var - Claim one or more flowey Vars for a particular step.
- Flow
Node - TODO: clearly verbalize what a
FlowNode
encompasses - Flow
Node Base - The base underlying implementation of all FlowNode variants.
- Import
CtxBackend - Into
Request - A “glue” trait which improves
NodeCtx::req
ergonomics, by tying a particularRequest
type to its correspondingFlowNode
. - Node
CtxBackend - Read
VarValue - Read the value of one or more flowey Vars.
- Runtime
VarDb - Simple
Flow Node - A helper trait to streamline implementing
FlowNode
instances that only ever operate on a single request at a time. - VarEq
Backing - Check if
ReadVar
/WriteVar
instances are backed by the same underlying flowey Var.
Functions§
- list_
all_ registered_ nodes - new_
import_ ctx - new_
node_ ctx - read_
var_ internals - DANGER: obtain a
ReadVar
backing variable and side effect status. - thin_
air_ read_ runtime_ var - DANGER: obtain a handle to a
ReadVar
“out of thin air”. - thin_
air_ write_ runtime_ var - DANGER: obtain a handle to a
WriteVar
“out of thin air”.
Type Aliases§
- Claimed
Read Var - A
ReadVar
which has been claimed by a particular step, allowing it to be read at runtime. - Claimed
Write Var - A
WriteVar
which has been claimed by a particular step, allowing it to be written to at runtime. - Side
Effect - Type corresponding to a step which performs a side-effect, without returning a specific value.