Documentation
¶
Index ¶
- Variables
- func ValidateHost(result *Host) (err error)
- func ValidateHostCollection(result HostCollection) (err error)
- func ValidateHostCollectionView(result HostCollectionView) (err error)
- func ValidateHostView(result *HostView) (err error)
- type Host
- type HostCollection
- type HostCollectionView
- type HostView
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HostCollectionMap is a map of attribute names in result type HostCollection // indexed by view name. HostCollectionMap = map[string][]string{ "default": []string{ "public", "on_demand", }, } // HostMap is a map of attribute names in result type Host indexed by view name. HostMap = map[string][]string{ "default": []string{ "public", "on_demand", }, } )
Functions ¶
func ValidateHost ¶
ValidateHost runs the validations defined on the viewed result type Host.
func ValidateHostCollection ¶
func ValidateHostCollection(result HostCollection) (err error)
ValidateHostCollection runs the validations defined on the viewed result type HostCollection.
func ValidateHostCollectionView ¶
func ValidateHostCollectionView(result HostCollectionView) (err error)
ValidateHostCollectionView runs the validations defined on HostCollectionView using the "default" view.
func ValidateHostView ¶
ValidateHostView runs the validations defined on HostView using the "default" view.
Types ¶
type HostCollection ¶
type HostCollection struct { // Type to project Projected HostCollectionView // View to render View string }
HostCollection is the viewed result type that is projected based on a view.
type HostCollectionView ¶
type HostCollectionView []*HostView
HostCollectionView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.