Documentation ¶
Index ¶
- Variables
- func ValidateDeviceDataSummaryResponse(result *DeviceDataSummaryResponse) (err error)
- func ValidateDeviceDataSummaryResponseView(result *DeviceDataSummaryResponseView) (err error)
- func ValidateDeviceDataSummaryView(result *DeviceDataSummaryView) (err error)
- func ValidateDeviceMetaSummaryView(result *DeviceMetaSummaryView) (err error)
- func ValidateDeviceProvisionSummaryCollectionView(result DeviceProvisionSummaryCollectionView) (err error)
- func ValidateDeviceProvisionSummaryView(result *DeviceProvisionSummaryView) (err error)
- type DeviceDataSummaryResponse
- type DeviceDataSummaryResponseView
- type DeviceDataSummaryView
- type DeviceMetaSummaryView
- type DeviceProvisionSummaryCollectionView
- type DeviceProvisionSummaryView
Constants ¶
This section is empty.
Variables ¶
var ( // DeviceDataSummaryResponseMap is a map of attribute names in result type // DeviceDataSummaryResponse indexed by view name. DeviceDataSummaryResponseMap = map[string][]string{ "default": []string{ "provisions", }, } // DeviceProvisionSummaryCollectionMap is a map of attribute names in result // type DeviceProvisionSummaryCollection indexed by view name. DeviceProvisionSummaryCollectionMap = map[string][]string{ "default": []string{ "generation", "created", "updated", "meta", "data", }, } // DeviceProvisionSummaryMap is a map of attribute names in result type // DeviceProvisionSummary indexed by view name. DeviceProvisionSummaryMap = map[string][]string{ "default": []string{ "generation", "created", "updated", "meta", "data", }, } // DeviceMetaSummaryMap is a map of attribute names in result type // DeviceMetaSummary indexed by view name. DeviceMetaSummaryMap = map[string][]string{ "default": []string{ "size", "first", "last", }, } // DeviceDataSummaryMap is a map of attribute names in result type // DeviceDataSummary indexed by view name. DeviceDataSummaryMap = map[string][]string{ "default": []string{ "size", "first", "last", }, } )
Functions ¶
func ValidateDeviceDataSummaryResponse ¶
func ValidateDeviceDataSummaryResponse(result *DeviceDataSummaryResponse) (err error)
ValidateDeviceDataSummaryResponse runs the validations defined on the viewed result type DeviceDataSummaryResponse.
func ValidateDeviceDataSummaryResponseView ¶
func ValidateDeviceDataSummaryResponseView(result *DeviceDataSummaryResponseView) (err error)
ValidateDeviceDataSummaryResponseView runs the validations defined on DeviceDataSummaryResponseView using the "default" view.
func ValidateDeviceDataSummaryView ¶
func ValidateDeviceDataSummaryView(result *DeviceDataSummaryView) (err error)
ValidateDeviceDataSummaryView runs the validations defined on DeviceDataSummaryView using the "default" view.
func ValidateDeviceMetaSummaryView ¶
func ValidateDeviceMetaSummaryView(result *DeviceMetaSummaryView) (err error)
ValidateDeviceMetaSummaryView runs the validations defined on DeviceMetaSummaryView using the "default" view.
func ValidateDeviceProvisionSummaryCollectionView ¶
func ValidateDeviceProvisionSummaryCollectionView(result DeviceProvisionSummaryCollectionView) (err error)
ValidateDeviceProvisionSummaryCollectionView runs the validations defined on DeviceProvisionSummaryCollectionView using the "default" view.
func ValidateDeviceProvisionSummaryView ¶
func ValidateDeviceProvisionSummaryView(result *DeviceProvisionSummaryView) (err error)
ValidateDeviceProvisionSummaryView runs the validations defined on DeviceProvisionSummaryView using the "default" view.
Types ¶
type DeviceDataSummaryResponse ¶
type DeviceDataSummaryResponse struct { // Type to project Projected *DeviceDataSummaryResponseView // View to render View string }
DeviceDataSummaryResponse is the viewed result type that is projected based on a view.
type DeviceDataSummaryResponseView ¶
type DeviceDataSummaryResponseView struct {
Provisions DeviceProvisionSummaryCollectionView
}
DeviceDataSummaryResponseView is a type that runs validations on a projected type.
type DeviceDataSummaryView ¶
DeviceDataSummaryView is a type that runs validations on a projected type.
type DeviceMetaSummaryView ¶
DeviceMetaSummaryView is a type that runs validations on a projected type.
type DeviceProvisionSummaryCollectionView ¶
type DeviceProvisionSummaryCollectionView []*DeviceProvisionSummaryView
DeviceProvisionSummaryCollectionView is a type that runs validations on a projected type.
type DeviceProvisionSummaryView ¶
type DeviceProvisionSummaryView struct { Generation *string Created *int64 Updated *int64 Meta *DeviceMetaSummaryView Data *DeviceDataSummaryView }
DeviceProvisionSummaryView is a type that runs validations on a projected type.