Documentation ¶
Overview ¶
Package collection contains functions and assertions for interacting with collections.
Index ¶
- func IDByName(t cbtest.T, provider provider.ConfigAndClient, collectionName string) string
- func IDByNameE(t cbtest.T, provider provider.ConfigAndClient, collectionName string) (string, error)
- func Total(t cbtest.T, provider provider.ConfigAndClient, collectionID string) int
- func TotalE(t cbtest.T, provider provider.ConfigAndClient, collectionID string) (int, error)
- type DataResponse
- type Matcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IDByNameE ¶
func IDByNameE(t cbtest.T, provider provider.ConfigAndClient, collectionName string) (string, error)
IDByNameE gets a collection ID from a given name. Returns error on failure.
Types ¶
type DataResponse ¶
type DataResponse struct { Page int `json:"CURRENTPAGE" mapstructure:"CURRENTPAGE"` PrevPageURL string `json:"PREVPAGEURL" mapstructure:"PREVPAGEURL"` NextPageURL string `json:"NEXTPAGEURL" mapstructure:"NEXTPAGEURL"` Items []map[string]interface{} `json:"DATA" mapstructure:"DATA"` TotalItems int `json:"TOTAL" mapstructure:"TOTAL"` }
DataResponse represents a response from a collection get data call.
func GetData ¶
func GetData(t cbtest.T, provider provider.ConfigAndClient, collectionID string, query *cb.Query) *DataResponse
GetData wraps around ClearBlade Go SDK GetData and provides the response as a structure. Panics on failure.
Click to show internal directories.
Click to hide internal directories.