get

package
v0.0.0-...-b339f66 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 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 get API

func (*Client) Gates

func (a *Client) Gates(params *GatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GatesOK, error)

Gates Status of feature gates

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 {
	Gates(params *GatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GatesOK, 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 get API client.

type GatesDefault

type GatesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

GatesDefault describes a response with status code -1, with default header values.

errorResponse

func NewGatesDefault

func NewGatesDefault(code int) *GatesDefault

NewGatesDefault creates a GatesDefault with default headers values

func (*GatesDefault) Code

func (o *GatesDefault) Code() int

Code gets the status code for the gates default response

func (*GatesDefault) Error

func (o *GatesDefault) Error() string

func (*GatesDefault) GetPayload

func (o *GatesDefault) GetPayload() *models.ErrorResponse

func (*GatesDefault) IsClientError

func (o *GatesDefault) IsClientError() bool

IsClientError returns true when this gates default response has a 4xx status code

func (*GatesDefault) IsCode

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

IsCode returns true when this gates default response a status code equal to that given

func (*GatesDefault) IsRedirect

func (o *GatesDefault) IsRedirect() bool

IsRedirect returns true when this gates default response has a 3xx status code

func (*GatesDefault) IsServerError

func (o *GatesDefault) IsServerError() bool

IsServerError returns true when this gates default response has a 5xx status code

func (*GatesDefault) IsSuccess

func (o *GatesDefault) IsSuccess() bool

IsSuccess returns true when this gates default response has a 2xx status code

func (*GatesDefault) String

func (o *GatesDefault) String() string

type GatesForbidden

type GatesForbidden struct {
	Payload *models.ErrorResponse
}

GatesForbidden describes a response with status code 403, with default header values.

errorResponse

func NewGatesForbidden

func NewGatesForbidden() *GatesForbidden

NewGatesForbidden creates a GatesForbidden with default headers values

func (*GatesForbidden) Error

func (o *GatesForbidden) Error() string

func (*GatesForbidden) GetPayload

func (o *GatesForbidden) GetPayload() *models.ErrorResponse

func (*GatesForbidden) IsClientError

func (o *GatesForbidden) IsClientError() bool

IsClientError returns true when this gates forbidden response has a 4xx status code

func (*GatesForbidden) IsCode

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

IsCode returns true when this gates forbidden response a status code equal to that given

func (*GatesForbidden) IsRedirect

func (o *GatesForbidden) IsRedirect() bool

IsRedirect returns true when this gates forbidden response has a 3xx status code

func (*GatesForbidden) IsServerError

func (o *GatesForbidden) IsServerError() bool

IsServerError returns true when this gates forbidden response has a 5xx status code

func (*GatesForbidden) IsSuccess

func (o *GatesForbidden) IsSuccess() bool

IsSuccess returns true when this gates forbidden response has a 2xx status code

func (*GatesForbidden) String

func (o *GatesForbidden) String() string

type GatesOK

type GatesOK struct {
	Payload *models.FeatureGates
}

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

FeatureGates

func NewGatesOK

func NewGatesOK() *GatesOK

NewGatesOK creates a GatesOK with default headers values

func (*GatesOK) Error

func (o *GatesOK) Error() string

func (*GatesOK) GetPayload

func (o *GatesOK) GetPayload() *models.FeatureGates

func (*GatesOK) IsClientError

func (o *GatesOK) IsClientError() bool

IsClientError returns true when this gates o k response has a 4xx status code

func (*GatesOK) IsCode

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

IsCode returns true when this gates o k response a status code equal to that given

func (*GatesOK) IsRedirect

func (o *GatesOK) IsRedirect() bool

IsRedirect returns true when this gates o k response has a 3xx status code

func (*GatesOK) IsServerError

func (o *GatesOK) IsServerError() bool

IsServerError returns true when this gates o k response has a 5xx status code

func (*GatesOK) IsSuccess

func (o *GatesOK) IsSuccess() bool

IsSuccess returns true when this gates o k response has a 2xx status code

func (*GatesOK) String

func (o *GatesOK) String() string

type GatesParams

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

GatesParams contains all the parameters to send to the API endpoint

for the gates operation.

Typically these are written to a http.Request.

func NewGatesParams

func NewGatesParams() *GatesParams

NewGatesParams creates a new GatesParams 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 NewGatesParamsWithContext

func NewGatesParamsWithContext(ctx context.Context) *GatesParams

NewGatesParamsWithContext creates a new GatesParams object with the ability to set a context for a request.

func NewGatesParamsWithHTTPClient

func NewGatesParamsWithHTTPClient(client *http.Client) *GatesParams

NewGatesParamsWithHTTPClient creates a new GatesParams object with the ability to set a custom HTTPClient for a request.

func NewGatesParamsWithTimeout

func NewGatesParamsWithTimeout(timeout time.Duration) *GatesParams

NewGatesParamsWithTimeout creates a new GatesParams object with the ability to set a timeout on a request.

func (*GatesParams) SetContext

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

SetContext adds the context to the gates params

func (*GatesParams) SetDefaults

func (o *GatesParams) SetDefaults()

SetDefaults hydrates default values in the gates params (not the query body).

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

func (*GatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the gates params

func (*GatesParams) SetTimeout

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

SetTimeout adds the timeout to the gates params

func (*GatesParams) WithContext

func (o *GatesParams) WithContext(ctx context.Context) *GatesParams

WithContext adds the context to the gates params

func (*GatesParams) WithDefaults

func (o *GatesParams) WithDefaults() *GatesParams

WithDefaults hydrates default values in the gates params (not the query body).

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

func (*GatesParams) WithHTTPClient

func (o *GatesParams) WithHTTPClient(client *http.Client) *GatesParams

WithHTTPClient adds the HTTPClient to the gates params

func (*GatesParams) WithTimeout

func (o *GatesParams) WithTimeout(timeout time.Duration) *GatesParams

WithTimeout adds the timeout to the gates params

func (*GatesParams) WriteToRequest

func (o *GatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GatesReader

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

GatesReader is a Reader for the Gates structure.

func (*GatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GatesUnauthorized

type GatesUnauthorized struct {
	Payload *models.ErrorResponse
}

GatesUnauthorized describes a response with status code 401, with default header values.

errorResponse

func NewGatesUnauthorized

func NewGatesUnauthorized() *GatesUnauthorized

NewGatesUnauthorized creates a GatesUnauthorized with default headers values

func (*GatesUnauthorized) Error

func (o *GatesUnauthorized) Error() string

func (*GatesUnauthorized) GetPayload

func (o *GatesUnauthorized) GetPayload() *models.ErrorResponse

func (*GatesUnauthorized) IsClientError

func (o *GatesUnauthorized) IsClientError() bool

IsClientError returns true when this gates unauthorized response has a 4xx status code

func (*GatesUnauthorized) IsCode

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

IsCode returns true when this gates unauthorized response a status code equal to that given

func (*GatesUnauthorized) IsRedirect

func (o *GatesUnauthorized) IsRedirect() bool

IsRedirect returns true when this gates unauthorized response has a 3xx status code

func (*GatesUnauthorized) IsServerError

func (o *GatesUnauthorized) IsServerError() bool

IsServerError returns true when this gates unauthorized response has a 5xx status code

func (*GatesUnauthorized) IsSuccess

func (o *GatesUnauthorized) IsSuccess() bool

IsSuccess returns true when this gates unauthorized response has a 2xx status code

func (*GatesUnauthorized) String

func (o *GatesUnauthorized) String() string

Jump to

Keyboard shortcuts

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