 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ElementBuildingVisitor
- func (v ElementBuildingVisitor) CreateListElement(item *listItem) (apply.Element, error)
- func (v ElementBuildingVisitor) CreateMapElement(item *mapItem) (apply.Element, error)
- func (v ElementBuildingVisitor) CreatePrimitiveElement(item *primitiveItem) (apply.Element, error)
- func (v ElementBuildingVisitor) CreateTypeElement(item *typeItem) (apply.Element, error)
 
- type Factory
- type Item
- type ItemVisitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElementBuildingVisitor ¶
type ElementBuildingVisitor struct {
	// contains filtered or unexported fields
}
    ElementBuildingVisitor creates an Elements from Items An Element combines the values from the Item with the field metadata.
func (ElementBuildingVisitor) CreateListElement ¶
func (v ElementBuildingVisitor) CreateListElement(item *listItem) (apply.Element, error)
CreateListElement creates a ListElement
func (ElementBuildingVisitor) CreateMapElement ¶
func (v ElementBuildingVisitor) CreateMapElement(item *mapItem) (apply.Element, error)
CreateMapElement creates a mapElement
func (ElementBuildingVisitor) CreatePrimitiveElement ¶
func (v ElementBuildingVisitor) CreatePrimitiveElement(item *primitiveItem) (apply.Element, error)
CreatePrimitiveElement creates a primitiveElement
func (ElementBuildingVisitor) CreateTypeElement ¶
func (v ElementBuildingVisitor) CreateTypeElement(item *typeItem) (apply.Element, error)
CreateTypeElement creates a typeElement
type Factory ¶
type Factory struct {
	// Resources contains the openapi field metadata for the object models
	Resources openapi.Resources
}
    Factory creates an Element by combining object values from recorded, local and remote sources with the metadata from an openapi schema.
type Item ¶
type Item interface {
	// CreateElement merges the values in the item into a combined Element
	CreateElement(ItemVisitor) (apply.Element, error)
}
    Item wraps values from 3 sources (recorded, local, remote). The values are not collated
type ItemVisitor ¶
type ItemVisitor interface {
	// CreatePrimitiveElement builds an Element for a primitiveItem
	CreatePrimitiveElement(*primitiveItem) (apply.Element, error)
	// CreateListElement builds an Element for a listItem
	CreateListElement(*listItem) (apply.Element, error)
	// CreateMapElement builds an Element for a mapItem
	CreateMapElement(*mapItem) (apply.Element, error)
	// CreateTypeElement builds an Element for a typeItem
	CreateTypeElement(*typeItem) (apply.Element, error)
}
    ItemVisitor provides an interface for Items to Accept and call the Visit function that corresponds to its actual type.