tag

package
v0.0.0-...-9e5aecc Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: GPL-2.0 Imports: 11 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 tag API

func (*Client) DeleteAPITagsID

func (a *Client) DeleteAPITagsID(params *DeleteAPITagsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPITagsIDNoContent, error)

DeleteAPITagsID deletes a tag

func (*Client) GetAPITags

func (a *Client) GetAPITags(params *GetAPITagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITagsOK, error)

GetAPITags fetches all existing tags

func (*Client) PostAPITags

func (a *Client) PostAPITags(params *PostAPITagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPITagsOK, error)

PostAPITags creates a new tag

Creates a new tag and returns it afterwards

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 {
	DeleteAPITagsID(params *DeleteAPITagsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPITagsIDNoContent, error)

	GetAPITags(params *GetAPITagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITagsOK, error)

	PostAPITags(params *PostAPITagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPITagsOK, 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 tag API client.

type DeleteAPITagsIDNoContent

type DeleteAPITagsIDNoContent struct {
}

DeleteAPITagsIDNoContent describes a response with status code 204, with default header values.

HTTP code 204 for a successful delete

func NewDeleteAPITagsIDNoContent

func NewDeleteAPITagsIDNoContent() *DeleteAPITagsIDNoContent

NewDeleteAPITagsIDNoContent creates a DeleteAPITagsIDNoContent with default headers values

func (*DeleteAPITagsIDNoContent) Error

func (o *DeleteAPITagsIDNoContent) Error() string

func (*DeleteAPITagsIDNoContent) IsClientError

func (o *DeleteAPITagsIDNoContent) IsClientError() bool

IsClientError returns true when this delete Api tags Id no content response has a 4xx status code

func (*DeleteAPITagsIDNoContent) IsCode

func (o *DeleteAPITagsIDNoContent) IsCode(code int) bool

IsCode returns true when this delete Api tags Id no content response a status code equal to that given

func (*DeleteAPITagsIDNoContent) IsRedirect

func (o *DeleteAPITagsIDNoContent) IsRedirect() bool

IsRedirect returns true when this delete Api tags Id no content response has a 3xx status code

func (*DeleteAPITagsIDNoContent) IsServerError

func (o *DeleteAPITagsIDNoContent) IsServerError() bool

IsServerError returns true when this delete Api tags Id no content response has a 5xx status code

func (*DeleteAPITagsIDNoContent) IsSuccess

func (o *DeleteAPITagsIDNoContent) IsSuccess() bool

IsSuccess returns true when this delete Api tags Id no content response has a 2xx status code

func (*DeleteAPITagsIDNoContent) String

func (o *DeleteAPITagsIDNoContent) String() string

type DeleteAPITagsIDParams

type DeleteAPITagsIDParams struct {

	/* ID.

	   Tag ID to delete
	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteAPITagsIDParams contains all the parameters to send to the API endpoint

for the delete API tags ID operation.

Typically these are written to a http.Request.

func NewDeleteAPITagsIDParams

func NewDeleteAPITagsIDParams() *DeleteAPITagsIDParams

NewDeleteAPITagsIDParams creates a new DeleteAPITagsIDParams 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 NewDeleteAPITagsIDParamsWithContext

func NewDeleteAPITagsIDParamsWithContext(ctx context.Context) *DeleteAPITagsIDParams

NewDeleteAPITagsIDParamsWithContext creates a new DeleteAPITagsIDParams object with the ability to set a context for a request.

func NewDeleteAPITagsIDParamsWithHTTPClient

func NewDeleteAPITagsIDParamsWithHTTPClient(client *http.Client) *DeleteAPITagsIDParams

NewDeleteAPITagsIDParamsWithHTTPClient creates a new DeleteAPITagsIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAPITagsIDParamsWithTimeout

func NewDeleteAPITagsIDParamsWithTimeout(timeout time.Duration) *DeleteAPITagsIDParams

NewDeleteAPITagsIDParamsWithTimeout creates a new DeleteAPITagsIDParams object with the ability to set a timeout on a request.

func (*DeleteAPITagsIDParams) SetContext

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

SetContext adds the context to the delete API tags ID params

func (*DeleteAPITagsIDParams) SetDefaults

func (o *DeleteAPITagsIDParams) SetDefaults()

SetDefaults hydrates default values in the delete API tags ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPITagsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API tags ID params

func (*DeleteAPITagsIDParams) SetID

func (o *DeleteAPITagsIDParams) SetID(id int64)

SetID adds the id to the delete API tags ID params

func (*DeleteAPITagsIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete API tags ID params

func (*DeleteAPITagsIDParams) WithContext

WithContext adds the context to the delete API tags ID params

func (*DeleteAPITagsIDParams) WithDefaults

func (o *DeleteAPITagsIDParams) WithDefaults() *DeleteAPITagsIDParams

WithDefaults hydrates default values in the delete API tags ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPITagsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete API tags ID params

func (*DeleteAPITagsIDParams) WithID

WithID adds the id to the delete API tags ID params

func (*DeleteAPITagsIDParams) WithTimeout

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

WithTimeout adds the timeout to the delete API tags ID params

func (*DeleteAPITagsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteAPITagsIDReader

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

DeleteAPITagsIDReader is a Reader for the DeleteAPITagsID structure.

func (*DeleteAPITagsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPITagsOK

type GetAPITagsOK struct {
	Payload []string
}

GetAPITagsOK describes a response with status code 200, with default header values.

Returns the collection of all existing tags as string array

func NewGetAPITagsOK

func NewGetAPITagsOK() *GetAPITagsOK

NewGetAPITagsOK creates a GetAPITagsOK with default headers values

func (*GetAPITagsOK) Error

func (o *GetAPITagsOK) Error() string

func (*GetAPITagsOK) GetPayload

func (o *GetAPITagsOK) GetPayload() []string

func (*GetAPITagsOK) IsClientError

func (o *GetAPITagsOK) IsClientError() bool

IsClientError returns true when this get Api tags o k response has a 4xx status code

func (*GetAPITagsOK) IsCode

func (o *GetAPITagsOK) IsCode(code int) bool

IsCode returns true when this get Api tags o k response a status code equal to that given

func (*GetAPITagsOK) IsRedirect

func (o *GetAPITagsOK) IsRedirect() bool

IsRedirect returns true when this get Api tags o k response has a 3xx status code

func (*GetAPITagsOK) IsServerError

func (o *GetAPITagsOK) IsServerError() bool

IsServerError returns true when this get Api tags o k response has a 5xx status code

func (*GetAPITagsOK) IsSuccess

func (o *GetAPITagsOK) IsSuccess() bool

IsSuccess returns true when this get Api tags o k response has a 2xx status code

func (*GetAPITagsOK) String

func (o *GetAPITagsOK) String() string

type GetAPITagsParams

type GetAPITagsParams struct {

	/* Name.

	   Search term to filter tag list
	*/
	Name string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAPITagsParams contains all the parameters to send to the API endpoint

for the get API tags operation.

Typically these are written to a http.Request.

func NewGetAPITagsParams

func NewGetAPITagsParams() *GetAPITagsParams

NewGetAPITagsParams creates a new GetAPITagsParams 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 NewGetAPITagsParamsWithContext

func NewGetAPITagsParamsWithContext(ctx context.Context) *GetAPITagsParams

NewGetAPITagsParamsWithContext creates a new GetAPITagsParams object with the ability to set a context for a request.

func NewGetAPITagsParamsWithHTTPClient

func NewGetAPITagsParamsWithHTTPClient(client *http.Client) *GetAPITagsParams

NewGetAPITagsParamsWithHTTPClient creates a new GetAPITagsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPITagsParamsWithTimeout

func NewGetAPITagsParamsWithTimeout(timeout time.Duration) *GetAPITagsParams

NewGetAPITagsParamsWithTimeout creates a new GetAPITagsParams object with the ability to set a timeout on a request.

func (*GetAPITagsParams) SetContext

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

SetContext adds the context to the get API tags params

func (*GetAPITagsParams) SetDefaults

func (o *GetAPITagsParams) SetDefaults()

SetDefaults hydrates default values in the get API tags params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API tags params

func (*GetAPITagsParams) SetName

func (o *GetAPITagsParams) SetName(name string)

SetName adds the name to the get API tags params

func (*GetAPITagsParams) SetTimeout

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

SetTimeout adds the timeout to the get API tags params

func (*GetAPITagsParams) WithContext

func (o *GetAPITagsParams) WithContext(ctx context.Context) *GetAPITagsParams

WithContext adds the context to the get API tags params

func (*GetAPITagsParams) WithDefaults

func (o *GetAPITagsParams) WithDefaults() *GetAPITagsParams

WithDefaults hydrates default values in the get API tags params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API tags params

func (*GetAPITagsParams) WithName

func (o *GetAPITagsParams) WithName(name string) *GetAPITagsParams

WithName adds the name to the get API tags params

func (*GetAPITagsParams) WithTimeout

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

WithTimeout adds the timeout to the get API tags params

func (*GetAPITagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPITagsReader

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

GetAPITagsReader is a Reader for the GetAPITags structure.

func (*GetAPITagsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAPITagsOK

type PostAPITagsOK struct {
	Payload *models.TagEntity
}

PostAPITagsOK describes a response with status code 200, with default header values.

Returns the new created tag

func NewPostAPITagsOK

func NewPostAPITagsOK() *PostAPITagsOK

NewPostAPITagsOK creates a PostAPITagsOK with default headers values

func (*PostAPITagsOK) Error

func (o *PostAPITagsOK) Error() string

func (*PostAPITagsOK) GetPayload

func (o *PostAPITagsOK) GetPayload() *models.TagEntity

func (*PostAPITagsOK) IsClientError

func (o *PostAPITagsOK) IsClientError() bool

IsClientError returns true when this post Api tags o k response has a 4xx status code

func (*PostAPITagsOK) IsCode

func (o *PostAPITagsOK) IsCode(code int) bool

IsCode returns true when this post Api tags o k response a status code equal to that given

func (*PostAPITagsOK) IsRedirect

func (o *PostAPITagsOK) IsRedirect() bool

IsRedirect returns true when this post Api tags o k response has a 3xx status code

func (*PostAPITagsOK) IsServerError

func (o *PostAPITagsOK) IsServerError() bool

IsServerError returns true when this post Api tags o k response has a 5xx status code

func (*PostAPITagsOK) IsSuccess

func (o *PostAPITagsOK) IsSuccess() bool

IsSuccess returns true when this post Api tags o k response has a 2xx status code

func (*PostAPITagsOK) String

func (o *PostAPITagsOK) String() string

type PostAPITagsParams

type PostAPITagsParams struct {

	// Body.
	Body *models.TagEditForm

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAPITagsParams contains all the parameters to send to the API endpoint

for the post API tags operation.

Typically these are written to a http.Request.

func NewPostAPITagsParams

func NewPostAPITagsParams() *PostAPITagsParams

NewPostAPITagsParams creates a new PostAPITagsParams 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 NewPostAPITagsParamsWithContext

func NewPostAPITagsParamsWithContext(ctx context.Context) *PostAPITagsParams

NewPostAPITagsParamsWithContext creates a new PostAPITagsParams object with the ability to set a context for a request.

func NewPostAPITagsParamsWithHTTPClient

func NewPostAPITagsParamsWithHTTPClient(client *http.Client) *PostAPITagsParams

NewPostAPITagsParamsWithHTTPClient creates a new PostAPITagsParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPITagsParamsWithTimeout

func NewPostAPITagsParamsWithTimeout(timeout time.Duration) *PostAPITagsParams

NewPostAPITagsParamsWithTimeout creates a new PostAPITagsParams object with the ability to set a timeout on a request.

func (*PostAPITagsParams) SetBody

func (o *PostAPITagsParams) SetBody(body *models.TagEditForm)

SetBody adds the body to the post API tags params

func (*PostAPITagsParams) SetContext

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

SetContext adds the context to the post API tags params

func (*PostAPITagsParams) SetDefaults

func (o *PostAPITagsParams) SetDefaults()

SetDefaults hydrates default values in the post API tags params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPITagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API tags params

func (*PostAPITagsParams) SetTimeout

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

SetTimeout adds the timeout to the post API tags params

func (*PostAPITagsParams) WithBody

WithBody adds the body to the post API tags params

func (*PostAPITagsParams) WithContext

func (o *PostAPITagsParams) WithContext(ctx context.Context) *PostAPITagsParams

WithContext adds the context to the post API tags params

func (*PostAPITagsParams) WithDefaults

func (o *PostAPITagsParams) WithDefaults() *PostAPITagsParams

WithDefaults hydrates default values in the post API tags params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPITagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post API tags params

func (*PostAPITagsParams) WithTimeout

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

WithTimeout adds the timeout to the post API tags params

func (*PostAPITagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAPITagsReader

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

PostAPITagsReader is a Reader for the PostAPITags structure.

func (*PostAPITagsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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