jq

package
v0.0.0-...-a3182f0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExecTimeoutError   = errors.New("jq execution was timeout")
	ExecCancelledError = errors.New("jq execution was cancelled")
)
View Source
var Path, Version string

Functions

func Init

func Init() error

func SetPath

func SetPath(binDir string) error

Types

type JQ

type JQ struct {
	J string  `json:"j"`
	Q string  `json:"q"`
	O []JQOpt `json:"o"`
}

func (*JQ) Eval

func (j *JQ) Eval(ctx context.Context, w io.Writer) error

func (*JQ) Opts

func (j *JQ) Opts() []string

func (JQ) String

func (j JQ) String() string

func (*JQ) Validate

func (j *JQ) Validate() error

type JQOpt

type JQOpt struct {
	Name    string `json:"name"`
	Enabled bool   `json:"enabled"`
}

type ValidationError

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

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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