Type encapsulates a schema that describes a yamlmeta.Node.
| 13 | |
| 14 | // Type encapsulates a schema that describes a yamlmeta.Node. |
| 15 | type 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 | |
| 36 | var _ Type = (*DocumentType)(nil) |
| 37 | var _ Type = (*MapType)(nil) |
no outgoing calls
no test coverage detected
searching dependent graphs…