features

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 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 features API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new features API client.

func (*Client) GetFeatureFlags

func (a *Client) GetFeatureFlags(params *GetFeatureFlagsParams) (*GetFeatureFlagsOK, error)

GetFeatureFlags retrieves list of features

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetFeatureFlagsBadRequest

type GetFeatureFlagsBadRequest struct {
	Payload *models.Error
}

GetFeatureFlagsBadRequest handles this case with default header values.

Bad Request

func NewGetFeatureFlagsBadRequest

func NewGetFeatureFlagsBadRequest() *GetFeatureFlagsBadRequest

NewGetFeatureFlagsBadRequest creates a GetFeatureFlagsBadRequest with default headers values

func (*GetFeatureFlagsBadRequest) Error

func (o *GetFeatureFlagsBadRequest) Error() string

func (*GetFeatureFlagsBadRequest) GetPayload

func (o *GetFeatureFlagsBadRequest) GetPayload() *models.Error

type GetFeatureFlagsInternalServerError

type GetFeatureFlagsInternalServerError struct {
	Payload *models.Error
}

GetFeatureFlagsInternalServerError handles this case with default header values.

Internal server error

func NewGetFeatureFlagsInternalServerError

func NewGetFeatureFlagsInternalServerError() *GetFeatureFlagsInternalServerError

NewGetFeatureFlagsInternalServerError creates a GetFeatureFlagsInternalServerError with default headers values

func (*GetFeatureFlagsInternalServerError) Error

func (*GetFeatureFlagsInternalServerError) GetPayload

type GetFeatureFlagsOK

type GetFeatureFlagsOK struct {
	Payload models.Features
}

GetFeatureFlagsOK handles this case with default header values.

Successful retrieval of feature flags

func NewGetFeatureFlagsOK

func NewGetFeatureFlagsOK() *GetFeatureFlagsOK

NewGetFeatureFlagsOK creates a GetFeatureFlagsOK with default headers values

func (*GetFeatureFlagsOK) Error

func (o *GetFeatureFlagsOK) Error() string

func (*GetFeatureFlagsOK) GetPayload

func (o *GetFeatureFlagsOK) GetPayload() models.Features

type GetFeatureFlagsParams

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

GetFeatureFlagsParams contains all the parameters to send to the API endpoint for the get feature flags operation typically these are written to a http.Request

func NewGetFeatureFlagsParams

func NewGetFeatureFlagsParams() *GetFeatureFlagsParams

NewGetFeatureFlagsParams creates a new GetFeatureFlagsParams object with the default values initialized.

func NewGetFeatureFlagsParamsWithContext

func NewGetFeatureFlagsParamsWithContext(ctx context.Context) *GetFeatureFlagsParams

NewGetFeatureFlagsParamsWithContext creates a new GetFeatureFlagsParams object with the default values initialized, and the ability to set a context for a request

func NewGetFeatureFlagsParamsWithHTTPClient

func NewGetFeatureFlagsParamsWithHTTPClient(client *http.Client) *GetFeatureFlagsParams

NewGetFeatureFlagsParamsWithHTTPClient creates a new GetFeatureFlagsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetFeatureFlagsParamsWithTimeout

func NewGetFeatureFlagsParamsWithTimeout(timeout time.Duration) *GetFeatureFlagsParams

NewGetFeatureFlagsParamsWithTimeout creates a new GetFeatureFlagsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetFeatureFlagsParams) SetContext

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

SetContext adds the context to the get feature flags params

func (*GetFeatureFlagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get feature flags params

func (*GetFeatureFlagsParams) SetTimeout

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

SetTimeout adds the timeout to the get feature flags params

func (*GetFeatureFlagsParams) WithContext

WithContext adds the context to the get feature flags params

func (*GetFeatureFlagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get feature flags params

func (*GetFeatureFlagsParams) WithTimeout

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

WithTimeout adds the timeout to the get feature flags params

func (*GetFeatureFlagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFeatureFlagsReader

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

GetFeatureFlagsReader is a Reader for the GetFeatureFlags structure.

func (*GetFeatureFlagsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFeatureFlagsUnauthorized

type GetFeatureFlagsUnauthorized struct {
	Payload *models.Error
}

GetFeatureFlagsUnauthorized handles this case with default header values.

Incorrect credentials

func NewGetFeatureFlagsUnauthorized

func NewGetFeatureFlagsUnauthorized() *GetFeatureFlagsUnauthorized

NewGetFeatureFlagsUnauthorized creates a GetFeatureFlagsUnauthorized with default headers values

func (*GetFeatureFlagsUnauthorized) Error

func (*GetFeatureFlagsUnauthorized) GetPayload

func (o *GetFeatureFlagsUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

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