jmespath

package
v1.8.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 27 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JpObject      = gojmespath.JpObject
	JpString      = gojmespath.JpString
	JpNumber      = gojmespath.JpNumber
	JpArray       = gojmespath.JpArray
	JpArrayString = gojmespath.JpArrayString
	JpAny         = gojmespath.JpAny
	JpBool        = gojmespath.JpType("bool")
)

Functions

func New

func New(query string) (*gojmespath.JMESPath, error)

func ParseArithemticOperands added in v1.6.0

func ParseArithemticOperands(arguments []interface{}, operator string) (Operand, Operand, error)

Types

type ArgSpec

type ArgSpec = gojmespath.ArgSpec

type Duration added in v1.6.0

type Duration struct {
	time.Duration
}

func (Duration) Add added in v1.6.0

func (op1 Duration) Add(op2 interface{}) (interface{}, error)

func (Duration) Divide added in v1.6.0

func (op1 Duration) Divide(op2 interface{}) (interface{}, error)

func (Duration) Modulo added in v1.6.0

func (op1 Duration) Modulo(op2 interface{}) (interface{}, error)

func (Duration) Multiply added in v1.6.0

func (op1 Duration) Multiply(op2 interface{}) (interface{}, error)

func (Duration) Subtract added in v1.6.0

func (op1 Duration) Subtract(op2 interface{}) (interface{}, error)

type FunctionEntry added in v1.6.0

type FunctionEntry struct {
	Entry      *gojmespath.FunctionEntry
	Note       string
	ReturnType []JpType
}

func GetFunctions added in v1.6.0

func GetFunctions() []*FunctionEntry

func (*FunctionEntry) String added in v1.6.0

func (f *FunctionEntry) String() string

type JpType

type JpType = gojmespath.JpType

type Operand added in v1.6.0

type Operand interface {
	Add(interface{}) (interface{}, error)
	Subtract(interface{}) (interface{}, error)
	Multiply(interface{}) (interface{}, error)
	Divide(interface{}) (interface{}, error)
	Modulo(interface{}) (interface{}, error)
}

type PublicKey added in v1.8.0

type PublicKey struct {
	N string
	E int
}

type Quantity added in v1.6.0

type Quantity struct {
	resource.Quantity
}

func (Quantity) Add added in v1.6.0

func (op1 Quantity) Add(op2 interface{}) (interface{}, error)

func (Quantity) Divide added in v1.6.0

func (op1 Quantity) Divide(op2 interface{}) (interface{}, error)

func (Quantity) Modulo added in v1.6.0

func (op1 Quantity) Modulo(op2 interface{}) (interface{}, error)

func (Quantity) Multiply added in v1.6.0

func (op1 Quantity) Multiply(op2 interface{}) (interface{}, error)

func (Quantity) Subtract added in v1.6.0

func (op1 Quantity) Subtract(op2 interface{}) (interface{}, error)

type Scalar added in v1.6.0

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

func (Scalar) Add added in v1.6.0

func (op1 Scalar) Add(op2 interface{}) (interface{}, error)

func (Scalar) Divide added in v1.6.0

func (op1 Scalar) Divide(op2 interface{}) (interface{}, error)

func (Scalar) Modulo added in v1.6.0

func (op1 Scalar) Modulo(op2 interface{}) (interface{}, error)

func (Scalar) Multiply added in v1.6.0

func (op1 Scalar) Multiply(op2 interface{}) (interface{}, error)

func (Scalar) Subtract added in v1.6.0

func (op1 Scalar) Subtract(op2 interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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