Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetMetricsTokenOK
- func (o *GetMetricsTokenOK) Code() int
- func (o *GetMetricsTokenOK) Error() string
- func (o *GetMetricsTokenOK) GetPayload() garm_params.JWTResponse
- func (o *GetMetricsTokenOK) IsClientError() bool
- func (o *GetMetricsTokenOK) IsCode(code int) bool
- func (o *GetMetricsTokenOK) IsRedirect() bool
- func (o *GetMetricsTokenOK) IsServerError() bool
- func (o *GetMetricsTokenOK) IsSuccess() bool
- func (o *GetMetricsTokenOK) String() string
- type GetMetricsTokenParams
- func NewGetMetricsTokenParams() *GetMetricsTokenParams
- func NewGetMetricsTokenParamsWithContext(ctx context.Context) *GetMetricsTokenParams
- func NewGetMetricsTokenParamsWithHTTPClient(client *http.Client) *GetMetricsTokenParams
- func NewGetMetricsTokenParamsWithTimeout(timeout time.Duration) *GetMetricsTokenParams
- func (o *GetMetricsTokenParams) SetContext(ctx context.Context)
- func (o *GetMetricsTokenParams) SetDefaults()
- func (o *GetMetricsTokenParams) SetHTTPClient(client *http.Client)
- func (o *GetMetricsTokenParams) SetTimeout(timeout time.Duration)
- func (o *GetMetricsTokenParams) WithContext(ctx context.Context) *GetMetricsTokenParams
- func (o *GetMetricsTokenParams) WithDefaults() *GetMetricsTokenParams
- func (o *GetMetricsTokenParams) WithHTTPClient(client *http.Client) *GetMetricsTokenParams
- func (o *GetMetricsTokenParams) WithTimeout(timeout time.Duration) *GetMetricsTokenParams
- func (o *GetMetricsTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMetricsTokenReader
- type GetMetricsTokenUnauthorized
- func (o *GetMetricsTokenUnauthorized) Code() int
- func (o *GetMetricsTokenUnauthorized) Error() string
- func (o *GetMetricsTokenUnauthorized) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetMetricsTokenUnauthorized) IsClientError() bool
- func (o *GetMetricsTokenUnauthorized) IsCode(code int) bool
- func (o *GetMetricsTokenUnauthorized) IsRedirect() bool
- func (o *GetMetricsTokenUnauthorized) IsServerError() bool
- func (o *GetMetricsTokenUnauthorized) IsSuccess() bool
- func (o *GetMetricsTokenUnauthorized) String() string
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 metrics token API
func (*Client) GetMetricsToken ¶
func (a *Client) GetMetricsToken(params *GetMetricsTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMetricsTokenOK, error)
GetMetricsToken returns a j w t token that can be used to access the metrics endpoint
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { GetMetricsToken(params *GetMetricsTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMetricsTokenOK, 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 metrics token API client.
func NewClientWithBasicAuth ¶ added in v0.1.5
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new metrics token API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.1.5
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new metrics token API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetMetricsTokenOK ¶
type GetMetricsTokenOK struct {
Payload garm_params.JWTResponse
}
GetMetricsTokenOK describes a response with status code 200, with default header values.
JWTResponse
func NewGetMetricsTokenOK ¶
func NewGetMetricsTokenOK() *GetMetricsTokenOK
NewGetMetricsTokenOK creates a GetMetricsTokenOK with default headers values
func (*GetMetricsTokenOK) Code ¶
func (o *GetMetricsTokenOK) Code() int
Code gets the status code for the get metrics token o k response
func (*GetMetricsTokenOK) Error ¶
func (o *GetMetricsTokenOK) Error() string
func (*GetMetricsTokenOK) GetPayload ¶
func (o *GetMetricsTokenOK) GetPayload() garm_params.JWTResponse
func (*GetMetricsTokenOK) IsClientError ¶
func (o *GetMetricsTokenOK) IsClientError() bool
IsClientError returns true when this get metrics token o k response has a 4xx status code
func (*GetMetricsTokenOK) IsCode ¶
func (o *GetMetricsTokenOK) IsCode(code int) bool
IsCode returns true when this get metrics token o k response a status code equal to that given
func (*GetMetricsTokenOK) IsRedirect ¶
func (o *GetMetricsTokenOK) IsRedirect() bool
IsRedirect returns true when this get metrics token o k response has a 3xx status code
func (*GetMetricsTokenOK) IsServerError ¶
func (o *GetMetricsTokenOK) IsServerError() bool
IsServerError returns true when this get metrics token o k response has a 5xx status code
func (*GetMetricsTokenOK) IsSuccess ¶
func (o *GetMetricsTokenOK) IsSuccess() bool
IsSuccess returns true when this get metrics token o k response has a 2xx status code
func (*GetMetricsTokenOK) String ¶
func (o *GetMetricsTokenOK) String() string
type GetMetricsTokenParams ¶
type GetMetricsTokenParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMetricsTokenParams contains all the parameters to send to the API endpoint
for the get metrics token operation. Typically these are written to a http.Request.
func NewGetMetricsTokenParams ¶
func NewGetMetricsTokenParams() *GetMetricsTokenParams
NewGetMetricsTokenParams creates a new GetMetricsTokenParams 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 NewGetMetricsTokenParamsWithContext ¶
func NewGetMetricsTokenParamsWithContext(ctx context.Context) *GetMetricsTokenParams
NewGetMetricsTokenParamsWithContext creates a new GetMetricsTokenParams object with the ability to set a context for a request.
func NewGetMetricsTokenParamsWithHTTPClient ¶
func NewGetMetricsTokenParamsWithHTTPClient(client *http.Client) *GetMetricsTokenParams
NewGetMetricsTokenParamsWithHTTPClient creates a new GetMetricsTokenParams object with the ability to set a custom HTTPClient for a request.
func NewGetMetricsTokenParamsWithTimeout ¶
func NewGetMetricsTokenParamsWithTimeout(timeout time.Duration) *GetMetricsTokenParams
NewGetMetricsTokenParamsWithTimeout creates a new GetMetricsTokenParams object with the ability to set a timeout on a request.
func (*GetMetricsTokenParams) SetContext ¶
func (o *GetMetricsTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the get metrics token params
func (*GetMetricsTokenParams) SetDefaults ¶
func (o *GetMetricsTokenParams) SetDefaults()
SetDefaults hydrates default values in the get metrics token params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetricsTokenParams) SetHTTPClient ¶
func (o *GetMetricsTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get metrics token params
func (*GetMetricsTokenParams) SetTimeout ¶
func (o *GetMetricsTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get metrics token params
func (*GetMetricsTokenParams) WithContext ¶
func (o *GetMetricsTokenParams) WithContext(ctx context.Context) *GetMetricsTokenParams
WithContext adds the context to the get metrics token params
func (*GetMetricsTokenParams) WithDefaults ¶
func (o *GetMetricsTokenParams) WithDefaults() *GetMetricsTokenParams
WithDefaults hydrates default values in the get metrics token params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetricsTokenParams) WithHTTPClient ¶
func (o *GetMetricsTokenParams) WithHTTPClient(client *http.Client) *GetMetricsTokenParams
WithHTTPClient adds the HTTPClient to the get metrics token params
func (*GetMetricsTokenParams) WithTimeout ¶
func (o *GetMetricsTokenParams) WithTimeout(timeout time.Duration) *GetMetricsTokenParams
WithTimeout adds the timeout to the get metrics token params
func (*GetMetricsTokenParams) WriteToRequest ¶
func (o *GetMetricsTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMetricsTokenReader ¶
type GetMetricsTokenReader struct {
// contains filtered or unexported fields
}
GetMetricsTokenReader is a Reader for the GetMetricsToken structure.
func (*GetMetricsTokenReader) ReadResponse ¶
func (o *GetMetricsTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMetricsTokenUnauthorized ¶
type GetMetricsTokenUnauthorized struct {
}GetMetricsTokenUnauthorized describes a response with status code 401, with default header values.
APIErrorResponse
func NewGetMetricsTokenUnauthorized ¶
func NewGetMetricsTokenUnauthorized() *GetMetricsTokenUnauthorized
NewGetMetricsTokenUnauthorized creates a GetMetricsTokenUnauthorized with default headers values
func (*GetMetricsTokenUnauthorized) Code ¶
func (o *GetMetricsTokenUnauthorized) Code() int
Code gets the status code for the get metrics token unauthorized response
func (*GetMetricsTokenUnauthorized) Error ¶
func (o *GetMetricsTokenUnauthorized) Error() string
func (*GetMetricsTokenUnauthorized) GetPayload ¶
func (o *GetMetricsTokenUnauthorized) GetPayload() apiserver_params.APIErrorResponse
func (*GetMetricsTokenUnauthorized) IsClientError ¶
func (o *GetMetricsTokenUnauthorized) IsClientError() bool
IsClientError returns true when this get metrics token unauthorized response has a 4xx status code
func (*GetMetricsTokenUnauthorized) IsCode ¶
func (o *GetMetricsTokenUnauthorized) IsCode(code int) bool
IsCode returns true when this get metrics token unauthorized response a status code equal to that given
func (*GetMetricsTokenUnauthorized) IsRedirect ¶
func (o *GetMetricsTokenUnauthorized) IsRedirect() bool
IsRedirect returns true when this get metrics token unauthorized response has a 3xx status code
func (*GetMetricsTokenUnauthorized) IsServerError ¶
func (o *GetMetricsTokenUnauthorized) IsServerError() bool
IsServerError returns true when this get metrics token unauthorized response has a 5xx status code
func (*GetMetricsTokenUnauthorized) IsSuccess ¶
func (o *GetMetricsTokenUnauthorized) IsSuccess() bool
IsSuccess returns true when this get metrics token unauthorized response has a 2xx status code
func (*GetMetricsTokenUnauthorized) String ¶
func (o *GetMetricsTokenUnauthorized) String() string