hcl

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONBytesEqual

func JSONBytesEqual(b1, b2 []byte) bool

func JSONStringsEqual

func JSONStringsEqual(s1, s2 string) bool

func SuppressEOT

func SuppressEOT(k, old, new string, d *schema.ResourceData) bool

func SuppressJSONorEOT

func SuppressJSONorEOT(k, old, new string, d *schema.ResourceData) bool

Types

type Decoder

type Decoder interface {
	GetOk(key string) (any, bool)
	Get(key string) any
	Decode(key string, v any) error
	DecodeAll(map[string]any) error
	DecodeAny(map[string]any) (any, error)
	DecodeSlice(key string, v any) error
}

Decoder has no documentation

func DecoderFrom

func DecoderFrom(m MinDecoder) Decoder

func NewDecoder

func NewDecoder(parent MinDecoder, address ...any) Decoder

NewDecoder has no documentation

func VoidDecoder

func VoidDecoder() Decoder

type Marshaler

type Marshaler interface {
	MarshalHCL(Properties) error
}

Marshaler has no documentation

type MinDecoder

type MinDecoder interface {
	GetOk(key string) (any, bool)
	Get(key string) any
}

Decoder has no documentation

type Properties

type Properties map[string]any

func (Properties) Encode

func (me Properties) Encode(key string, v any) error

func (Properties) EncodeAll

func (me Properties) EncodeAll(items map[string]any) error

func (Properties) EncodeSlice

func (me Properties) EncodeSlice(key string, v any) error

func (Properties) Unknowns

func (me Properties) Unknowns(unknowns map[string]json.RawMessage) error

type Schemer

type Schemer interface {
	Schema() map[string]*schema.Schema
}

type StringSet

type StringSet []string

type Unmarshaler

type Unmarshaler interface {
	UnmarshalHCL(decoder Decoder) error
}

Jump to

Keyboard shortcuts

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