Documentation ¶
Index ¶
- func DecodeBodyIntoMap(ctx *hcl.EvalContext, body hcl.Body, schema MapSchema, result interface{}) hcl.Diagnostics
- func Parse(src []byte, fileName string) (*hcl.File, hcl.Diagnostics)
- type Attribute
- type Block
- type MapSchema
- type MappingExpression
- type SequenceExpression
- type YamlBody
- func (f *YamlBody) Content(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Diagnostics)
- func (f *YamlBody) JustAttributes() (hcl.Attributes, hcl.Diagnostics)
- func (f *YamlBody) MissingItemRange() hcl.Range
- func (f *YamlBody) PartialContent(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Body, hcl.Diagnostics)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBodyIntoMap ¶
func DecodeBodyIntoMap(ctx *hcl.EvalContext, body hcl.Body, schema MapSchema, result interface{}) hcl.Diagnostics
Types ¶
type Block ¶
type Block struct { Plural string LabelNames []string Singleton bool Blocks map[string]Block Attributes map[string]Attribute }
func (*Block) BodySchema ¶
func (b *Block) BodySchema() *hcl.BodySchema
type MapSchema ¶
func (*MapSchema) BodySchema ¶
func (m *MapSchema) BodySchema() *hcl.BodySchema
type MappingExpression ¶
type MappingExpression struct { Node *yaml.Node // contains filtered or unexported fields }
func (MappingExpression) Range ¶
func (e MappingExpression) Range() hcl.Range
func (MappingExpression) StartRange ¶
func (e MappingExpression) StartRange() hcl.Range
func (MappingExpression) Value ¶
func (e MappingExpression) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics)
func (MappingExpression) Variables ¶
func (e MappingExpression) Variables() []hcl.Traversal
type SequenceExpression ¶
type SequenceExpression struct { Node *yaml.Node // contains filtered or unexported fields }
func (SequenceExpression) Range ¶
func (e SequenceExpression) Range() hcl.Range
func (SequenceExpression) StartRange ¶
func (e SequenceExpression) StartRange() hcl.Range
func (SequenceExpression) Value ¶
func (e SequenceExpression) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics)
func (SequenceExpression) Variables ¶
func (e SequenceExpression) Variables() []hcl.Traversal
type YamlBody ¶
type YamlBody struct {
// contains filtered or unexported fields
}
func (*YamlBody) Content ¶
func (f *YamlBody) Content(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Diagnostics)
func (*YamlBody) JustAttributes ¶
func (f *YamlBody) JustAttributes() (hcl.Attributes, hcl.Diagnostics)
func (*YamlBody) MissingItemRange ¶
func (f *YamlBody) MissingItemRange() hcl.Range
func (*YamlBody) PartialContent ¶
func (f *YamlBody) PartialContent(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Body, hcl.Diagnostics)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.