operations

package
v0.0.0-...-14d5a85 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 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 operations API

func (*Client) PrometheusResourceGetGet

func (a *Client) PrometheusResourceGetGet(params *PrometheusResourceGetGetParams, opts ...ClientOption) (*PrometheusResourceGetGetOK, error)

PrometheusResourceGetGet prometheus resource get get 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 {
	PrometheusResourceGetGet(params *PrometheusResourceGetGetParams, opts ...ClientOption) (*PrometheusResourceGetGetOK, 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 operations API client.

type PrometheusResourceGetGetOK

type PrometheusResourceGetGetOK struct {
	Payload *models.Representation
}

PrometheusResourceGetGetOK describes a response with status code 200, with default header values.

successful operation

func NewPrometheusResourceGetGetOK

func NewPrometheusResourceGetGetOK() *PrometheusResourceGetGetOK

NewPrometheusResourceGetGetOK creates a PrometheusResourceGetGetOK with default headers values

func (*PrometheusResourceGetGetOK) Code

func (o *PrometheusResourceGetGetOK) Code() int

Code gets the status code for the prometheus resource get get o k response

func (*PrometheusResourceGetGetOK) Error

func (*PrometheusResourceGetGetOK) GetPayload

func (*PrometheusResourceGetGetOK) IsClientError

func (o *PrometheusResourceGetGetOK) IsClientError() bool

IsClientError returns true when this prometheus resource get get o k response has a 4xx status code

func (*PrometheusResourceGetGetOK) IsCode

func (o *PrometheusResourceGetGetOK) IsCode(code int) bool

IsCode returns true when this prometheus resource get get o k response a status code equal to that given

func (*PrometheusResourceGetGetOK) IsRedirect

func (o *PrometheusResourceGetGetOK) IsRedirect() bool

IsRedirect returns true when this prometheus resource get get o k response has a 3xx status code

func (*PrometheusResourceGetGetOK) IsServerError

func (o *PrometheusResourceGetGetOK) IsServerError() bool

IsServerError returns true when this prometheus resource get get o k response has a 5xx status code

func (*PrometheusResourceGetGetOK) IsSuccess

func (o *PrometheusResourceGetGetOK) IsSuccess() bool

IsSuccess returns true when this prometheus resource get get o k response has a 2xx status code

func (*PrometheusResourceGetGetOK) String

func (o *PrometheusResourceGetGetOK) String() string

type PrometheusResourceGetGetParams

type PrometheusResourceGetGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PrometheusResourceGetGetParams contains all the parameters to send to the API endpoint

for the prometheus resource get get operation.

Typically these are written to a http.Request.

func NewPrometheusResourceGetGetParams

func NewPrometheusResourceGetGetParams() *PrometheusResourceGetGetParams

NewPrometheusResourceGetGetParams creates a new PrometheusResourceGetGetParams 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 NewPrometheusResourceGetGetParamsWithContext

func NewPrometheusResourceGetGetParamsWithContext(ctx context.Context) *PrometheusResourceGetGetParams

NewPrometheusResourceGetGetParamsWithContext creates a new PrometheusResourceGetGetParams object with the ability to set a context for a request.

func NewPrometheusResourceGetGetParamsWithHTTPClient

func NewPrometheusResourceGetGetParamsWithHTTPClient(client *http.Client) *PrometheusResourceGetGetParams

NewPrometheusResourceGetGetParamsWithHTTPClient creates a new PrometheusResourceGetGetParams object with the ability to set a custom HTTPClient for a request.

func NewPrometheusResourceGetGetParamsWithTimeout

func NewPrometheusResourceGetGetParamsWithTimeout(timeout time.Duration) *PrometheusResourceGetGetParams

NewPrometheusResourceGetGetParamsWithTimeout creates a new PrometheusResourceGetGetParams object with the ability to set a timeout on a request.

func (*PrometheusResourceGetGetParams) SetContext

func (o *PrometheusResourceGetGetParams) SetContext(ctx context.Context)

SetContext adds the context to the prometheus resource get get params

func (*PrometheusResourceGetGetParams) SetDefaults

func (o *PrometheusResourceGetGetParams) SetDefaults()

SetDefaults hydrates default values in the prometheus resource get get params (not the query body).

All values with no default are reset to their zero value.

func (*PrometheusResourceGetGetParams) SetHTTPClient

func (o *PrometheusResourceGetGetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the prometheus resource get get params

func (*PrometheusResourceGetGetParams) SetTimeout

func (o *PrometheusResourceGetGetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the prometheus resource get get params

func (*PrometheusResourceGetGetParams) WithContext

WithContext adds the context to the prometheus resource get get params

func (*PrometheusResourceGetGetParams) WithDefaults

WithDefaults hydrates default values in the prometheus resource get get params (not the query body).

All values with no default are reset to their zero value.

func (*PrometheusResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the prometheus resource get get params

func (*PrometheusResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the prometheus resource get get params

func (*PrometheusResourceGetGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PrometheusResourceGetGetReader

type PrometheusResourceGetGetReader struct {
	// contains filtered or unexported fields
}

PrometheusResourceGetGetReader is a Reader for the PrometheusResourceGetGet structure.

func (*PrometheusResourceGetGetReader) ReadResponse

func (o *PrometheusResourceGetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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