jmespath

package
v1.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 3

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
)

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 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 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