metrics_token

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 is the option for 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.

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

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 {
	Payload apiserver_params.APIErrorResponse
}

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 (*GetMetricsTokenUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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