Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GrafanaDashboardOK
- type GrafanaDashboardParams
- func NewGrafanaDashboardParams() *GrafanaDashboardParams
- func NewGrafanaDashboardParamsWithContext(ctx context.Context) *GrafanaDashboardParams
- func NewGrafanaDashboardParamsWithHTTPClient(client *http.Client) *GrafanaDashboardParams
- func NewGrafanaDashboardParamsWithTimeout(timeout time.Duration) *GrafanaDashboardParams
- func (o *GrafanaDashboardParams) SetContext(ctx context.Context)
- func (o *GrafanaDashboardParams) SetDefaults()
- func (o *GrafanaDashboardParams) SetHTTPClient(client *http.Client)
- func (o *GrafanaDashboardParams) SetTimeout(timeout time.Duration)
- func (o *GrafanaDashboardParams) WithContext(ctx context.Context) *GrafanaDashboardParams
- func (o *GrafanaDashboardParams) WithDefaults() *GrafanaDashboardParams
- func (o *GrafanaDashboardParams) WithHTTPClient(client *http.Client) *GrafanaDashboardParams
- func (o *GrafanaDashboardParams) WithTimeout(timeout time.Duration) *GrafanaDashboardParams
- func (o *GrafanaDashboardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GrafanaDashboardReader
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 grafana dashboard API
func (*Client) GrafanaDashboard ¶
func (a *Client) GrafanaDashboard(params *GrafanaDashboardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrafanaDashboardOK, error)
GrafanaDashboard gets grafana dashboard
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 { GrafanaDashboard(params *GrafanaDashboardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrafanaDashboardOK, 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 grafana dashboard API client.
type GrafanaDashboardOK ¶
type GrafanaDashboardOK struct {
Payload string
}
GrafanaDashboardOK describes a response with status code 200, with default header values.
successful operation
func NewGrafanaDashboardOK ¶
func NewGrafanaDashboardOK() *GrafanaDashboardOK
NewGrafanaDashboardOK creates a GrafanaDashboardOK with default headers values
func (*GrafanaDashboardOK) Error ¶
func (o *GrafanaDashboardOK) Error() string
func (*GrafanaDashboardOK) GetPayload ¶
func (o *GrafanaDashboardOK) GetPayload() string
type GrafanaDashboardParams ¶
type GrafanaDashboardParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GrafanaDashboardParams contains all the parameters to send to the API endpoint
for the grafana dashboard operation. Typically these are written to a http.Request.
func NewGrafanaDashboardParams ¶
func NewGrafanaDashboardParams() *GrafanaDashboardParams
NewGrafanaDashboardParams creates a new GrafanaDashboardParams 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 NewGrafanaDashboardParamsWithContext ¶
func NewGrafanaDashboardParamsWithContext(ctx context.Context) *GrafanaDashboardParams
NewGrafanaDashboardParamsWithContext creates a new GrafanaDashboardParams object with the ability to set a context for a request.
func NewGrafanaDashboardParamsWithHTTPClient ¶
func NewGrafanaDashboardParamsWithHTTPClient(client *http.Client) *GrafanaDashboardParams
NewGrafanaDashboardParamsWithHTTPClient creates a new GrafanaDashboardParams object with the ability to set a custom HTTPClient for a request.
func NewGrafanaDashboardParamsWithTimeout ¶
func NewGrafanaDashboardParamsWithTimeout(timeout time.Duration) *GrafanaDashboardParams
NewGrafanaDashboardParamsWithTimeout creates a new GrafanaDashboardParams object with the ability to set a timeout on a request.
func (*GrafanaDashboardParams) SetContext ¶
func (o *GrafanaDashboardParams) SetContext(ctx context.Context)
SetContext adds the context to the grafana dashboard params
func (*GrafanaDashboardParams) SetDefaults ¶
func (o *GrafanaDashboardParams) SetDefaults()
SetDefaults hydrates default values in the grafana dashboard params (not the query body).
All values with no default are reset to their zero value.
func (*GrafanaDashboardParams) SetHTTPClient ¶
func (o *GrafanaDashboardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the grafana dashboard params
func (*GrafanaDashboardParams) SetTimeout ¶
func (o *GrafanaDashboardParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the grafana dashboard params
func (*GrafanaDashboardParams) WithContext ¶
func (o *GrafanaDashboardParams) WithContext(ctx context.Context) *GrafanaDashboardParams
WithContext adds the context to the grafana dashboard params
func (*GrafanaDashboardParams) WithDefaults ¶
func (o *GrafanaDashboardParams) WithDefaults() *GrafanaDashboardParams
WithDefaults hydrates default values in the grafana dashboard params (not the query body).
All values with no default are reset to their zero value.
func (*GrafanaDashboardParams) WithHTTPClient ¶
func (o *GrafanaDashboardParams) WithHTTPClient(client *http.Client) *GrafanaDashboardParams
WithHTTPClient adds the HTTPClient to the grafana dashboard params
func (*GrafanaDashboardParams) WithTimeout ¶
func (o *GrafanaDashboardParams) WithTimeout(timeout time.Duration) *GrafanaDashboardParams
WithTimeout adds the timeout to the grafana dashboard params
func (*GrafanaDashboardParams) WriteToRequest ¶
func (o *GrafanaDashboardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GrafanaDashboardReader ¶
type GrafanaDashboardReader struct {
// contains filtered or unexported fields
}
GrafanaDashboardReader is a Reader for the GrafanaDashboard structure.
func (*GrafanaDashboardReader) ReadResponse ¶
func (o *GrafanaDashboardReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.