variant

package
v0.0.0-...-aeba832 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateVariantOKCode int = 200

CreateVariantOKCode is the HTTP code returned for type CreateVariantOK

View Source
const DeleteVariantOKCode int = 200

DeleteVariantOKCode is the HTTP code returned for type DeleteVariantOK

View Source
const FindVariantsOKCode int = 200

FindVariantsOKCode is the HTTP code returned for type FindVariantsOK

View Source
const PutVariantOKCode int = 200

PutVariantOKCode is the HTTP code returned for type PutVariantOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateVariant

type CreateVariant struct {
	Context *middleware.Context
	Handler CreateVariantHandler
}
CreateVariant swagger:route POST /flags/{flagID}/variants variant createVariant

CreateVariant create variant API

func NewCreateVariant

func NewCreateVariant(ctx *middleware.Context, handler CreateVariantHandler) *CreateVariant

NewCreateVariant creates a new http.Handler for the create variant operation

func (*CreateVariant) ServeHTTP

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

type CreateVariantDefault

type CreateVariantDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateVariantDefault generic error response

swagger:response createVariantDefault

func NewCreateVariantDefault

func NewCreateVariantDefault(code int) *CreateVariantDefault

NewCreateVariantDefault creates CreateVariantDefault with default headers values

func (*CreateVariantDefault) SetPayload

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

SetPayload sets the payload to the create variant default response

func (*CreateVariantDefault) SetStatusCode

func (o *CreateVariantDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create variant default response

func (*CreateVariantDefault) WithPayload

func (o *CreateVariantDefault) WithPayload(payload *models.Error) *CreateVariantDefault

WithPayload adds the payload to the create variant default response

func (*CreateVariantDefault) WithStatusCode

func (o *CreateVariantDefault) WithStatusCode(code int) *CreateVariantDefault

WithStatusCode adds the status to the create variant default response

func (*CreateVariantDefault) WriteResponse

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

WriteResponse to the client

type CreateVariantHandler

type CreateVariantHandler interface {
	Handle(CreateVariantParams) middleware.Responder
}

CreateVariantHandler interface for that can handle valid create variant params

type CreateVariantHandlerFunc

type CreateVariantHandlerFunc func(CreateVariantParams) middleware.Responder

CreateVariantHandlerFunc turns a function with the right signature into a create variant handler

func (CreateVariantHandlerFunc) Handle

Handle executing the request and returning a response

type CreateVariantOK

type CreateVariantOK struct {

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

CreateVariantOK variant just created

swagger:response createVariantOK

func NewCreateVariantOK

func NewCreateVariantOK() *CreateVariantOK

NewCreateVariantOK creates CreateVariantOK with default headers values

func (*CreateVariantOK) SetPayload

func (o *CreateVariantOK) SetPayload(payload *models.Variant)

SetPayload sets the payload to the create variant o k response

func (*CreateVariantOK) WithPayload

func (o *CreateVariantOK) WithPayload(payload *models.Variant) *CreateVariantOK

WithPayload adds the payload to the create variant o k response

func (*CreateVariantOK) WriteResponse

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

WriteResponse to the client

type CreateVariantParams

type CreateVariantParams struct {

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

	/*create a variant
	  Required: true
	  In: body
	*/
	Body *models.CreateVariantRequest
	/*numeric ID of the flag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
}

CreateVariantParams contains all the bound params for the create variant operation typically these are obtained from a http.Request

swagger:parameters createVariant

func NewCreateVariantParams

func NewCreateVariantParams() CreateVariantParams

NewCreateVariantParams creates a new CreateVariantParams object

There are no default values defined in the spec.

func (*CreateVariantParams) BindRequest

func (o *CreateVariantParams) 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 NewCreateVariantParams() beforehand.

type CreateVariantURL

type CreateVariantURL struct {
	FlagID int64
	// contains filtered or unexported fields
}

CreateVariantURL generates an URL for the create variant operation

func (*CreateVariantURL) Build

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

Build a url path and query string

func (*CreateVariantURL) BuildFull

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

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

func (*CreateVariantURL) Must

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

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

func (*CreateVariantURL) SetBasePath

func (o *CreateVariantURL) 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 (*CreateVariantURL) String

func (o *CreateVariantURL) String() string

String returns the string representation of the path with query string

func (*CreateVariantURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateVariantURL) WithBasePath

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

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 DeleteVariant

type DeleteVariant struct {
	Context *middleware.Context
	Handler DeleteVariantHandler
}
DeleteVariant swagger:route DELETE /flags/{flagID}/variants/{variantID} variant deleteVariant

DeleteVariant delete variant API

func NewDeleteVariant

func NewDeleteVariant(ctx *middleware.Context, handler DeleteVariantHandler) *DeleteVariant

NewDeleteVariant creates a new http.Handler for the delete variant operation

func (*DeleteVariant) ServeHTTP

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

type DeleteVariantDefault

type DeleteVariantDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteVariantDefault generic error response

swagger:response deleteVariantDefault

func NewDeleteVariantDefault

func NewDeleteVariantDefault(code int) *DeleteVariantDefault

NewDeleteVariantDefault creates DeleteVariantDefault with default headers values

func (*DeleteVariantDefault) SetPayload

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

SetPayload sets the payload to the delete variant default response

func (*DeleteVariantDefault) SetStatusCode

func (o *DeleteVariantDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete variant default response

func (*DeleteVariantDefault) WithPayload

func (o *DeleteVariantDefault) WithPayload(payload *models.Error) *DeleteVariantDefault

WithPayload adds the payload to the delete variant default response

func (*DeleteVariantDefault) WithStatusCode

func (o *DeleteVariantDefault) WithStatusCode(code int) *DeleteVariantDefault

WithStatusCode adds the status to the delete variant default response

func (*DeleteVariantDefault) WriteResponse

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

WriteResponse to the client

type DeleteVariantHandler

type DeleteVariantHandler interface {
	Handle(DeleteVariantParams) middleware.Responder
}

DeleteVariantHandler interface for that can handle valid delete variant params

type DeleteVariantHandlerFunc

type DeleteVariantHandlerFunc func(DeleteVariantParams) middleware.Responder

DeleteVariantHandlerFunc turns a function with the right signature into a delete variant handler

func (DeleteVariantHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteVariantOK

type DeleteVariantOK struct {
}

DeleteVariantOK deleted

swagger:response deleteVariantOK

func NewDeleteVariantOK

func NewDeleteVariantOK() *DeleteVariantOK

NewDeleteVariantOK creates DeleteVariantOK with default headers values

func (*DeleteVariantOK) WriteResponse

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

WriteResponse to the client

type DeleteVariantParams

type DeleteVariantParams struct {

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

	/*numeric ID of the flag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
	/*numeric ID of the variant
	  Required: true
	  Minimum: 1
	  In: path
	*/
	VariantID int64
}

DeleteVariantParams contains all the bound params for the delete variant operation typically these are obtained from a http.Request

swagger:parameters deleteVariant

func NewDeleteVariantParams

func NewDeleteVariantParams() DeleteVariantParams

NewDeleteVariantParams creates a new DeleteVariantParams object

There are no default values defined in the spec.

func (*DeleteVariantParams) BindRequest

func (o *DeleteVariantParams) 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 NewDeleteVariantParams() beforehand.

type DeleteVariantURL

type DeleteVariantURL struct {
	FlagID    int64
	VariantID int64
	// contains filtered or unexported fields
}

DeleteVariantURL generates an URL for the delete variant operation

func (*DeleteVariantURL) Build

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

Build a url path and query string

func (*DeleteVariantURL) BuildFull

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

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

func (*DeleteVariantURL) Must

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

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

func (*DeleteVariantURL) SetBasePath

func (o *DeleteVariantURL) 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 (*DeleteVariantURL) String

func (o *DeleteVariantURL) String() string

String returns the string representation of the path with query string

func (*DeleteVariantURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteVariantURL) WithBasePath

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

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 FindVariants

type FindVariants struct {
	Context *middleware.Context
	Handler FindVariantsHandler
}
FindVariants swagger:route GET /flags/{flagID}/variants variant findVariants

FindVariants find variants API

func NewFindVariants

func NewFindVariants(ctx *middleware.Context, handler FindVariantsHandler) *FindVariants

NewFindVariants creates a new http.Handler for the find variants operation

func (*FindVariants) ServeHTTP

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

type FindVariantsDefault

type FindVariantsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

FindVariantsDefault generic error response

swagger:response findVariantsDefault

func NewFindVariantsDefault

func NewFindVariantsDefault(code int) *FindVariantsDefault

NewFindVariantsDefault creates FindVariantsDefault with default headers values

func (*FindVariantsDefault) SetPayload

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

SetPayload sets the payload to the find variants default response

func (*FindVariantsDefault) SetStatusCode

func (o *FindVariantsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the find variants default response

func (*FindVariantsDefault) WithPayload

func (o *FindVariantsDefault) WithPayload(payload *models.Error) *FindVariantsDefault

WithPayload adds the payload to the find variants default response

func (*FindVariantsDefault) WithStatusCode

func (o *FindVariantsDefault) WithStatusCode(code int) *FindVariantsDefault

WithStatusCode adds the status to the find variants default response

func (*FindVariantsDefault) WriteResponse

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

WriteResponse to the client

type FindVariantsHandler

type FindVariantsHandler interface {
	Handle(FindVariantsParams) middleware.Responder
}

FindVariantsHandler interface for that can handle valid find variants params

type FindVariantsHandlerFunc

type FindVariantsHandlerFunc func(FindVariantsParams) middleware.Responder

FindVariantsHandlerFunc turns a function with the right signature into a find variants handler

func (FindVariantsHandlerFunc) Handle

Handle executing the request and returning a response

type FindVariantsOK

type FindVariantsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Variant `json:"body,omitempty"`
}

FindVariantsOK variant ordered by variantID

swagger:response findVariantsOK

func NewFindVariantsOK

func NewFindVariantsOK() *FindVariantsOK

NewFindVariantsOK creates FindVariantsOK with default headers values

func (*FindVariantsOK) SetPayload

func (o *FindVariantsOK) SetPayload(payload []*models.Variant)

SetPayload sets the payload to the find variants o k response

func (*FindVariantsOK) WithPayload

func (o *FindVariantsOK) WithPayload(payload []*models.Variant) *FindVariantsOK

WithPayload adds the payload to the find variants o k response

func (*FindVariantsOK) WriteResponse

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

WriteResponse to the client

type FindVariantsParams

type FindVariantsParams struct {

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

	/*numeric ID of the flag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
}

FindVariantsParams contains all the bound params for the find variants operation typically these are obtained from a http.Request

swagger:parameters findVariants

func NewFindVariantsParams

func NewFindVariantsParams() FindVariantsParams

NewFindVariantsParams creates a new FindVariantsParams object

There are no default values defined in the spec.

func (*FindVariantsParams) BindRequest

func (o *FindVariantsParams) 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 NewFindVariantsParams() beforehand.

type FindVariantsURL

type FindVariantsURL struct {
	FlagID int64
	// contains filtered or unexported fields
}

FindVariantsURL generates an URL for the find variants operation

func (*FindVariantsURL) Build

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

Build a url path and query string

func (*FindVariantsURL) BuildFull

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

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

func (*FindVariantsURL) Must

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

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

func (*FindVariantsURL) SetBasePath

func (o *FindVariantsURL) 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 (*FindVariantsURL) String

func (o *FindVariantsURL) String() string

String returns the string representation of the path with query string

func (*FindVariantsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FindVariantsURL) WithBasePath

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

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 PutVariant

type PutVariant struct {
	Context *middleware.Context
	Handler PutVariantHandler
}
PutVariant swagger:route PUT /flags/{flagID}/variants/{variantID} variant putVariant

PutVariant put variant API

func NewPutVariant

func NewPutVariant(ctx *middleware.Context, handler PutVariantHandler) *PutVariant

NewPutVariant creates a new http.Handler for the put variant operation

func (*PutVariant) ServeHTTP

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

type PutVariantDefault

type PutVariantDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PutVariantDefault generic error response

swagger:response putVariantDefault

func NewPutVariantDefault

func NewPutVariantDefault(code int) *PutVariantDefault

NewPutVariantDefault creates PutVariantDefault with default headers values

func (*PutVariantDefault) SetPayload

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

SetPayload sets the payload to the put variant default response

func (*PutVariantDefault) SetStatusCode

func (o *PutVariantDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put variant default response

func (*PutVariantDefault) WithPayload

func (o *PutVariantDefault) WithPayload(payload *models.Error) *PutVariantDefault

WithPayload adds the payload to the put variant default response

func (*PutVariantDefault) WithStatusCode

func (o *PutVariantDefault) WithStatusCode(code int) *PutVariantDefault

WithStatusCode adds the status to the put variant default response

func (*PutVariantDefault) WriteResponse

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

WriteResponse to the client

type PutVariantHandler

type PutVariantHandler interface {
	Handle(PutVariantParams) middleware.Responder
}

PutVariantHandler interface for that can handle valid put variant params

type PutVariantHandlerFunc

type PutVariantHandlerFunc func(PutVariantParams) middleware.Responder

PutVariantHandlerFunc turns a function with the right signature into a put variant handler

func (PutVariantHandlerFunc) Handle

Handle executing the request and returning a response

type PutVariantOK

type PutVariantOK struct {

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

PutVariantOK variant just updated

swagger:response putVariantOK

func NewPutVariantOK

func NewPutVariantOK() *PutVariantOK

NewPutVariantOK creates PutVariantOK with default headers values

func (*PutVariantOK) SetPayload

func (o *PutVariantOK) SetPayload(payload *models.Variant)

SetPayload sets the payload to the put variant o k response

func (*PutVariantOK) WithPayload

func (o *PutVariantOK) WithPayload(payload *models.Variant) *PutVariantOK

WithPayload adds the payload to the put variant o k response

func (*PutVariantOK) WriteResponse

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

WriteResponse to the client

type PutVariantParams

type PutVariantParams struct {

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

	/*update a variant
	  Required: true
	  In: body
	*/
	Body *models.PutVariantRequest
	/*numeric ID of the flag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
	/*numeric ID of the variant
	  Required: true
	  Minimum: 1
	  In: path
	*/
	VariantID int64
}

PutVariantParams contains all the bound params for the put variant operation typically these are obtained from a http.Request

swagger:parameters putVariant

func NewPutVariantParams

func NewPutVariantParams() PutVariantParams

NewPutVariantParams creates a new PutVariantParams object

There are no default values defined in the spec.

func (*PutVariantParams) BindRequest

func (o *PutVariantParams) 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 NewPutVariantParams() beforehand.

type PutVariantURL

type PutVariantURL struct {
	FlagID    int64
	VariantID int64
	// contains filtered or unexported fields
}

PutVariantURL generates an URL for the put variant operation

func (*PutVariantURL) Build

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

Build a url path and query string

func (*PutVariantURL) BuildFull

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

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

func (*PutVariantURL) Must

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

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

func (*PutVariantURL) SetBasePath

func (o *PutVariantURL) 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 (*PutVariantURL) String

func (o *PutVariantURL) String() string

String returns the string representation of the path with query string

func (*PutVariantURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutVariantURL) WithBasePath

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

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

Jump to

Keyboard shortcuts

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