{"modulePath":"github.com/ozontech/file.d","version":"v0.88.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtime\n\n## Types\n\n```go\ntype Context struct {\n\t// contains filtered or unexported fields\n}\n```\nContext carries all runtime state available during expression evaluation.\n\nA single Context is created per Program.Run call and passed down through every Eval call.\n\n```go\nfunc NewContext(target core.Target, registry *stdlib.Registry) *Context\n```\n\n```go\nfunc (c *Context) CallFunc(pos core.Position, name string, positional []core.Value, named map[string]core.Value) (core.Value, error)\n```\n\n```go\nfunc (c *Context) DeleteVar(name string)\n```\n\n```go\nfunc (c *Context) GetTarget() core.Target\n```\n\n```go\nfunc (c *Context) GetVar(name string) (core.Value, bool)\n```\n\n```go\nfunc (c *Context) SetVar(name string, value core.Value)\n```\n\n```go\ntype MapTarget struct {\n\t// contains filtered or unexported fields\n}\n```\nMapTarget is the standard in-memory Target.\n\n```go\nfunc NewMapTarget() *MapTarget\n```\n\n```go\nfunc NewMapTargetFrom(event map[string]core.Value) *MapTarget\n```\n\n```go\nfunc (t *MapTarget) Delete(path core.Path) error\n```\n\n```go\nfunc (t *MapTarget) Event() map[string]core.Value\n```\n\n```go\nfunc (t *MapTarget) Get(path core.Path) (core.Value, error)\n```\n\n```go\nfunc (t *MapTarget) Metadata() map[string]core.Value\n```\n\n```go\nfunc (t *MapTarget) Set(path core.Path, value core.Value) error\n```\n\n```go\ntype RootTarget struct {\n\tRoot       *insaneJSON.Root\n\tSourceName string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRootTarget(root *insaneJSON.Root, sourceName string, metadata map[string]string) *RootTarget\n```\n\n```go\nfunc (t *RootTarget) Delete(path core.Path) error\n```\n\n```go\nfunc (t *RootTarget) Get(path core.Path) (core.Value, error)\n```\n\n```go\nfunc (t *RootTarget) Set(path core.Path, value core.Value) error\n```\n\n","path":"github.com/ozontech/file.d/plugin/action/transform/runtime","name":"runtime","synopsis":"","isRedistributable":true}
