tag

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateTagOKCode int = 200

CreateTagOKCode is the HTTP code returned for type CreateTagOK

View Source
const DeleteTagOKCode int = 200

DeleteTagOKCode is the HTTP code returned for type DeleteTagOK

View Source
const FindAllTagsOKCode int = 200

FindAllTagsOKCode is the HTTP code returned for type FindAllTagsOK

View Source
const FindTagsOKCode int = 200

FindTagsOKCode is the HTTP code returned for type FindTagsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTag

type CreateTag struct {
	Context *middleware.Context
	Handler CreateTagHandler
}
CreateTag swagger:route POST /flags/{flagID}/tags tag createTag

CreateTag create tag API

func NewCreateTag

func NewCreateTag(ctx *middleware.Context, handler CreateTagHandler) *CreateTag

NewCreateTag creates a new http.Handler for the create tag operation

func (*CreateTag) ServeHTTP

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

type CreateTagDefault

type CreateTagDefault struct {

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

CreateTagDefault generic error response

swagger:response createTagDefault

func NewCreateTagDefault

func NewCreateTagDefault(code int) *CreateTagDefault

NewCreateTagDefault creates CreateTagDefault with default headers values

func (*CreateTagDefault) SetPayload

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

SetPayload sets the payload to the create tag default response

func (*CreateTagDefault) SetStatusCode

func (o *CreateTagDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create tag default response

func (*CreateTagDefault) WithPayload

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

WithPayload adds the payload to the create tag default response

func (*CreateTagDefault) WithStatusCode

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

WithStatusCode adds the status to the create tag default response

func (*CreateTagDefault) WriteResponse

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

WriteResponse to the client

type CreateTagHandler

type CreateTagHandler interface {
	Handle(CreateTagParams) middleware.Responder
}

CreateTagHandler interface for that can handle valid create tag params

type CreateTagHandlerFunc

type CreateTagHandlerFunc func(CreateTagParams) middleware.Responder

CreateTagHandlerFunc turns a function with the right signature into a create tag handler

func (CreateTagHandlerFunc) Handle

Handle executing the request and returning a response

type CreateTagOK

type CreateTagOK struct {

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

CreateTagOK tag just created

swagger:response createTagOK

func NewCreateTagOK

func NewCreateTagOK() *CreateTagOK

NewCreateTagOK creates CreateTagOK with default headers values

func (*CreateTagOK) SetPayload

func (o *CreateTagOK) SetPayload(payload *models.Tag)

SetPayload sets the payload to the create tag o k response

func (*CreateTagOK) WithPayload

func (o *CreateTagOK) WithPayload(payload *models.Tag) *CreateTagOK

WithPayload adds the payload to the create tag o k response

func (*CreateTagOK) WriteResponse

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

WriteResponse to the client

type CreateTagParams

type CreateTagParams struct {

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

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

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

swagger:parameters createTag

func NewCreateTagParams

func NewCreateTagParams() CreateTagParams

NewCreateTagParams creates a new CreateTagParams object

There are no default values defined in the spec.

func (*CreateTagParams) BindRequest

func (o *CreateTagParams) 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 NewCreateTagParams() beforehand.

type CreateTagURL

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

CreateTagURL generates an URL for the create tag operation

func (*CreateTagURL) Build

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

Build a url path and query string

func (*CreateTagURL) BuildFull

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

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

func (*CreateTagURL) Must

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

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

func (*CreateTagURL) SetBasePath

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

func (o *CreateTagURL) String() string

String returns the string representation of the path with query string

func (*CreateTagURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateTagURL) WithBasePath

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

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 DeleteTag

type DeleteTag struct {
	Context *middleware.Context
	Handler DeleteTagHandler
}
DeleteTag swagger:route DELETE /flags/{flagID}/tags/{tagID} tag deleteTag

DeleteTag delete tag API

func NewDeleteTag

func NewDeleteTag(ctx *middleware.Context, handler DeleteTagHandler) *DeleteTag

NewDeleteTag creates a new http.Handler for the delete tag operation

func (*DeleteTag) ServeHTTP

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

type DeleteTagDefault

type DeleteTagDefault struct {

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

DeleteTagDefault generic error response

swagger:response deleteTagDefault

func NewDeleteTagDefault

func NewDeleteTagDefault(code int) *DeleteTagDefault

NewDeleteTagDefault creates DeleteTagDefault with default headers values

func (*DeleteTagDefault) SetPayload

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

SetPayload sets the payload to the delete tag default response

func (*DeleteTagDefault) SetStatusCode

func (o *DeleteTagDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete tag default response

func (*DeleteTagDefault) WithPayload

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

WithPayload adds the payload to the delete tag default response

func (*DeleteTagDefault) WithStatusCode

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

WithStatusCode adds the status to the delete tag default response

func (*DeleteTagDefault) WriteResponse

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

WriteResponse to the client

type DeleteTagHandler

type DeleteTagHandler interface {
	Handle(DeleteTagParams) middleware.Responder
}

DeleteTagHandler interface for that can handle valid delete tag params

type DeleteTagHandlerFunc

type DeleteTagHandlerFunc func(DeleteTagParams) middleware.Responder

DeleteTagHandlerFunc turns a function with the right signature into a delete tag handler

func (DeleteTagHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteTagOK

type DeleteTagOK struct {
}

DeleteTagOK deleted

swagger:response deleteTagOK

func NewDeleteTagOK

func NewDeleteTagOK() *DeleteTagOK

NewDeleteTagOK creates DeleteTagOK with default headers values

func (*DeleteTagOK) WriteResponse

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

WriteResponse to the client

type DeleteTagParams

type DeleteTagParams 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 tag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	TagID int64
}

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

swagger:parameters deleteTag

func NewDeleteTagParams

func NewDeleteTagParams() DeleteTagParams

NewDeleteTagParams creates a new DeleteTagParams object

There are no default values defined in the spec.

func (*DeleteTagParams) BindRequest

func (o *DeleteTagParams) 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 NewDeleteTagParams() beforehand.

type DeleteTagURL

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

DeleteTagURL generates an URL for the delete tag operation

func (*DeleteTagURL) Build

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

Build a url path and query string

func (*DeleteTagURL) BuildFull

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

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

func (*DeleteTagURL) Must

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

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

func (*DeleteTagURL) SetBasePath

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

func (o *DeleteTagURL) String() string

String returns the string representation of the path with query string

func (*DeleteTagURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteTagURL) WithBasePath

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

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 FindAllTags

type FindAllTags struct {
	Context *middleware.Context
	Handler FindAllTagsHandler
}
FindAllTags swagger:route GET /tags tag findAllTags

FindAllTags find all tags API

func NewFindAllTags

func NewFindAllTags(ctx *middleware.Context, handler FindAllTagsHandler) *FindAllTags

NewFindAllTags creates a new http.Handler for the find all tags operation

func (*FindAllTags) ServeHTTP

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

type FindAllTagsDefault

type FindAllTagsDefault struct {

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

FindAllTagsDefault generic error response

swagger:response findAllTagsDefault

func NewFindAllTagsDefault

func NewFindAllTagsDefault(code int) *FindAllTagsDefault

NewFindAllTagsDefault creates FindAllTagsDefault with default headers values

func (*FindAllTagsDefault) SetPayload

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

SetPayload sets the payload to the find all tags default response

func (*FindAllTagsDefault) SetStatusCode

func (o *FindAllTagsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the find all tags default response

func (*FindAllTagsDefault) WithPayload

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

WithPayload adds the payload to the find all tags default response

func (*FindAllTagsDefault) WithStatusCode

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

WithStatusCode adds the status to the find all tags default response

func (*FindAllTagsDefault) WriteResponse

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

WriteResponse to the client

type FindAllTagsHandler

type FindAllTagsHandler interface {
	Handle(FindAllTagsParams) middleware.Responder
}

FindAllTagsHandler interface for that can handle valid find all tags params

type FindAllTagsHandlerFunc

type FindAllTagsHandlerFunc func(FindAllTagsParams) middleware.Responder

FindAllTagsHandlerFunc turns a function with the right signature into a find all tags handler

func (FindAllTagsHandlerFunc) Handle

Handle executing the request and returning a response

type FindAllTagsOK

type FindAllTagsOK struct {

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

FindAllTagsOK list all the tags

swagger:response findAllTagsOK

func NewFindAllTagsOK

func NewFindAllTagsOK() *FindAllTagsOK

NewFindAllTagsOK creates FindAllTagsOK with default headers values

func (*FindAllTagsOK) SetPayload

func (o *FindAllTagsOK) SetPayload(payload []*models.Tag)

SetPayload sets the payload to the find all tags o k response

func (*FindAllTagsOK) WithPayload

func (o *FindAllTagsOK) WithPayload(payload []*models.Tag) *FindAllTagsOK

WithPayload adds the payload to the find all tags o k response

func (*FindAllTagsOK) WriteResponse

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

WriteResponse to the client

type FindAllTagsParams

type FindAllTagsParams struct {

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

	/*the numbers of tags to return
	  In: query
	*/
	Limit *int64
	/*return tags given the offset, it should usually set together with limit
	  In: query
	*/
	Offset *int64
	/*return tags partially matching given value
	  In: query
	*/
	ValueLike *string
}

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

swagger:parameters findAllTags

func NewFindAllTagsParams

func NewFindAllTagsParams() FindAllTagsParams

NewFindAllTagsParams creates a new FindAllTagsParams object

There are no default values defined in the spec.

func (*FindAllTagsParams) BindRequest

func (o *FindAllTagsParams) 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 NewFindAllTagsParams() beforehand.

type FindAllTagsURL

type FindAllTagsURL struct {
	Limit     *int64
	Offset    *int64
	ValueLike *string
	// contains filtered or unexported fields
}

FindAllTagsURL generates an URL for the find all tags operation

func (*FindAllTagsURL) Build

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

Build a url path and query string

func (*FindAllTagsURL) BuildFull

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

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

func (*FindAllTagsURL) Must

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

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

func (*FindAllTagsURL) SetBasePath

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

func (o *FindAllTagsURL) String() string

String returns the string representation of the path with query string

func (*FindAllTagsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FindAllTagsURL) WithBasePath

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

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 FindTags

type FindTags struct {
	Context *middleware.Context
	Handler FindTagsHandler
}
FindTags swagger:route GET /flags/{flagID}/tags tag findTags

FindTags find tags API

func NewFindTags

func NewFindTags(ctx *middleware.Context, handler FindTagsHandler) *FindTags

NewFindTags creates a new http.Handler for the find tags operation

func (*FindTags) ServeHTTP

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

type FindTagsDefault

type FindTagsDefault struct {

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

FindTagsDefault generic error response

swagger:response findTagsDefault

func NewFindTagsDefault

func NewFindTagsDefault(code int) *FindTagsDefault

NewFindTagsDefault creates FindTagsDefault with default headers values

func (*FindTagsDefault) SetPayload

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

SetPayload sets the payload to the find tags default response

func (*FindTagsDefault) SetStatusCode

func (o *FindTagsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the find tags default response

func (*FindTagsDefault) WithPayload

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

WithPayload adds the payload to the find tags default response

func (*FindTagsDefault) WithStatusCode

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

WithStatusCode adds the status to the find tags default response

func (*FindTagsDefault) WriteResponse

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

WriteResponse to the client

type FindTagsHandler

type FindTagsHandler interface {
	Handle(FindTagsParams) middleware.Responder
}

FindTagsHandler interface for that can handle valid find tags params

type FindTagsHandlerFunc

type FindTagsHandlerFunc func(FindTagsParams) middleware.Responder

FindTagsHandlerFunc turns a function with the right signature into a find tags handler

func (FindTagsHandlerFunc) Handle

Handle executing the request and returning a response

type FindTagsOK

type FindTagsOK struct {

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

FindTagsOK tag ordered by tagID

swagger:response findTagsOK

func NewFindTagsOK

func NewFindTagsOK() *FindTagsOK

NewFindTagsOK creates FindTagsOK with default headers values

func (*FindTagsOK) SetPayload

func (o *FindTagsOK) SetPayload(payload []*models.Tag)

SetPayload sets the payload to the find tags o k response

func (*FindTagsOK) WithPayload

func (o *FindTagsOK) WithPayload(payload []*models.Tag) *FindTagsOK

WithPayload adds the payload to the find tags o k response

func (*FindTagsOK) WriteResponse

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

WriteResponse to the client

type FindTagsParams

type FindTagsParams struct {

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

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

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

swagger:parameters findTags

func NewFindTagsParams

func NewFindTagsParams() FindTagsParams

NewFindTagsParams creates a new FindTagsParams object

There are no default values defined in the spec.

func (*FindTagsParams) BindRequest

func (o *FindTagsParams) 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 NewFindTagsParams() beforehand.

type FindTagsURL

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

FindTagsURL generates an URL for the find tags operation

func (*FindTagsURL) Build

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

Build a url path and query string

func (*FindTagsURL) BuildFull

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

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

func (*FindTagsURL) Must

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

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

func (*FindTagsURL) SetBasePath

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

func (o *FindTagsURL) String() string

String returns the string representation of the path with query string

func (*FindTagsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FindTagsURL) WithBasePath

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

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