views

package
v0.0.0-...-b9360c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type DeviceDataSummaryView struct {
	Size  *int64
	First *int64
	Last  *int64
}

DeviceDataSummaryView is a type that runs validations on a projected type.

type DeviceMetaSummaryView

type DeviceMetaSummaryView struct {
	Size  *int64
	First *int64
	Last  *int64
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL