Documentation
¶
Index ¶
- func DeleteQuery(client *golangsdk.ServiceClient, domainId, queryId string) (err error)
- type CreateQueryOpts
- type ListQueriesOpts
- type ListSchemasOpts
- type Query
- func CreateQuery(client *golangsdk.ServiceClient, opts CreateQueryOpts) (*Query, error)
- func ExtractQueries(r pagination.NewPage) ([]Query, error)
- func GetQuery(client *golangsdk.ServiceClient, domainId, queryId string) (*Query, error)
- func ListQueries(client *golangsdk.ServiceClient, opts ListQueriesOpts) ([]Query, error)
- func UpdateQuery(client *golangsdk.ServiceClient, opts UpdateQueryOpts) (*Query, error)
- type QueryInfo
- type QueryResponse
- type ResPage
- type RunQueryOpts
- type Schema
- type UpdateQueryOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteQuery ¶
func DeleteQuery(client *golangsdk.ServiceClient, domainId, queryId string) (err error)
Types ¶
type CreateQueryOpts ¶
type ListQueriesOpts ¶
type ListSchemasOpts ¶
type Query ¶
type Query struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Expression string `json:"expression"`
Created string `json:"created"`
Updated string `json:"updated"`
}
func CreateQuery ¶
func CreateQuery(client *golangsdk.ServiceClient, opts CreateQueryOpts) (*Query, error)
func ExtractQueries ¶
func ExtractQueries(r pagination.NewPage) ([]Query, error)
func GetQuery ¶
func GetQuery(client *golangsdk.ServiceClient, domainId, queryId string) (*Query, error)
func ListQueries ¶
func ListQueries(client *golangsdk.ServiceClient, opts ListQueriesOpts) ([]Query, error)
func UpdateQuery ¶
func UpdateQuery(client *golangsdk.ServiceClient, opts UpdateQueryOpts) (*Query, error)
type QueryResponse ¶
type QueryResponse struct {
QueryInfo QueryInfo `json:"query_info"`
Results []interface{} `json:"results"`
}
func RunQuery ¶
func RunQuery(client *golangsdk.ServiceClient, opts RunQueryOpts) (*QueryResponse, error)
type ResPage ¶
type ResPage struct {
pagination.NewSinglePageBase
}
type RunQueryOpts ¶
type Schema ¶
type Schema struct {
Type string `json:"type"`
Schema interface{} `json:"schema"`
}
func ExtractSchemas ¶
func ExtractSchemas(r pagination.NewPage) ([]Schema, error)
func ListSchemas ¶
func ListSchemas(client *golangsdk.ServiceClient, opts ListSchemasOpts) ([]Schema, error)
Click to show internal directories.
Click to hide internal directories.