Documentation
¶
Index ¶
- Constants
- Variables
- func SetStdin(f *os.File) error
- type Store
- func (s *Store) ClearLoopIndex()
- func (s *Store) ClearSteps()
- func (s *Store) Cookies() map[string]map[string]*http.Cookie
- func (s *Store) Funcs() map[string]any
- func (s *Store) KV() *kv.KV
- func (s *Store) Latest() map[string]any
- func (s *Store) LoopIndex() *int
- func (s *Store) MaskRule() *maskedio.Rule
- func (s *Store) Previous() map[string]any
- func (s *Store) Record(idx int, v map[string]any)
- func (s *Store) RecordBindVar(k string, v any, sm map[string]any) error
- func (s *Store) RecordCookie(cookies []*http.Cookie)
- func (s *Store) RecordTo(idx int, key string, value any) error
- func (s *Store) RunNIndex() int
- func (s *Store) SetBindVar(k string, v any) error
- func (s *Store) SetKV(kv *kv.KV)
- func (s *Store) SetLoopIndex(i int)
- func (s *Store) SetMaskKeywords(store map[string]any)
- func (s *Store) SetMaskRule(mr *maskedio.Rule)
- func (s *Store) SetNeedsVar(k string, ns *Store)
- func (s *Store) SetParentVars(vars map[string]any)
- func (s *Store) SetRunNIndex(i int)
- func (s *Store) SetSecrets(secrets []string)
- func (s *Store) SetVar(k string, v any)
- func (s *Store) StepKeys() []string
- func (s *Store) StepLen() int
- func (s *Store) ToMap() map[string]any
- func (s *Store) ToMapForDbg() map[string]any
- func (s *Store) ToMapForIncludeRunner() map[string]any
Constants ¶
View Source
const ( RootKeyVars = "vars" RootKeySteps = "steps" RootKeyParent = "parent" RootKeyIncluded = "included" RootKeyCurrent = "current" RootKeyPrevious = "previous" RootKeyEnv = "env" RootKeyCookie = "cookies" RootKeyNodes = "nodes" RootKeyParams = "params" RootKeyRunn = "runn" RootKeyNeeds = "needs" RootKeyLoopCountIndex = "i" )
View Source
const ( StepKeyOutcome = "outcome" FuncValue = "[func]" )
View Source
const ( RunnKeyKV = "kv" RunnKeyRunNIndex = "i" RunnKeyStdin = "stdin" )
`runn` is global store for runn.
Variables ¶
View Source
var ReservedRootKeys = []string{ RootKeyVars, RootKeySteps, RootKeyParent, RootKeyIncluded, RootKeyCurrent, RootKeyPrevious, RootKeyEnv, RootKeyCookie, RootKeyNodes, RootKeyParams, RootKeyLoopCountIndex, RootKeyRunn, RootKeyNeeds, }
Reserved store root keys.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ClearLoopIndex ¶
func (s *Store) ClearLoopIndex()
func (*Store) ClearSteps ¶
func (s *Store) ClearSteps()
func (*Store) RecordBindVar ¶
func (*Store) RecordCookie ¶
func (*Store) SetLoopIndex ¶
func (*Store) SetMaskKeywords ¶
func (*Store) SetMaskRule ¶
func (*Store) SetNeedsVar ¶
func (*Store) SetParentVars ¶
func (*Store) SetRunNIndex ¶
func (*Store) SetSecrets ¶
func (*Store) ToMapForDbg ¶
ToMapForDbg - returns a map for dbg. toMap without s.funcs.
func (*Store) ToMapForIncludeRunner ¶
ToMapForIncludeRunner - returns a map for include runner. toMap without s.parentVars s.needsVars and runn.* .
Click to show internal directories.
Click to hide internal directories.