advanced

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

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 CreateQueryOpts struct {
	DomainId    string `json:"-"`
	Name        string `json:"name" required:"true"`
	Description string `json:"description,omitempty"`
	Expression  string `json:"expression" required:"true"`
}

type ListQueriesOpts

type ListQueriesOpts struct {
	DomainId string `json:"-"`
	Name     string `q:"name"`
	// Specifies the number of records returned on each page during pagination query.
	Limit *int `q:"limit"`
	// Specifies the pagination parameter.
	Marker string `q:"string"`
}

type ListSchemasOpts

type ListSchemasOpts struct {
	DomainId string `json:"-"`
	Name     string `q:"name"`
	// Specifies the number of records returned on each page during pagination query.
	Limit *int `q:"limit"`
	// Specifies the pagination parameter.
	Marker string `q:"string"`
}

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 QueryInfo

type QueryInfo struct {
	SelectFields []string `json:"select_fields"`
}

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 RunQueryOpts struct {
	DomainId   string `json:"-"`
	Expression string `json:"expression" required:"true"`
}

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)

type UpdateQueryOpts

type UpdateQueryOpts struct {
	DomainId    string `json:"-"`
	QueryId     string `json:"-"`
	Name        string `json:"name" required:"true"`
	Description string `json:"description,omitempty"`
	Expression  string `json:"expression" required:"true"`
}

Jump to

Keyboard shortcuts

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