value

package
v0.0.0-...-e3166bf Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolValue

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

func (BoolValue) Bool

func (v BoolValue) Bool() bool

func (BoolValue) Cmp

func (v BoolValue) Cmp(other Value) int

func (BoolValue) Hash

func (v BoolValue) Hash(seed maphash.Seed) (uint64, error)

func (BoolValue) MarshalYAML

func (v BoolValue) MarshalYAML() (any, error)

func (BoolValue) String

func (v BoolValue) String() string

func (*BoolValue) UnmarshalYAML

func (v *BoolValue) UnmarshalYAML(node *yaml.Node) error

type FloatValue

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

func (FloatValue) Bool

func (v FloatValue) Bool() bool

func (FloatValue) Cmp

func (v FloatValue) Cmp(other Value) int

func (FloatValue) Hash

func (v FloatValue) Hash(seed maphash.Seed) (uint64, error)

func (FloatValue) MarshalYAML

func (v FloatValue) MarshalYAML() (any, error)

func (FloatValue) String

func (v FloatValue) String() string

func (*FloatValue) UnmarshalYAML

func (v *FloatValue) UnmarshalYAML(node *yaml.Node) error

type IntValue

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

func (*IntValue) Bool

func (v *IntValue) Bool() bool

func (*IntValue) Cmp

func (v *IntValue) Cmp(other Value) int

func (*IntValue) Hash

func (v *IntValue) Hash(seed maphash.Seed) (uint64, error)

func (*IntValue) MarshalYAML

func (v *IntValue) MarshalYAML() (any, error)

func (*IntValue) String

func (v *IntValue) String() string

func (*IntValue) UnmarshalYAML

func (v *IntValue) UnmarshalYAML(node *yaml.Node) error

type ListValue

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

func (ListValue) Bool

func (v ListValue) Bool() bool

func (ListValue) Cmp

func (v ListValue) Cmp(other Value) int

func (ListValue) Hash

func (v ListValue) Hash(seed maphash.Seed) (uint64, error)

func (ListValue) MarshalYAML

func (v ListValue) MarshalYAML() (any, error)

func (ListValue) String

func (v ListValue) String() string

func (*ListValue) UnmarshalYAML

func (v *ListValue) UnmarshalYAML(node *yaml.Node) error

type MapValue

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

func (MapValue) Bool

func (v MapValue) Bool() bool

func (MapValue) Cmp

func (v MapValue) Cmp(other Value) int

func (MapValue) Hash

func (v MapValue) Hash(seed maphash.Seed) (uint64, error)

func (MapValue) MarshalYAML

func (v MapValue) MarshalYAML() (any, error)

func (*MapValue) SetItem

func (v *MapValue) SetItem(key, value Value) error

func (MapValue) String

func (v MapValue) String() string

func (*MapValue) UnmarshalYAML

func (v *MapValue) UnmarshalYAML(node *yaml.Node) error

type NullValue

type NullValue struct{}

func (NullValue) Bool

func (v NullValue) Bool() bool

func (NullValue) Cmp

func (v NullValue) Cmp(other Value) int

func (NullValue) Hash

func (v NullValue) Hash(seed maphash.Seed) (uint64, error)

func (NullValue) MarshalYAML

func (v NullValue) MarshalYAML() (any, error)

func (NullValue) String

func (v NullValue) String() string

func (NullValue) UnmarshalYAML

func (v NullValue) UnmarshalYAML(node *yaml.Node) error

type StringValue

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

func (StringValue) Bool

func (v StringValue) Bool() bool

func (StringValue) Cmp

func (v StringValue) Cmp(other Value) int

func (StringValue) Hash

func (v StringValue) Hash(seed maphash.Seed) (uint64, error)

func (StringValue) MarshalYAML

func (v StringValue) MarshalYAML() (any, error)

func (StringValue) String

func (v StringValue) String() string

func (*StringValue) UnmarshalYAML

func (v *StringValue) UnmarshalYAML(node *yaml.Node) error

type Value

type Value interface {
	Bool() bool
	String() string
	Hash(maphash.Seed) (uint64, error)
	Cmp(Value) int
	MarshalYAML() (any, error)
	UnmarshalYAML(*yaml.Node) error
}

func UnmarshalYAML

func UnmarshalYAML(node *yaml.Node) (ret Value, err error)

Jump to

Keyboard shortcuts

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