Documentation ¶
Index ¶
- func NewMetadataMapper() types.Mapper
- func ValidateField(field string, schema *types.Schema) error
- type APIGroup
- type Access
- type AnnotationField
- type Base64
- type BatchMove
- type ChangeType
- type Condition
- type Copy
- type DisplayName
- type Drop
- type Embed
- type Enum
- type JSONEncode
- type LabelField
- type Move
- type Object
- type PendingStatus
- type ReadOnly
- type RenameReference
- type Required
- type Root
- type Scope
- type SetValue
- type SliceMerge
- type SliceToMap
- type UnionEmbed
- type UnionMapping
- type UntypedMove
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetadataMapper ¶
Types ¶
type APIGroup ¶
type APIGroup struct {
// contains filtered or unexported fields
}
func (*APIGroup) FromInternal ¶
func (*APIGroup) ModifySchema ¶
func (*APIGroup) ToInternal ¶
type AnnotationField ¶
func (AnnotationField) FromInternal ¶
func (e AnnotationField) FromInternal(data map[string]interface{})
func (AnnotationField) ModifySchema ¶
func (AnnotationField) ToInternal ¶
func (e AnnotationField) ToInternal(data map[string]interface{}) error
type BatchMove ¶
type BatchMove struct { From []string To string DestDefined bool NoDeleteFromField bool // contains filtered or unexported fields }
func (*BatchMove) FromInternal ¶
func (*BatchMove) ModifySchema ¶
func (*BatchMove) ToInternal ¶
type ChangeType ¶
func (ChangeType) FromInternal ¶
func (c ChangeType) FromInternal(data map[string]interface{})
func (ChangeType) ModifySchema ¶
func (ChangeType) ToInternal ¶
func (c ChangeType) ToInternal(data map[string]interface{}) error
type Condition ¶
func (Condition) FromInternal ¶
func (Condition) ModifySchema ¶
func (Condition) ToInternal ¶
type Copy ¶
type Copy struct {
From, To string
}
func (Copy) FromInternal ¶
func (Copy) ModifySchema ¶
func (Copy) ToInternal ¶
type DisplayName ¶
type DisplayName struct { }
func (DisplayName) FromInternal ¶
func (d DisplayName) FromInternal(data map[string]interface{})
func (DisplayName) ModifySchema ¶
func (DisplayName) ToInternal ¶
func (d DisplayName) ToInternal(data map[string]interface{}) error
type Embed ¶
type Embed struct { Field string Optional bool ReadOnly bool Ignore []string EmptyValueOk bool // contains filtered or unexported fields }
func (*Embed) FromInternal ¶
func (*Embed) ModifySchema ¶
func (*Embed) ToInternal ¶
type JSONEncode ¶
func (JSONEncode) FromInternal ¶
func (m JSONEncode) FromInternal(data map[string]interface{})
func (JSONEncode) ModifySchema ¶
func (JSONEncode) ToInternal ¶
func (m JSONEncode) ToInternal(data map[string]interface{}) error
type LabelField ¶
type LabelField struct {
Field string
}
func (LabelField) FromInternal ¶
func (e LabelField) FromInternal(data map[string]interface{})
func (LabelField) ModifySchema ¶
func (LabelField) ToInternal ¶
func (e LabelField) ToInternal(data map[string]interface{}) error
type PendingStatus ¶
type PendingStatus struct { }
func (PendingStatus) FromInternal ¶
func (s PendingStatus) FromInternal(data map[string]interface{})
func (PendingStatus) ModifySchema ¶
func (PendingStatus) ToInternal ¶
func (s PendingStatus) ToInternal(data map[string]interface{}) error
type ReadOnly ¶
func (ReadOnly) FromInternal ¶
func (ReadOnly) ModifySchema ¶
func (ReadOnly) ToInternal ¶
type RenameReference ¶
type RenameReference struct {
// contains filtered or unexported fields
}
func (*RenameReference) FromInternal ¶
func (r *RenameReference) FromInternal(data map[string]interface{})
func (*RenameReference) ModifySchema ¶
func (*RenameReference) ToInternal ¶
func (r *RenameReference) ToInternal(data map[string]interface{}) error
type Required ¶
type Required struct {
Fields []string
}
func (Required) FromInternal ¶
func (Required) ModifySchema ¶
func (Required) ToInternal ¶
type Scope ¶
type Scope struct { If types.TypeScope IfNot types.TypeScope Mappers []types.Mapper // contains filtered or unexported fields }
func (*Scope) FromInternal ¶
func (*Scope) ModifySchema ¶
func (*Scope) ToInternal ¶
type SetValue ¶
func (SetValue) FromInternal ¶
func (SetValue) ModifySchema ¶
func (SetValue) ToInternal ¶
type SliceMerge ¶
func (SliceMerge) FromInternal ¶
func (s SliceMerge) FromInternal(data map[string]interface{})
func (SliceMerge) ModifySchema ¶
func (SliceMerge) ToInternal ¶
func (s SliceMerge) ToInternal(data map[string]interface{}) error
type SliceToMap ¶
func (SliceToMap) FromInternal ¶
func (s SliceToMap) FromInternal(data map[string]interface{})
func (SliceToMap) ModifySchema ¶
func (SliceToMap) ToInternal ¶
func (s SliceToMap) ToInternal(data map[string]interface{}) error
type UnionEmbed ¶
type UnionEmbed struct { Fields []UnionMapping // contains filtered or unexported fields }
func (*UnionEmbed) FromInternal ¶
func (u *UnionEmbed) FromInternal(data map[string]interface{})
func (*UnionEmbed) ModifySchema ¶
func (*UnionEmbed) ToInternal ¶
func (u *UnionEmbed) ToInternal(data map[string]interface{}) error
type UnionMapping ¶
type UntypedMove ¶
func (UntypedMove) FromInternal ¶
func (m UntypedMove) FromInternal(data map[string]interface{})
func (UntypedMove) ModifySchema ¶
func (UntypedMove) ToInternal ¶
func (m UntypedMove) ToInternal(data map[string]interface{}) error
Source Files ¶
- access.go
- annotation_field.go
- apigroup.go
- base64.go
- batchmove.go
- changetype.go
- check.go
- condition.go
- copy.go
- display_name.go
- drop.go
- embed.go
- enum.go
- json_encode.go
- label_field.go
- log.go
- metadata.go
- move.go
- object.go
- pendingstatus.go
- read_only.go
- rename_reference.go
- required.go
- root.go
- scope.go
- set_value.go
- slice_merge.go
- slice_to_map.go
- union_embed.go
- untyped_move.go
Click to show internal directories.
Click to hide internal directories.