Documentation ¶
Index ¶
- Constants
- func DeleteBlockStoreEntry(ctx context.Context, storeInstance store.Storer[BlockData], blockName string, ...) error
- func GetBlockStoreEntry(ctx context.Context, storeInstance store.Storer[BlockData], blockName string, ...) *yaml.RNode
- func UpdateBlockStoreEntry(ctx context.Context, storeInstance store.Storer[BlockData], blockName string, ...) error
- func UpdateVarStore(ctx context.Context, varStore store.Storer[VarData], blockName string, ...) error
- type BlockData
- func (r BlockData) Add(data *yaml.RNode) BlockData
- func (r BlockData) Delete(rnode *yaml.RNode) (BlockData, error)
- func (r BlockData) Get() []*yaml.RNode
- func (r BlockData) GetItem(rnode *yaml.RNode) *yaml.RNode
- func (r BlockData) GetVarData() (VarData, error)
- func (r BlockData) Insert(total, pos int, rn *yaml.RNode) (BlockData, error)
- func (r BlockData) Len() int
- type VarData
Constants ¶
View Source
const DummyKey = "BamBoozle"
Variables ¶
This section is empty.
Functions ¶
func DeleteBlockStoreEntry ¶ added in v0.0.3
func DeleteBlockStoreEntry(ctx context.Context, storeInstance store.Storer[BlockData], blockName string, rn *yaml.RNode) error
Delete the block
func GetBlockStoreEntry ¶ added in v0.0.3
func UpdateBlockStoreEntry ¶ added in v0.0.3
func UpdateBlockStoreEntry(ctx context.Context, storeInstance store.Storer[BlockData], blockName string, rn *yaml.RNode, localVars map[string]any) error
Updates the results in the store; for loop vars it uses the index of the loop var to store the result since we store the results of a given blockName in a slice []any
func UpdateVarStore ¶ added in v0.0.3
func UpdateVarStore(ctx context.Context, varStore store.Storer[VarData], blockName string, data any, localVars map[string]any) error
Updates the results in the store; for loop vars it uses the index of the loop var to store the result since we store the results of a given blockName in a slice []any
Types ¶
type BlockData ¶
BlockData contains the data of a block -> can be pre-processed or post-processed
func (BlockData) Delete ¶ added in v0.0.3
Insert inserts data in the blockdata if you know the position
func (BlockData) GetVarData ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.