Documentation ¶
Index ¶
- type Client
- func (a *Client) ListSortOptions(params *ListSortOptionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSortOptionsOK, error)
- func (a *Client) Search(params *SearchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ListSortOptionsOK
- type ListSortOptionsParams
- func NewListSortOptionsParams() *ListSortOptionsParams
- func NewListSortOptionsParamsWithContext(ctx context.Context) *ListSortOptionsParams
- func NewListSortOptionsParamsWithHTTPClient(client *http.Client) *ListSortOptionsParams
- func NewListSortOptionsParamsWithTimeout(timeout time.Duration) *ListSortOptionsParams
- func (o *ListSortOptionsParams) SetContext(ctx context.Context)
- func (o *ListSortOptionsParams) SetDefaults()
- func (o *ListSortOptionsParams) SetHTTPClient(client *http.Client)
- func (o *ListSortOptionsParams) SetTimeout(timeout time.Duration)
- func (o *ListSortOptionsParams) WithContext(ctx context.Context) *ListSortOptionsParams
- func (o *ListSortOptionsParams) WithDefaults() *ListSortOptionsParams
- func (o *ListSortOptionsParams) WithHTTPClient(client *http.Client) *ListSortOptionsParams
- func (o *ListSortOptionsParams) WithTimeout(timeout time.Duration) *ListSortOptionsParams
- func (o *ListSortOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSortOptionsReader
- type ListSortOptionsUnauthorized
- type SearchInternalServerError
- type SearchOK
- type SearchParams
- func (o *SearchParams) SetContext(ctx context.Context)
- func (o *SearchParams) SetDashboardIds(dashboardIds []int64)
- func (o *SearchParams) SetDashboardUIDs(dashboardUIDs []string)
- func (o *SearchParams) SetDefaults()
- func (o *SearchParams) SetFolderIds(folderIds []int64)
- func (o *SearchParams) SetHTTPClient(client *http.Client)
- func (o *SearchParams) SetLimit(limit *int64)
- func (o *SearchParams) SetPage(page *int64)
- func (o *SearchParams) SetPermission(permission *string)
- func (o *SearchParams) SetQuery(query *string)
- func (o *SearchParams) SetSort(sort *string)
- func (o *SearchParams) SetStarred(starred *bool)
- func (o *SearchParams) SetTag(tag []string)
- func (o *SearchParams) SetTimeout(timeout time.Duration)
- func (o *SearchParams) SetType(typeVar *string)
- func (o *SearchParams) WithContext(ctx context.Context) *SearchParams
- func (o *SearchParams) WithDashboardIds(dashboardIds []int64) *SearchParams
- func (o *SearchParams) WithDashboardUIDs(dashboardUIDs []string) *SearchParams
- func (o *SearchParams) WithDefaults() *SearchParams
- func (o *SearchParams) WithFolderIds(folderIds []int64) *SearchParams
- func (o *SearchParams) WithHTTPClient(client *http.Client) *SearchParams
- func (o *SearchParams) WithLimit(limit *int64) *SearchParams
- func (o *SearchParams) WithPage(page *int64) *SearchParams
- func (o *SearchParams) WithPermission(permission *string) *SearchParams
- func (o *SearchParams) WithQuery(query *string) *SearchParams
- func (o *SearchParams) WithSort(sort *string) *SearchParams
- func (o *SearchParams) WithStarred(starred *bool) *SearchParams
- func (o *SearchParams) WithTag(tag []string) *SearchParams
- func (o *SearchParams) WithTimeout(timeout time.Duration) *SearchParams
- func (o *SearchParams) WithType(typeVar *string) *SearchParams
- func (o *SearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchReader
- type SearchUnauthorized
- type SearchUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for search API
func (*Client) ListSortOptions ¶
func (a *Client) ListSortOptions(params *ListSortOptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSortOptionsOK, error)
ListSortOptions lists search sorting options
func (*Client) Search ¶
func (a *Client) Search(params *SearchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchOK, error)
Search search API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ListSortOptions(params *ListSortOptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSortOptionsOK, error) Search(params *SearchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new search API client.
type ListSortOptionsOK ¶
type ListSortOptionsOK struct {
Payload *models.ListSortOptionsOKBody
}
ListSortOptionsOK describes a response with status code 200, with default header values.
(empty)
func NewListSortOptionsOK ¶
func NewListSortOptionsOK() *ListSortOptionsOK
NewListSortOptionsOK creates a ListSortOptionsOK with default headers values
func (*ListSortOptionsOK) Error ¶
func (o *ListSortOptionsOK) Error() string
func (*ListSortOptionsOK) GetPayload ¶
func (o *ListSortOptionsOK) GetPayload() *models.ListSortOptionsOKBody
type ListSortOptionsParams ¶
type ListSortOptionsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSortOptionsParams contains all the parameters to send to the API endpoint
for the list sort options operation. Typically these are written to a http.Request.
func NewListSortOptionsParams ¶
func NewListSortOptionsParams() *ListSortOptionsParams
NewListSortOptionsParams creates a new ListSortOptionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListSortOptionsParamsWithContext ¶
func NewListSortOptionsParamsWithContext(ctx context.Context) *ListSortOptionsParams
NewListSortOptionsParamsWithContext creates a new ListSortOptionsParams object with the ability to set a context for a request.
func NewListSortOptionsParamsWithHTTPClient ¶
func NewListSortOptionsParamsWithHTTPClient(client *http.Client) *ListSortOptionsParams
NewListSortOptionsParamsWithHTTPClient creates a new ListSortOptionsParams object with the ability to set a custom HTTPClient for a request.
func NewListSortOptionsParamsWithTimeout ¶
func NewListSortOptionsParamsWithTimeout(timeout time.Duration) *ListSortOptionsParams
NewListSortOptionsParamsWithTimeout creates a new ListSortOptionsParams object with the ability to set a timeout on a request.
func (*ListSortOptionsParams) SetContext ¶
func (o *ListSortOptionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list sort options params
func (*ListSortOptionsParams) SetDefaults ¶
func (o *ListSortOptionsParams) SetDefaults()
SetDefaults hydrates default values in the list sort options params (not the query body).
All values with no default are reset to their zero value.
func (*ListSortOptionsParams) SetHTTPClient ¶
func (o *ListSortOptionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list sort options params
func (*ListSortOptionsParams) SetTimeout ¶
func (o *ListSortOptionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list sort options params
func (*ListSortOptionsParams) WithContext ¶
func (o *ListSortOptionsParams) WithContext(ctx context.Context) *ListSortOptionsParams
WithContext adds the context to the list sort options params
func (*ListSortOptionsParams) WithDefaults ¶
func (o *ListSortOptionsParams) WithDefaults() *ListSortOptionsParams
WithDefaults hydrates default values in the list sort options params (not the query body).
All values with no default are reset to their zero value.
func (*ListSortOptionsParams) WithHTTPClient ¶
func (o *ListSortOptionsParams) WithHTTPClient(client *http.Client) *ListSortOptionsParams
WithHTTPClient adds the HTTPClient to the list sort options params
func (*ListSortOptionsParams) WithTimeout ¶
func (o *ListSortOptionsParams) WithTimeout(timeout time.Duration) *ListSortOptionsParams
WithTimeout adds the timeout to the list sort options params
func (*ListSortOptionsParams) WriteToRequest ¶
func (o *ListSortOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSortOptionsReader ¶
type ListSortOptionsReader struct {
// contains filtered or unexported fields
}
ListSortOptionsReader is a Reader for the ListSortOptions structure.
func (*ListSortOptionsReader) ReadResponse ¶
func (o *ListSortOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSortOptionsUnauthorized ¶
type ListSortOptionsUnauthorized struct {
}ListSortOptionsUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewListSortOptionsUnauthorized ¶
func NewListSortOptionsUnauthorized() *ListSortOptionsUnauthorized
NewListSortOptionsUnauthorized creates a ListSortOptionsUnauthorized with default headers values
func (*ListSortOptionsUnauthorized) Error ¶
func (o *ListSortOptionsUnauthorized) Error() string
func (*ListSortOptionsUnauthorized) GetPayload ¶
func (o *ListSortOptionsUnauthorized) GetPayload() *models.ErrorResponseBody
type SearchInternalServerError ¶
type SearchInternalServerError struct {
Payload *models.ErrorResponseBody
}
SearchInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewSearchInternalServerError ¶
func NewSearchInternalServerError() *SearchInternalServerError
NewSearchInternalServerError creates a SearchInternalServerError with default headers values
func (*SearchInternalServerError) Error ¶
func (o *SearchInternalServerError) Error() string
func (*SearchInternalServerError) GetPayload ¶
func (o *SearchInternalServerError) GetPayload() *models.ErrorResponseBody
type SearchOK ¶
SearchOK describes a response with status code 200, with default header values.
(empty)
func NewSearchOK ¶
func NewSearchOK() *SearchOK
NewSearchOK creates a SearchOK with default headers values
func (*SearchOK) GetPayload ¶
type SearchParams ¶
type SearchParams struct { /* DashboardIds. List of dashboard id’s to search for */ DashboardIds []int64 /* DashboardUIDs. List of dashboard uid’s to search for */ DashboardUIDs []string /* FolderIds. List of folder id’s to search in for dashboards */ FolderIds []int64 /* Limit. Limit the number of returned results (max 5000) Format: int64 */ Limit *int64 /* Page. Use this parameter to access hits beyond limit. Numbering starts at 1. limit param acts as page size. Only available in Grafana v6.2+. Format: int64 */ Page *int64 /* Permission. Set to `Edit` to return dashboards/folders that the user can edit Default: "View" */ Permission *string /* Query. Search Query */ Query *string /* Sort. Sort method; for listing all the possible sort methods use the search sorting endpoint. Default: "alpha-asc" */ Sort *string /* Starred. Flag indicating if only starred Dashboards should be returned */ Starred *bool /* Tag. List of tags to search for */ Tag []string /* Type. Type to search for, dash-folder or dash-db */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchParams contains all the parameters to send to the API endpoint
for the search operation. Typically these are written to a http.Request.
func NewSearchParams ¶
func NewSearchParams() *SearchParams
NewSearchParams creates a new SearchParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSearchParamsWithContext ¶
func NewSearchParamsWithContext(ctx context.Context) *SearchParams
NewSearchParamsWithContext creates a new SearchParams object with the ability to set a context for a request.
func NewSearchParamsWithHTTPClient ¶
func NewSearchParamsWithHTTPClient(client *http.Client) *SearchParams
NewSearchParamsWithHTTPClient creates a new SearchParams object with the ability to set a custom HTTPClient for a request.
func NewSearchParamsWithTimeout ¶
func NewSearchParamsWithTimeout(timeout time.Duration) *SearchParams
NewSearchParamsWithTimeout creates a new SearchParams object with the ability to set a timeout on a request.
func (*SearchParams) SetContext ¶
func (o *SearchParams) SetContext(ctx context.Context)
SetContext adds the context to the search params
func (*SearchParams) SetDashboardIds ¶
func (o *SearchParams) SetDashboardIds(dashboardIds []int64)
SetDashboardIds adds the dashboardIds to the search params
func (*SearchParams) SetDashboardUIDs ¶
func (o *SearchParams) SetDashboardUIDs(dashboardUIDs []string)
SetDashboardUIDs adds the dashboardUiDs to the search params
func (*SearchParams) SetDefaults ¶
func (o *SearchParams) SetDefaults()
SetDefaults hydrates default values in the search params (not the query body).
All values with no default are reset to their zero value.
func (*SearchParams) SetFolderIds ¶
func (o *SearchParams) SetFolderIds(folderIds []int64)
SetFolderIds adds the folderIds to the search params
func (*SearchParams) SetHTTPClient ¶
func (o *SearchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search params
func (*SearchParams) SetLimit ¶
func (o *SearchParams) SetLimit(limit *int64)
SetLimit adds the limit to the search params
func (*SearchParams) SetPage ¶
func (o *SearchParams) SetPage(page *int64)
SetPage adds the page to the search params
func (*SearchParams) SetPermission ¶
func (o *SearchParams) SetPermission(permission *string)
SetPermission adds the permission to the search params
func (*SearchParams) SetQuery ¶
func (o *SearchParams) SetQuery(query *string)
SetQuery adds the query to the search params
func (*SearchParams) SetSort ¶
func (o *SearchParams) SetSort(sort *string)
SetSort adds the sort to the search params
func (*SearchParams) SetStarred ¶
func (o *SearchParams) SetStarred(starred *bool)
SetStarred adds the starred to the search params
func (*SearchParams) SetTag ¶
func (o *SearchParams) SetTag(tag []string)
SetTag adds the tag to the search params
func (*SearchParams) SetTimeout ¶
func (o *SearchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search params
func (*SearchParams) SetType ¶
func (o *SearchParams) SetType(typeVar *string)
SetType adds the type to the search params
func (*SearchParams) WithContext ¶
func (o *SearchParams) WithContext(ctx context.Context) *SearchParams
WithContext adds the context to the search params
func (*SearchParams) WithDashboardIds ¶
func (o *SearchParams) WithDashboardIds(dashboardIds []int64) *SearchParams
WithDashboardIds adds the dashboardIds to the search params
func (*SearchParams) WithDashboardUIDs ¶
func (o *SearchParams) WithDashboardUIDs(dashboardUIDs []string) *SearchParams
WithDashboardUIDs adds the dashboardUIDs to the search params
func (*SearchParams) WithDefaults ¶
func (o *SearchParams) WithDefaults() *SearchParams
WithDefaults hydrates default values in the search params (not the query body).
All values with no default are reset to their zero value.
func (*SearchParams) WithFolderIds ¶
func (o *SearchParams) WithFolderIds(folderIds []int64) *SearchParams
WithFolderIds adds the folderIds to the search params
func (*SearchParams) WithHTTPClient ¶
func (o *SearchParams) WithHTTPClient(client *http.Client) *SearchParams
WithHTTPClient adds the HTTPClient to the search params
func (*SearchParams) WithLimit ¶
func (o *SearchParams) WithLimit(limit *int64) *SearchParams
WithLimit adds the limit to the search params
func (*SearchParams) WithPage ¶
func (o *SearchParams) WithPage(page *int64) *SearchParams
WithPage adds the page to the search params
func (*SearchParams) WithPermission ¶
func (o *SearchParams) WithPermission(permission *string) *SearchParams
WithPermission adds the permission to the search params
func (*SearchParams) WithQuery ¶
func (o *SearchParams) WithQuery(query *string) *SearchParams
WithQuery adds the query to the search params
func (*SearchParams) WithSort ¶
func (o *SearchParams) WithSort(sort *string) *SearchParams
WithSort adds the sort to the search params
func (*SearchParams) WithStarred ¶
func (o *SearchParams) WithStarred(starred *bool) *SearchParams
WithStarred adds the starred to the search params
func (*SearchParams) WithTag ¶
func (o *SearchParams) WithTag(tag []string) *SearchParams
WithTag adds the tag to the search params
func (*SearchParams) WithTimeout ¶
func (o *SearchParams) WithTimeout(timeout time.Duration) *SearchParams
WithTimeout adds the timeout to the search params
func (*SearchParams) WithType ¶
func (o *SearchParams) WithType(typeVar *string) *SearchParams
WithType adds the typeVar to the search params
func (*SearchParams) WriteToRequest ¶
func (o *SearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchReader ¶
type SearchReader struct {
// contains filtered or unexported fields
}
SearchReader is a Reader for the Search structure.
func (*SearchReader) ReadResponse ¶
func (o *SearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchUnauthorized ¶
type SearchUnauthorized struct {
}SearchUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewSearchUnauthorized ¶
func NewSearchUnauthorized() *SearchUnauthorized
NewSearchUnauthorized creates a SearchUnauthorized with default headers values
func (*SearchUnauthorized) Error ¶
func (o *SearchUnauthorized) Error() string
func (*SearchUnauthorized) GetPayload ¶
func (o *SearchUnauthorized) GetPayload() *models.ErrorResponseBody
type SearchUnprocessableEntity ¶
type SearchUnprocessableEntity struct {
Payload *models.ErrorResponseBody
}
SearchUnprocessableEntity describes a response with status code 422, with default header values.
UnprocessableEntityError
func NewSearchUnprocessableEntity ¶
func NewSearchUnprocessableEntity() *SearchUnprocessableEntity
NewSearchUnprocessableEntity creates a SearchUnprocessableEntity with default headers values
func (*SearchUnprocessableEntity) Error ¶
func (o *SearchUnprocessableEntity) Error() string
func (*SearchUnprocessableEntity) GetPayload ¶
func (o *SearchUnprocessableEntity) GetPayload() *models.ErrorResponseBody