MCPcopy
hub / github.com/carvel-dev/ytt / Type

Interface Type

pkg/schema/type.go:15–34  ·  view source on GitHub ↗

Type encapsulates a schema that describes a yamlmeta.Node.

Source from the content-addressed store, hash-verified

13
14// Type encapsulates a schema that describes a yamlmeta.Node.
15type Type interface {
16 AssignTypeTo(node yamlmeta.Node) TypeCheck
17 CheckType(node yamlmeta.Node) TypeCheck
18
19 GetValueType() Type
20 GetDefaultValue() interface{}
21 SetDefaultValue(interface{})
22 GetDefinitionPosition() *filepos.Position
23
24 GetDescription() string
25 SetDescription(string)
26 GetTitle() string
27 SetTitle(string)
28 GetExamples() []Example
29 SetExamples([]Example)
30 IsDeprecated() (bool, string)
31 SetDeprecated(bool, string)
32 GetValidation() *validations.NodeValidation
33 String() string
34}
35
36var _ Type = (*DocumentType)(nil)
37var _ Type = (*MapType)(nil)

Callers 51

AssignTypeMethod · 0.65
checkExamplesValueFunction · 0.65
getValueFromAnnFunction · 0.65
AssignTypeToMethod · 0.65
AssignTypeToMethod · 0.65
applySchemaDefaultsMethod · 0.65
AssignTypeToMethod · 0.65
AssignTypeToMethod · 0.65
checkExamplesValueFunction · 0.65
getValueFromAnnFunction · 0.65
VisitMethod · 0.65
CheckTypeMethod · 0.65

Implementers 8

DocumentTypepkg/schema/type.go
MapTypepkg/schema/type.go
MapItemTypepkg/schema/type.go
ArrayTypepkg/schema/type.go
ArrayItemTypepkg/schema/type.go
ScalarTypepkg/schema/type.go
AnyTypepkg/schema/type.go
NullTypepkg/schema/type.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…