Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GatesDefault
- type GatesForbidden
- type GatesOK
- type GatesParams
- func (o *GatesParams) SetContext(ctx context.Context)
- func (o *GatesParams) SetDefaults()
- func (o *GatesParams) SetHTTPClient(client *http.Client)
- func (o *GatesParams) SetTimeout(timeout time.Duration)
- func (o *GatesParams) WithContext(ctx context.Context) *GatesParams
- func (o *GatesParams) WithDefaults() *GatesParams
- func (o *GatesParams) WithHTTPClient(client *http.Client) *GatesParams
- func (o *GatesParams) WithTimeout(timeout time.Duration) *GatesParams
- func (o *GatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GatesReader
- type GatesUnauthorized
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
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
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) GetPayload ¶
func (o *GatesOK) GetPayload() *models.FeatureGates
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 {
}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