features

package
v0.0.0-...-52d730d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetFeatureFlagsBadRequestCode int = 400

GetFeatureFlagsBadRequestCode is the HTTP code returned for type GetFeatureFlagsBadRequest

View Source
const GetFeatureFlagsInternalServerErrorCode int = 500

GetFeatureFlagsInternalServerErrorCode is the HTTP code returned for type GetFeatureFlagsInternalServerError

View Source
const GetFeatureFlagsOKCode int = 200

GetFeatureFlagsOKCode is the HTTP code returned for type GetFeatureFlagsOK

View Source
const GetFeatureFlagsUnauthorizedCode int = 401

GetFeatureFlagsUnauthorizedCode is the HTTP code returned for type GetFeatureFlagsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFeatureFlags

type GetFeatureFlags struct {
	Context *middleware.Context
	Handler GetFeatureFlagsHandler
}

GetFeatureFlags swagger:route GET /api/features features getFeatureFlags

Retrieve list of features

func NewGetFeatureFlags

func NewGetFeatureFlags(ctx *middleware.Context, handler GetFeatureFlagsHandler) *GetFeatureFlags

NewGetFeatureFlags creates a new http.Handler for the get feature flags operation

func (*GetFeatureFlags) ServeHTTP

func (o *GetFeatureFlags) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetFeatureFlagsBadRequest

type GetFeatureFlagsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetFeatureFlagsBadRequest Bad Request

swagger:response getFeatureFlagsBadRequest

func NewGetFeatureFlagsBadRequest

func NewGetFeatureFlagsBadRequest() *GetFeatureFlagsBadRequest

NewGetFeatureFlagsBadRequest creates GetFeatureFlagsBadRequest with default headers values

func (*GetFeatureFlagsBadRequest) SetPayload

func (o *GetFeatureFlagsBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the get feature flags bad request response

func (*GetFeatureFlagsBadRequest) WithPayload

WithPayload adds the payload to the get feature flags bad request response

func (*GetFeatureFlagsBadRequest) WriteResponse

func (o *GetFeatureFlagsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetFeatureFlagsHandler

type GetFeatureFlagsHandler interface {
	Handle(GetFeatureFlagsParams) middleware.Responder
}

GetFeatureFlagsHandler interface for that can handle valid get feature flags params

type GetFeatureFlagsHandlerFunc

type GetFeatureFlagsHandlerFunc func(GetFeatureFlagsParams) middleware.Responder

GetFeatureFlagsHandlerFunc turns a function with the right signature into a get feature flags handler

func (GetFeatureFlagsHandlerFunc) Handle

Handle executing the request and returning a response

type GetFeatureFlagsInternalServerError

type GetFeatureFlagsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetFeatureFlagsInternalServerError Internal server error

swagger:response getFeatureFlagsInternalServerError

func NewGetFeatureFlagsInternalServerError

func NewGetFeatureFlagsInternalServerError() *GetFeatureFlagsInternalServerError

NewGetFeatureFlagsInternalServerError creates GetFeatureFlagsInternalServerError with default headers values

func (*GetFeatureFlagsInternalServerError) SetPayload

func (o *GetFeatureFlagsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get feature flags internal server error response

func (*GetFeatureFlagsInternalServerError) WithPayload

WithPayload adds the payload to the get feature flags internal server error response

func (*GetFeatureFlagsInternalServerError) WriteResponse

WriteResponse to the client

type GetFeatureFlagsOK

type GetFeatureFlagsOK struct {

	/*
	  In: Body
	*/
	Payload models.Features `json:"body,omitempty"`
}

GetFeatureFlagsOK Successful retrieval of feature flags

swagger:response getFeatureFlagsOK

func NewGetFeatureFlagsOK

func NewGetFeatureFlagsOK() *GetFeatureFlagsOK

NewGetFeatureFlagsOK creates GetFeatureFlagsOK with default headers values

func (*GetFeatureFlagsOK) SetPayload

func (o *GetFeatureFlagsOK) SetPayload(payload models.Features)

SetPayload sets the payload to the get feature flags o k response

func (*GetFeatureFlagsOK) WithPayload

func (o *GetFeatureFlagsOK) WithPayload(payload models.Features) *GetFeatureFlagsOK

WithPayload adds the payload to the get feature flags o k response

func (*GetFeatureFlagsOK) WriteResponse

func (o *GetFeatureFlagsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetFeatureFlagsParams

type GetFeatureFlagsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetFeatureFlagsParams contains all the bound params for the get feature flags operation typically these are obtained from a http.Request

swagger:parameters getFeatureFlags

func NewGetFeatureFlagsParams

func NewGetFeatureFlagsParams() GetFeatureFlagsParams

NewGetFeatureFlagsParams creates a new GetFeatureFlagsParams object no default values defined in spec.

func (*GetFeatureFlagsParams) BindRequest

func (o *GetFeatureFlagsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetFeatureFlagsParams() beforehand.

type GetFeatureFlagsURL

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

GetFeatureFlagsURL generates an URL for the get feature flags operation

func (*GetFeatureFlagsURL) Build

func (o *GetFeatureFlagsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetFeatureFlagsURL) BuildFull

func (o *GetFeatureFlagsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetFeatureFlagsURL) Must

func (o *GetFeatureFlagsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetFeatureFlagsURL) SetBasePath

func (o *GetFeatureFlagsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetFeatureFlagsURL) String

func (o *GetFeatureFlagsURL) String() string

String returns the string representation of the path with query string

func (*GetFeatureFlagsURL) StringFull

func (o *GetFeatureFlagsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetFeatureFlagsURL) WithBasePath

func (o *GetFeatureFlagsURL) WithBasePath(bp string) *GetFeatureFlagsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetFeatureFlagsUnauthorized

type GetFeatureFlagsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetFeatureFlagsUnauthorized Incorrect credentials

swagger:response getFeatureFlagsUnauthorized

func NewGetFeatureFlagsUnauthorized

func NewGetFeatureFlagsUnauthorized() *GetFeatureFlagsUnauthorized

NewGetFeatureFlagsUnauthorized creates GetFeatureFlagsUnauthorized with default headers values

func (*GetFeatureFlagsUnauthorized) SetPayload

func (o *GetFeatureFlagsUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the get feature flags unauthorized response

func (*GetFeatureFlagsUnauthorized) WithPayload

WithPayload adds the payload to the get feature flags unauthorized response

func (*GetFeatureFlagsUnauthorized) WriteResponse

func (o *GetFeatureFlagsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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