Help us shape the future of Go! Take the 2026 Go Developer Survey

meta

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgLiteral    = "@ARG"
	RawArgLiteral = "@RAWARG"
)

Variables

View Source
var (
	ScriptCount       = metric.NewCounter("MetaScript")
	ProbeCount        = metric.NewCounter("MetaProbe")
	ProbeSuccessCount = metric.NewCounter("MetaProbeSuccess")
	ProbeFailureCount = metric.NewCounter("MetaProbeFailure")
)
View Source
var (
	ErrParse = errors.New("Parse")
)

Functions

func ReplaceScriptLiterals added in v0.3.0

func ReplaceScriptLiterals(s string) string

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

func NewData

func NewData(d map[string]any) *Data

func NewDataFromEnviron

func NewDataFromEnviron() *Data

func NewDataFromEqualPairs added in v0.3.0

func NewDataFromEqualPairs(ss []string) *Data

func (Data) Get

func (d Data) Get(key string) (any, bool)

func (Data) IsEmpty added in v0.3.0

func (d Data) IsEmpty() bool

func (Data) MarshalJSON

func (d Data) MarshalJSON() ([]byte, error)

func (Data) MarshalYAML

func (d Data) MarshalYAML() (any, error)

func (*Data) Merge added in v0.5.0

func (d *Data) Merge(x *Data)

func (*Data) Set

func (d *Data) Set(key string, value any)

func (Data) Unwrap

func (d Data) Unwrap() map[string]any

type Prober

type Prober interface {
	Probe(ctx context.Context, path string) (*Data, error)
}

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader parses Data jsonl.

func NewReader

func NewReader(r io.Reader) *Reader

func (Reader) Err

func (r Reader) Err() error

func (*Reader) Read

func (r *Reader) Read(ctx context.Context) chan *Data

type Script

type Script struct {
	// contains filtered or unexported fields
}

func NewScript

func NewScript(content, shell string, arg ...string) *Script

func (*Script) Close

func (s *Script) Close() error

func (*Script) Probe

func (s *Script) Probe(ctx context.Context, path string) (*Data, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL