MCPcopy
hub / github.com/hashicorp/hcl / PartialContent

Method PartialContent

structure.go:56–56  ·  view source on GitHub ↗

PartialContent is like Content except that it permits the configuration to contain additional blocks or attributes not specified in the schema. If any are present, the returned Body is non-nil and contains the remaining items from the body that were not selected by the schema.

(schema *BodySchema)

Source from the content-addressed store, hash-verified

54 // schema. If any are present, the returned Body is non-nil and contains
55 // the remaining items from the body that were not selected by the schema.
56 PartialContent(schema *BodySchema) (*BodyContent, Body, Diagnostics)
57
58 // JustAttributes attempts to interpret all of the contents of the body
59 // as attributes, allowing for the contents to be accessed without a priori

Callers 15

mergedContentMethod · 0.65
decodeBodyToStructFunction · 0.65
TestBodyContentFunction · 0.65
decodeRangeFromBodyMethod · 0.65
decodeSpecDeclsFunction · 0.65
decodeUserFunctionsFunction · 0.65
PartialContentMethod · 0.65
VisitMethod · 0.65
PartialContentMethod · 0.65
PartialContentMethod · 0.65
PartialContentMethod · 0.65

Implementers 8

Bodyhclsyntax/structure.go
unknownBodyext/dynblock/unknown_body.go
expandBodyext/dynblock/expand_body.go
deepWrapperext/transform/transform.go
diagBodyext/transform/error.go
bodyjson/structure.go
mockBodyhcltest/mock.go

Calls

no outgoing calls

Tested by 5

TestBodyContentFunction · 0.52
TestDeepFunction · 0.52
TestBodyPartialContentFunction · 0.52