cache

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 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 cache API

func (*Client) CreateCache

CreateCache adds a cache

Adds a new cache section to the configuration file.

func (*Client) DeleteCache

DeleteCache deletes a cache

Deletes a cache from the configuration by it's name.

func (*Client) GetCache

func (a *Client) GetCache(params *GetCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCacheOK, error)

GetCache returns a cache

Returns one cache section configuration by it's name.

func (*Client) GetCaches

func (a *Client) GetCaches(params *GetCachesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCachesOK, error)

GetCaches returns an array of caches

Returns an array of all configured caches.

func (*Client) ReplaceCache

ReplaceCache replaces a cache

Replaces a cache configuration by it's name.

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 {
	CreateCache(params *CreateCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCacheCreated, *CreateCacheAccepted, error)

	DeleteCache(params *DeleteCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCacheAccepted, *DeleteCacheNoContent, error)

	GetCache(params *GetCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCacheOK, error)

	GetCaches(params *GetCachesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCachesOK, error)

	ReplaceCache(params *ReplaceCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceCacheOK, *ReplaceCacheAccepted, 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 cache API client.

type CreateCacheAccepted

type CreateCacheAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Cache
}

CreateCacheAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateCacheAccepted

func NewCreateCacheAccepted() *CreateCacheAccepted

NewCreateCacheAccepted creates a CreateCacheAccepted with default headers values

func (*CreateCacheAccepted) Code added in v1.1.5

func (o *CreateCacheAccepted) Code() int

Code gets the status code for the create cache accepted response

func (*CreateCacheAccepted) Error

func (o *CreateCacheAccepted) Error() string

func (*CreateCacheAccepted) GetPayload

func (o *CreateCacheAccepted) GetPayload() *models.Cache

func (*CreateCacheAccepted) IsClientError added in v1.1.0

func (o *CreateCacheAccepted) IsClientError() bool

IsClientError returns true when this create cache accepted response has a 4xx status code

func (*CreateCacheAccepted) IsCode added in v1.1.0

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

IsCode returns true when this create cache accepted response a status code equal to that given

func (*CreateCacheAccepted) IsRedirect added in v1.1.0

func (o *CreateCacheAccepted) IsRedirect() bool

IsRedirect returns true when this create cache accepted response has a 3xx status code

func (*CreateCacheAccepted) IsServerError added in v1.1.0

func (o *CreateCacheAccepted) IsServerError() bool

IsServerError returns true when this create cache accepted response has a 5xx status code

func (*CreateCacheAccepted) IsSuccess added in v1.1.0

func (o *CreateCacheAccepted) IsSuccess() bool

IsSuccess returns true when this create cache accepted response has a 2xx status code

func (*CreateCacheAccepted) String added in v1.1.0

func (o *CreateCacheAccepted) String() string

type CreateCacheBadRequest

type CreateCacheBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateCacheBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateCacheBadRequest

func NewCreateCacheBadRequest() *CreateCacheBadRequest

NewCreateCacheBadRequest creates a CreateCacheBadRequest with default headers values

func (*CreateCacheBadRequest) Code added in v1.1.5

func (o *CreateCacheBadRequest) Code() int

Code gets the status code for the create cache bad request response

func (*CreateCacheBadRequest) Error

func (o *CreateCacheBadRequest) Error() string

func (*CreateCacheBadRequest) GetPayload

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

func (*CreateCacheBadRequest) IsClientError added in v1.1.0

func (o *CreateCacheBadRequest) IsClientError() bool

IsClientError returns true when this create cache bad request response has a 4xx status code

func (*CreateCacheBadRequest) IsCode added in v1.1.0

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

IsCode returns true when this create cache bad request response a status code equal to that given

func (*CreateCacheBadRequest) IsRedirect added in v1.1.0

func (o *CreateCacheBadRequest) IsRedirect() bool

IsRedirect returns true when this create cache bad request response has a 3xx status code

func (*CreateCacheBadRequest) IsServerError added in v1.1.0

func (o *CreateCacheBadRequest) IsServerError() bool

IsServerError returns true when this create cache bad request response has a 5xx status code

func (*CreateCacheBadRequest) IsSuccess added in v1.1.0

func (o *CreateCacheBadRequest) IsSuccess() bool

IsSuccess returns true when this create cache bad request response has a 2xx status code

func (*CreateCacheBadRequest) String added in v1.1.0

func (o *CreateCacheBadRequest) String() string

type CreateCacheConflict

type CreateCacheConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateCacheConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateCacheConflict

func NewCreateCacheConflict() *CreateCacheConflict

NewCreateCacheConflict creates a CreateCacheConflict with default headers values

func (*CreateCacheConflict) Code added in v1.1.5

func (o *CreateCacheConflict) Code() int

Code gets the status code for the create cache conflict response

func (*CreateCacheConflict) Error

func (o *CreateCacheConflict) Error() string

func (*CreateCacheConflict) GetPayload

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

func (*CreateCacheConflict) IsClientError added in v1.1.0

func (o *CreateCacheConflict) IsClientError() bool

IsClientError returns true when this create cache conflict response has a 4xx status code

func (*CreateCacheConflict) IsCode added in v1.1.0

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

IsCode returns true when this create cache conflict response a status code equal to that given

func (*CreateCacheConflict) IsRedirect added in v1.1.0

func (o *CreateCacheConflict) IsRedirect() bool

IsRedirect returns true when this create cache conflict response has a 3xx status code

func (*CreateCacheConflict) IsServerError added in v1.1.0

func (o *CreateCacheConflict) IsServerError() bool

IsServerError returns true when this create cache conflict response has a 5xx status code

func (*CreateCacheConflict) IsSuccess added in v1.1.0

func (o *CreateCacheConflict) IsSuccess() bool

IsSuccess returns true when this create cache conflict response has a 2xx status code

func (*CreateCacheConflict) String added in v1.1.0

func (o *CreateCacheConflict) String() string

type CreateCacheCreated

type CreateCacheCreated struct {
	Payload *models.Cache
}

CreateCacheCreated describes a response with status code 201, with default header values.

Cache created

func NewCreateCacheCreated

func NewCreateCacheCreated() *CreateCacheCreated

NewCreateCacheCreated creates a CreateCacheCreated with default headers values

func (*CreateCacheCreated) Code added in v1.1.5

func (o *CreateCacheCreated) Code() int

Code gets the status code for the create cache created response

func (*CreateCacheCreated) Error

func (o *CreateCacheCreated) Error() string

func (*CreateCacheCreated) GetPayload

func (o *CreateCacheCreated) GetPayload() *models.Cache

func (*CreateCacheCreated) IsClientError added in v1.1.0

func (o *CreateCacheCreated) IsClientError() bool

IsClientError returns true when this create cache created response has a 4xx status code

func (*CreateCacheCreated) IsCode added in v1.1.0

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

IsCode returns true when this create cache created response a status code equal to that given

func (*CreateCacheCreated) IsRedirect added in v1.1.0

func (o *CreateCacheCreated) IsRedirect() bool

IsRedirect returns true when this create cache created response has a 3xx status code

func (*CreateCacheCreated) IsServerError added in v1.1.0

func (o *CreateCacheCreated) IsServerError() bool

IsServerError returns true when this create cache created response has a 5xx status code

func (*CreateCacheCreated) IsSuccess added in v1.1.0

func (o *CreateCacheCreated) IsSuccess() bool

IsSuccess returns true when this create cache created response has a 2xx status code

func (*CreateCacheCreated) String added in v1.1.0

func (o *CreateCacheCreated) String() string

type CreateCacheDefault

type CreateCacheDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateCacheDefault describes a response with status code -1, with default header values.

General Error

func NewCreateCacheDefault

func NewCreateCacheDefault(code int) *CreateCacheDefault

NewCreateCacheDefault creates a CreateCacheDefault with default headers values

func (*CreateCacheDefault) Code

func (o *CreateCacheDefault) Code() int

Code gets the status code for the create cache default response

func (*CreateCacheDefault) Error

func (o *CreateCacheDefault) Error() string

func (*CreateCacheDefault) GetPayload

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

func (*CreateCacheDefault) IsClientError added in v1.1.0

func (o *CreateCacheDefault) IsClientError() bool

IsClientError returns true when this create cache default response has a 4xx status code

func (*CreateCacheDefault) IsCode added in v1.1.0

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

IsCode returns true when this create cache default response a status code equal to that given

func (*CreateCacheDefault) IsRedirect added in v1.1.0

func (o *CreateCacheDefault) IsRedirect() bool

IsRedirect returns true when this create cache default response has a 3xx status code

func (*CreateCacheDefault) IsServerError added in v1.1.0

func (o *CreateCacheDefault) IsServerError() bool

IsServerError returns true when this create cache default response has a 5xx status code

func (*CreateCacheDefault) IsSuccess added in v1.1.0

func (o *CreateCacheDefault) IsSuccess() bool

IsSuccess returns true when this create cache default response has a 2xx status code

func (*CreateCacheDefault) String added in v1.1.0

func (o *CreateCacheDefault) String() string

type CreateCacheParams

type CreateCacheParams struct {

	// Data.
	Data *models.Cache

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

CreateCacheParams contains all the parameters to send to the API endpoint

for the create cache operation.

Typically these are written to a http.Request.

func NewCreateCacheParams

func NewCreateCacheParams() *CreateCacheParams

NewCreateCacheParams creates a new CreateCacheParams 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 NewCreateCacheParamsWithContext

func NewCreateCacheParamsWithContext(ctx context.Context) *CreateCacheParams

NewCreateCacheParamsWithContext creates a new CreateCacheParams object with the ability to set a context for a request.

func NewCreateCacheParamsWithHTTPClient

func NewCreateCacheParamsWithHTTPClient(client *http.Client) *CreateCacheParams

NewCreateCacheParamsWithHTTPClient creates a new CreateCacheParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCacheParamsWithTimeout

func NewCreateCacheParamsWithTimeout(timeout time.Duration) *CreateCacheParams

NewCreateCacheParamsWithTimeout creates a new CreateCacheParams object with the ability to set a timeout on a request.

func (*CreateCacheParams) SetContext

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

SetContext adds the context to the create cache params

func (*CreateCacheParams) SetData

func (o *CreateCacheParams) SetData(data *models.Cache)

SetData adds the data to the create cache params

func (*CreateCacheParams) SetDefaults

func (o *CreateCacheParams) SetDefaults()

SetDefaults hydrates default values in the create cache params (not the query body).

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

func (*CreateCacheParams) SetForceReload

func (o *CreateCacheParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create cache params

func (*CreateCacheParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create cache params

func (*CreateCacheParams) SetTimeout

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

SetTimeout adds the timeout to the create cache params

func (*CreateCacheParams) SetTransactionID

func (o *CreateCacheParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create cache params

func (*CreateCacheParams) SetVersion

func (o *CreateCacheParams) SetVersion(version *int64)

SetVersion adds the version to the create cache params

func (*CreateCacheParams) WithContext

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

WithContext adds the context to the create cache params

func (*CreateCacheParams) WithData

func (o *CreateCacheParams) WithData(data *models.Cache) *CreateCacheParams

WithData adds the data to the create cache params

func (*CreateCacheParams) WithDefaults

func (o *CreateCacheParams) WithDefaults() *CreateCacheParams

WithDefaults hydrates default values in the create cache params (not the query body).

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

func (*CreateCacheParams) WithForceReload

func (o *CreateCacheParams) WithForceReload(forceReload *bool) *CreateCacheParams

WithForceReload adds the forceReload to the create cache params

func (*CreateCacheParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create cache params

func (*CreateCacheParams) WithTimeout

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

WithTimeout adds the timeout to the create cache params

func (*CreateCacheParams) WithTransactionID

func (o *CreateCacheParams) WithTransactionID(transactionID *string) *CreateCacheParams

WithTransactionID adds the transactionID to the create cache params

func (*CreateCacheParams) WithVersion

func (o *CreateCacheParams) WithVersion(version *int64) *CreateCacheParams

WithVersion adds the version to the create cache params

func (*CreateCacheParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCacheReader

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

CreateCacheReader is a Reader for the CreateCache structure.

func (*CreateCacheReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCacheAccepted

type DeleteCacheAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeleteCacheAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteCacheAccepted

func NewDeleteCacheAccepted() *DeleteCacheAccepted

NewDeleteCacheAccepted creates a DeleteCacheAccepted with default headers values

func (*DeleteCacheAccepted) Code added in v1.1.5

func (o *DeleteCacheAccepted) Code() int

Code gets the status code for the delete cache accepted response

func (*DeleteCacheAccepted) Error

func (o *DeleteCacheAccepted) Error() string

func (*DeleteCacheAccepted) IsClientError added in v1.1.0

func (o *DeleteCacheAccepted) IsClientError() bool

IsClientError returns true when this delete cache accepted response has a 4xx status code

func (*DeleteCacheAccepted) IsCode added in v1.1.0

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

IsCode returns true when this delete cache accepted response a status code equal to that given

func (*DeleteCacheAccepted) IsRedirect added in v1.1.0

func (o *DeleteCacheAccepted) IsRedirect() bool

IsRedirect returns true when this delete cache accepted response has a 3xx status code

func (*DeleteCacheAccepted) IsServerError added in v1.1.0

func (o *DeleteCacheAccepted) IsServerError() bool

IsServerError returns true when this delete cache accepted response has a 5xx status code

func (*DeleteCacheAccepted) IsSuccess added in v1.1.0

func (o *DeleteCacheAccepted) IsSuccess() bool

IsSuccess returns true when this delete cache accepted response has a 2xx status code

func (*DeleteCacheAccepted) String added in v1.1.0

func (o *DeleteCacheAccepted) String() string

type DeleteCacheDefault

type DeleteCacheDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteCacheDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteCacheDefault

func NewDeleteCacheDefault(code int) *DeleteCacheDefault

NewDeleteCacheDefault creates a DeleteCacheDefault with default headers values

func (*DeleteCacheDefault) Code

func (o *DeleteCacheDefault) Code() int

Code gets the status code for the delete cache default response

func (*DeleteCacheDefault) Error

func (o *DeleteCacheDefault) Error() string

func (*DeleteCacheDefault) GetPayload

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

func (*DeleteCacheDefault) IsClientError added in v1.1.0

func (o *DeleteCacheDefault) IsClientError() bool

IsClientError returns true when this delete cache default response has a 4xx status code

func (*DeleteCacheDefault) IsCode added in v1.1.0

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

IsCode returns true when this delete cache default response a status code equal to that given

func (*DeleteCacheDefault) IsRedirect added in v1.1.0

func (o *DeleteCacheDefault) IsRedirect() bool

IsRedirect returns true when this delete cache default response has a 3xx status code

func (*DeleteCacheDefault) IsServerError added in v1.1.0

func (o *DeleteCacheDefault) IsServerError() bool

IsServerError returns true when this delete cache default response has a 5xx status code

func (*DeleteCacheDefault) IsSuccess added in v1.1.0

func (o *DeleteCacheDefault) IsSuccess() bool

IsSuccess returns true when this delete cache default response has a 2xx status code

func (*DeleteCacheDefault) String added in v1.1.0

func (o *DeleteCacheDefault) String() string

type DeleteCacheNoContent

type DeleteCacheNoContent struct {
}

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

Cache deleted

func NewDeleteCacheNoContent

func NewDeleteCacheNoContent() *DeleteCacheNoContent

NewDeleteCacheNoContent creates a DeleteCacheNoContent with default headers values

func (*DeleteCacheNoContent) Code added in v1.1.5

func (o *DeleteCacheNoContent) Code() int

Code gets the status code for the delete cache no content response

func (*DeleteCacheNoContent) Error

func (o *DeleteCacheNoContent) Error() string

func (*DeleteCacheNoContent) IsClientError added in v1.1.0

func (o *DeleteCacheNoContent) IsClientError() bool

IsClientError returns true when this delete cache no content response has a 4xx status code

func (*DeleteCacheNoContent) IsCode added in v1.1.0

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

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

func (*DeleteCacheNoContent) IsRedirect added in v1.1.0

func (o *DeleteCacheNoContent) IsRedirect() bool

IsRedirect returns true when this delete cache no content response has a 3xx status code

func (*DeleteCacheNoContent) IsServerError added in v1.1.0

func (o *DeleteCacheNoContent) IsServerError() bool

IsServerError returns true when this delete cache no content response has a 5xx status code

func (*DeleteCacheNoContent) IsSuccess added in v1.1.0

func (o *DeleteCacheNoContent) IsSuccess() bool

IsSuccess returns true when this delete cache no content response has a 2xx status code

func (*DeleteCacheNoContent) String added in v1.1.0

func (o *DeleteCacheNoContent) String() string

type DeleteCacheNotFound

type DeleteCacheNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteCacheNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeleteCacheNotFound

func NewDeleteCacheNotFound() *DeleteCacheNotFound

NewDeleteCacheNotFound creates a DeleteCacheNotFound with default headers values

func (*DeleteCacheNotFound) Code added in v1.1.5

func (o *DeleteCacheNotFound) Code() int

Code gets the status code for the delete cache not found response

func (*DeleteCacheNotFound) Error

func (o *DeleteCacheNotFound) Error() string

func (*DeleteCacheNotFound) GetPayload

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

func (*DeleteCacheNotFound) IsClientError added in v1.1.0

func (o *DeleteCacheNotFound) IsClientError() bool

IsClientError returns true when this delete cache not found response has a 4xx status code

func (*DeleteCacheNotFound) IsCode added in v1.1.0

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

IsCode returns true when this delete cache not found response a status code equal to that given

func (*DeleteCacheNotFound) IsRedirect added in v1.1.0

func (o *DeleteCacheNotFound) IsRedirect() bool

IsRedirect returns true when this delete cache not found response has a 3xx status code

func (*DeleteCacheNotFound) IsServerError added in v1.1.0

func (o *DeleteCacheNotFound) IsServerError() bool

IsServerError returns true when this delete cache not found response has a 5xx status code

func (*DeleteCacheNotFound) IsSuccess added in v1.1.0

func (o *DeleteCacheNotFound) IsSuccess() bool

IsSuccess returns true when this delete cache not found response has a 2xx status code

func (*DeleteCacheNotFound) String added in v1.1.0

func (o *DeleteCacheNotFound) String() string

type DeleteCacheParams

type DeleteCacheParams struct {

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   Cache name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

DeleteCacheParams contains all the parameters to send to the API endpoint

for the delete cache operation.

Typically these are written to a http.Request.

func NewDeleteCacheParams

func NewDeleteCacheParams() *DeleteCacheParams

NewDeleteCacheParams creates a new DeleteCacheParams 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 NewDeleteCacheParamsWithContext

func NewDeleteCacheParamsWithContext(ctx context.Context) *DeleteCacheParams

NewDeleteCacheParamsWithContext creates a new DeleteCacheParams object with the ability to set a context for a request.

func NewDeleteCacheParamsWithHTTPClient

func NewDeleteCacheParamsWithHTTPClient(client *http.Client) *DeleteCacheParams

NewDeleteCacheParamsWithHTTPClient creates a new DeleteCacheParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCacheParamsWithTimeout

func NewDeleteCacheParamsWithTimeout(timeout time.Duration) *DeleteCacheParams

NewDeleteCacheParamsWithTimeout creates a new DeleteCacheParams object with the ability to set a timeout on a request.

func (*DeleteCacheParams) SetContext

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

SetContext adds the context to the delete cache params

func (*DeleteCacheParams) SetDefaults

func (o *DeleteCacheParams) SetDefaults()

SetDefaults hydrates default values in the delete cache params (not the query body).

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

func (*DeleteCacheParams) SetForceReload

func (o *DeleteCacheParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete cache params

func (*DeleteCacheParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete cache params

func (*DeleteCacheParams) SetName

func (o *DeleteCacheParams) SetName(name string)

SetName adds the name to the delete cache params

func (*DeleteCacheParams) SetTimeout

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

SetTimeout adds the timeout to the delete cache params

func (*DeleteCacheParams) SetTransactionID

func (o *DeleteCacheParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete cache params

func (*DeleteCacheParams) SetVersion

func (o *DeleteCacheParams) SetVersion(version *int64)

SetVersion adds the version to the delete cache params

func (*DeleteCacheParams) WithContext

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

WithContext adds the context to the delete cache params

func (*DeleteCacheParams) WithDefaults

func (o *DeleteCacheParams) WithDefaults() *DeleteCacheParams

WithDefaults hydrates default values in the delete cache params (not the query body).

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

func (*DeleteCacheParams) WithForceReload

func (o *DeleteCacheParams) WithForceReload(forceReload *bool) *DeleteCacheParams

WithForceReload adds the forceReload to the delete cache params

func (*DeleteCacheParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete cache params

func (*DeleteCacheParams) WithName

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

WithName adds the name to the delete cache params

func (*DeleteCacheParams) WithTimeout

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

WithTimeout adds the timeout to the delete cache params

func (*DeleteCacheParams) WithTransactionID

func (o *DeleteCacheParams) WithTransactionID(transactionID *string) *DeleteCacheParams

WithTransactionID adds the transactionID to the delete cache params

func (*DeleteCacheParams) WithVersion

func (o *DeleteCacheParams) WithVersion(version *int64) *DeleteCacheParams

WithVersion adds the version to the delete cache params

func (*DeleteCacheParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteCacheReader

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

DeleteCacheReader is a Reader for the DeleteCache structure.

func (*DeleteCacheReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCacheDefault

type GetCacheDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetCacheDefault describes a response with status code -1, with default header values.

General Error

func NewGetCacheDefault

func NewGetCacheDefault(code int) *GetCacheDefault

NewGetCacheDefault creates a GetCacheDefault with default headers values

func (*GetCacheDefault) Code

func (o *GetCacheDefault) Code() int

Code gets the status code for the get cache default response

func (*GetCacheDefault) Error

func (o *GetCacheDefault) Error() string

func (*GetCacheDefault) GetPayload

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

func (*GetCacheDefault) IsClientError added in v1.1.0

func (o *GetCacheDefault) IsClientError() bool

IsClientError returns true when this get cache default response has a 4xx status code

func (*GetCacheDefault) IsCode added in v1.1.0

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

IsCode returns true when this get cache default response a status code equal to that given

func (*GetCacheDefault) IsRedirect added in v1.1.0

func (o *GetCacheDefault) IsRedirect() bool

IsRedirect returns true when this get cache default response has a 3xx status code

func (*GetCacheDefault) IsServerError added in v1.1.0

func (o *GetCacheDefault) IsServerError() bool

IsServerError returns true when this get cache default response has a 5xx status code

func (*GetCacheDefault) IsSuccess added in v1.1.0

func (o *GetCacheDefault) IsSuccess() bool

IsSuccess returns true when this get cache default response has a 2xx status code

func (*GetCacheDefault) String added in v1.1.0

func (o *GetCacheDefault) String() string

type GetCacheNotFound

type GetCacheNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetCacheNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewGetCacheNotFound

func NewGetCacheNotFound() *GetCacheNotFound

NewGetCacheNotFound creates a GetCacheNotFound with default headers values

func (*GetCacheNotFound) Code added in v1.1.5

func (o *GetCacheNotFound) Code() int

Code gets the status code for the get cache not found response

func (*GetCacheNotFound) Error

func (o *GetCacheNotFound) Error() string

func (*GetCacheNotFound) GetPayload

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

func (*GetCacheNotFound) IsClientError added in v1.1.0

func (o *GetCacheNotFound) IsClientError() bool

IsClientError returns true when this get cache not found response has a 4xx status code

func (*GetCacheNotFound) IsCode added in v1.1.0

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

IsCode returns true when this get cache not found response a status code equal to that given

func (*GetCacheNotFound) IsRedirect added in v1.1.0

func (o *GetCacheNotFound) IsRedirect() bool

IsRedirect returns true when this get cache not found response has a 3xx status code

func (*GetCacheNotFound) IsServerError added in v1.1.0

func (o *GetCacheNotFound) IsServerError() bool

IsServerError returns true when this get cache not found response has a 5xx status code

func (*GetCacheNotFound) IsSuccess added in v1.1.0

func (o *GetCacheNotFound) IsSuccess() bool

IsSuccess returns true when this get cache not found response has a 2xx status code

func (*GetCacheNotFound) String added in v1.1.0

func (o *GetCacheNotFound) String() string

type GetCacheOK

type GetCacheOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetCacheOKBody
}

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

Successful operation

func NewGetCacheOK

func NewGetCacheOK() *GetCacheOK

NewGetCacheOK creates a GetCacheOK with default headers values

func (*GetCacheOK) Code added in v1.1.5

func (o *GetCacheOK) Code() int

Code gets the status code for the get cache o k response

func (*GetCacheOK) Error

func (o *GetCacheOK) Error() string

func (*GetCacheOK) GetPayload

func (o *GetCacheOK) GetPayload() *GetCacheOKBody

func (*GetCacheOK) IsClientError added in v1.1.0

func (o *GetCacheOK) IsClientError() bool

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

func (*GetCacheOK) IsCode added in v1.1.0

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

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

func (*GetCacheOK) IsRedirect added in v1.1.0

func (o *GetCacheOK) IsRedirect() bool

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

func (*GetCacheOK) IsServerError added in v1.1.0

func (o *GetCacheOK) IsServerError() bool

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

func (*GetCacheOK) IsSuccess added in v1.1.0

func (o *GetCacheOK) IsSuccess() bool

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

func (*GetCacheOK) String added in v1.1.0

func (o *GetCacheOK) String() string

type GetCacheOKBody

type GetCacheOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.Cache `json:"data,omitempty"`
}

GetCacheOKBody get cache o k body swagger:model GetCacheOKBody

func (*GetCacheOKBody) ContextValidate

func (o *GetCacheOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get cache o k body based on the context it is used

func (*GetCacheOKBody) MarshalBinary

func (o *GetCacheOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCacheOKBody) UnmarshalBinary

func (o *GetCacheOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCacheOKBody) Validate

func (o *GetCacheOKBody) Validate(formats strfmt.Registry) error

Validate validates this get cache o k body

type GetCacheParams

type GetCacheParams struct {

	/* Name.

	   Cache name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetCacheParams contains all the parameters to send to the API endpoint

for the get cache operation.

Typically these are written to a http.Request.

func NewGetCacheParams

func NewGetCacheParams() *GetCacheParams

NewGetCacheParams creates a new GetCacheParams 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 NewGetCacheParamsWithContext

func NewGetCacheParamsWithContext(ctx context.Context) *GetCacheParams

NewGetCacheParamsWithContext creates a new GetCacheParams object with the ability to set a context for a request.

func NewGetCacheParamsWithHTTPClient

func NewGetCacheParamsWithHTTPClient(client *http.Client) *GetCacheParams

NewGetCacheParamsWithHTTPClient creates a new GetCacheParams object with the ability to set a custom HTTPClient for a request.

func NewGetCacheParamsWithTimeout

func NewGetCacheParamsWithTimeout(timeout time.Duration) *GetCacheParams

NewGetCacheParamsWithTimeout creates a new GetCacheParams object with the ability to set a timeout on a request.

func (*GetCacheParams) SetContext

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

SetContext adds the context to the get cache params

func (*GetCacheParams) SetDefaults

func (o *GetCacheParams) SetDefaults()

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

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

func (*GetCacheParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get cache params

func (*GetCacheParams) SetName

func (o *GetCacheParams) SetName(name string)

SetName adds the name to the get cache params

func (*GetCacheParams) SetTimeout

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

SetTimeout adds the timeout to the get cache params

func (*GetCacheParams) SetTransactionID

func (o *GetCacheParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get cache params

func (*GetCacheParams) WithContext

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

WithContext adds the context to the get cache params

func (*GetCacheParams) WithDefaults

func (o *GetCacheParams) WithDefaults() *GetCacheParams

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

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

func (*GetCacheParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get cache params

func (*GetCacheParams) WithName

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

WithName adds the name to the get cache params

func (*GetCacheParams) WithTimeout

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

WithTimeout adds the timeout to the get cache params

func (*GetCacheParams) WithTransactionID

func (o *GetCacheParams) WithTransactionID(transactionID *string) *GetCacheParams

WithTransactionID adds the transactionID to the get cache params

func (*GetCacheParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCacheReader

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

GetCacheReader is a Reader for the GetCache structure.

func (*GetCacheReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCachesDefault

type GetCachesDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetCachesDefault describes a response with status code -1, with default header values.

General Error

func NewGetCachesDefault

func NewGetCachesDefault(code int) *GetCachesDefault

NewGetCachesDefault creates a GetCachesDefault with default headers values

func (*GetCachesDefault) Code

func (o *GetCachesDefault) Code() int

Code gets the status code for the get caches default response

func (*GetCachesDefault) Error

func (o *GetCachesDefault) Error() string

func (*GetCachesDefault) GetPayload

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

func (*GetCachesDefault) IsClientError added in v1.1.0

func (o *GetCachesDefault) IsClientError() bool

IsClientError returns true when this get caches default response has a 4xx status code

func (*GetCachesDefault) IsCode added in v1.1.0

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

IsCode returns true when this get caches default response a status code equal to that given

func (*GetCachesDefault) IsRedirect added in v1.1.0

func (o *GetCachesDefault) IsRedirect() bool

IsRedirect returns true when this get caches default response has a 3xx status code

func (*GetCachesDefault) IsServerError added in v1.1.0

func (o *GetCachesDefault) IsServerError() bool

IsServerError returns true when this get caches default response has a 5xx status code

func (*GetCachesDefault) IsSuccess added in v1.1.0

func (o *GetCachesDefault) IsSuccess() bool

IsSuccess returns true when this get caches default response has a 2xx status code

func (*GetCachesDefault) String added in v1.1.0

func (o *GetCachesDefault) String() string

type GetCachesOK

type GetCachesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetCachesOKBody
}

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

Successful operation

func NewGetCachesOK

func NewGetCachesOK() *GetCachesOK

NewGetCachesOK creates a GetCachesOK with default headers values

func (*GetCachesOK) Code added in v1.1.5

func (o *GetCachesOK) Code() int

Code gets the status code for the get caches o k response

func (*GetCachesOK) Error

func (o *GetCachesOK) Error() string

func (*GetCachesOK) GetPayload

func (o *GetCachesOK) GetPayload() *GetCachesOKBody

func (*GetCachesOK) IsClientError added in v1.1.0

func (o *GetCachesOK) IsClientError() bool

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

func (*GetCachesOK) IsCode added in v1.1.0

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

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

func (*GetCachesOK) IsRedirect added in v1.1.0

func (o *GetCachesOK) IsRedirect() bool

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

func (*GetCachesOK) IsServerError added in v1.1.0

func (o *GetCachesOK) IsServerError() bool

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

func (*GetCachesOK) IsSuccess added in v1.1.0

func (o *GetCachesOK) IsSuccess() bool

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

func (*GetCachesOK) String added in v1.1.0

func (o *GetCachesOK) String() string

type GetCachesOKBody

type GetCachesOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.Caches `json:"data"`
}

GetCachesOKBody get caches o k body swagger:model GetCachesOKBody

func (*GetCachesOKBody) ContextValidate

func (o *GetCachesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get caches o k body based on the context it is used

func (*GetCachesOKBody) MarshalBinary

func (o *GetCachesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCachesOKBody) UnmarshalBinary

func (o *GetCachesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCachesOKBody) Validate

func (o *GetCachesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get caches o k body

type GetCachesParams

type GetCachesParams struct {

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetCachesParams contains all the parameters to send to the API endpoint

for the get caches operation.

Typically these are written to a http.Request.

func NewGetCachesParams

func NewGetCachesParams() *GetCachesParams

NewGetCachesParams creates a new GetCachesParams 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 NewGetCachesParamsWithContext

func NewGetCachesParamsWithContext(ctx context.Context) *GetCachesParams

NewGetCachesParamsWithContext creates a new GetCachesParams object with the ability to set a context for a request.

func NewGetCachesParamsWithHTTPClient

func NewGetCachesParamsWithHTTPClient(client *http.Client) *GetCachesParams

NewGetCachesParamsWithHTTPClient creates a new GetCachesParams object with the ability to set a custom HTTPClient for a request.

func NewGetCachesParamsWithTimeout

func NewGetCachesParamsWithTimeout(timeout time.Duration) *GetCachesParams

NewGetCachesParamsWithTimeout creates a new GetCachesParams object with the ability to set a timeout on a request.

func (*GetCachesParams) SetContext

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

SetContext adds the context to the get caches params

func (*GetCachesParams) SetDefaults

func (o *GetCachesParams) SetDefaults()

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

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

func (*GetCachesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get caches params

func (*GetCachesParams) SetTimeout

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

SetTimeout adds the timeout to the get caches params

func (*GetCachesParams) SetTransactionID

func (o *GetCachesParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get caches params

func (*GetCachesParams) WithContext

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

WithContext adds the context to the get caches params

func (*GetCachesParams) WithDefaults

func (o *GetCachesParams) WithDefaults() *GetCachesParams

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

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

func (*GetCachesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get caches params

func (*GetCachesParams) WithTimeout

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

WithTimeout adds the timeout to the get caches params

func (*GetCachesParams) WithTransactionID

func (o *GetCachesParams) WithTransactionID(transactionID *string) *GetCachesParams

WithTransactionID adds the transactionID to the get caches params

func (*GetCachesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCachesReader

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

GetCachesReader is a Reader for the GetCaches structure.

func (*GetCachesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceCacheAccepted

type ReplaceCacheAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Cache
}

ReplaceCacheAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewReplaceCacheAccepted

func NewReplaceCacheAccepted() *ReplaceCacheAccepted

NewReplaceCacheAccepted creates a ReplaceCacheAccepted with default headers values

func (*ReplaceCacheAccepted) Code added in v1.1.5

func (o *ReplaceCacheAccepted) Code() int

Code gets the status code for the replace cache accepted response

func (*ReplaceCacheAccepted) Error

func (o *ReplaceCacheAccepted) Error() string

func (*ReplaceCacheAccepted) GetPayload

func (o *ReplaceCacheAccepted) GetPayload() *models.Cache

func (*ReplaceCacheAccepted) IsClientError added in v1.1.0

func (o *ReplaceCacheAccepted) IsClientError() bool

IsClientError returns true when this replace cache accepted response has a 4xx status code

func (*ReplaceCacheAccepted) IsCode added in v1.1.0

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

IsCode returns true when this replace cache accepted response a status code equal to that given

func (*ReplaceCacheAccepted) IsRedirect added in v1.1.0

func (o *ReplaceCacheAccepted) IsRedirect() bool

IsRedirect returns true when this replace cache accepted response has a 3xx status code

func (*ReplaceCacheAccepted) IsServerError added in v1.1.0

func (o *ReplaceCacheAccepted) IsServerError() bool

IsServerError returns true when this replace cache accepted response has a 5xx status code

func (*ReplaceCacheAccepted) IsSuccess added in v1.1.0

func (o *ReplaceCacheAccepted) IsSuccess() bool

IsSuccess returns true when this replace cache accepted response has a 2xx status code

func (*ReplaceCacheAccepted) String added in v1.1.0

func (o *ReplaceCacheAccepted) String() string

type ReplaceCacheBadRequest

type ReplaceCacheBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceCacheBadRequest describes a response with status code 400, with default header values.

Bad request

func NewReplaceCacheBadRequest

func NewReplaceCacheBadRequest() *ReplaceCacheBadRequest

NewReplaceCacheBadRequest creates a ReplaceCacheBadRequest with default headers values

func (*ReplaceCacheBadRequest) Code added in v1.1.5

func (o *ReplaceCacheBadRequest) Code() int

Code gets the status code for the replace cache bad request response

func (*ReplaceCacheBadRequest) Error

func (o *ReplaceCacheBadRequest) Error() string

func (*ReplaceCacheBadRequest) GetPayload

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

func (*ReplaceCacheBadRequest) IsClientError added in v1.1.0

func (o *ReplaceCacheBadRequest) IsClientError() bool

IsClientError returns true when this replace cache bad request response has a 4xx status code

func (*ReplaceCacheBadRequest) IsCode added in v1.1.0

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

IsCode returns true when this replace cache bad request response a status code equal to that given

func (*ReplaceCacheBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceCacheBadRequest) IsRedirect() bool

IsRedirect returns true when this replace cache bad request response has a 3xx status code

func (*ReplaceCacheBadRequest) IsServerError added in v1.1.0

func (o *ReplaceCacheBadRequest) IsServerError() bool

IsServerError returns true when this replace cache bad request response has a 5xx status code

func (*ReplaceCacheBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceCacheBadRequest) IsSuccess() bool

IsSuccess returns true when this replace cache bad request response has a 2xx status code

func (*ReplaceCacheBadRequest) String added in v1.1.0

func (o *ReplaceCacheBadRequest) String() string

type ReplaceCacheDefault

type ReplaceCacheDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceCacheDefault describes a response with status code -1, with default header values.

General Error

func NewReplaceCacheDefault

func NewReplaceCacheDefault(code int) *ReplaceCacheDefault

NewReplaceCacheDefault creates a ReplaceCacheDefault with default headers values

func (*ReplaceCacheDefault) Code

func (o *ReplaceCacheDefault) Code() int

Code gets the status code for the replace cache default response

func (*ReplaceCacheDefault) Error

func (o *ReplaceCacheDefault) Error() string

func (*ReplaceCacheDefault) GetPayload

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

func (*ReplaceCacheDefault) IsClientError added in v1.1.0

func (o *ReplaceCacheDefault) IsClientError() bool

IsClientError returns true when this replace cache default response has a 4xx status code

func (*ReplaceCacheDefault) IsCode added in v1.1.0

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

IsCode returns true when this replace cache default response a status code equal to that given

func (*ReplaceCacheDefault) IsRedirect added in v1.1.0

func (o *ReplaceCacheDefault) IsRedirect() bool

IsRedirect returns true when this replace cache default response has a 3xx status code

func (*ReplaceCacheDefault) IsServerError added in v1.1.0

func (o *ReplaceCacheDefault) IsServerError() bool

IsServerError returns true when this replace cache default response has a 5xx status code

func (*ReplaceCacheDefault) IsSuccess added in v1.1.0

func (o *ReplaceCacheDefault) IsSuccess() bool

IsSuccess returns true when this replace cache default response has a 2xx status code

func (*ReplaceCacheDefault) String added in v1.1.0

func (o *ReplaceCacheDefault) String() string

type ReplaceCacheNotFound

type ReplaceCacheNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceCacheNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewReplaceCacheNotFound

func NewReplaceCacheNotFound() *ReplaceCacheNotFound

NewReplaceCacheNotFound creates a ReplaceCacheNotFound with default headers values

func (*ReplaceCacheNotFound) Code added in v1.1.5

func (o *ReplaceCacheNotFound) Code() int

Code gets the status code for the replace cache not found response

func (*ReplaceCacheNotFound) Error

func (o *ReplaceCacheNotFound) Error() string

func (*ReplaceCacheNotFound) GetPayload

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

func (*ReplaceCacheNotFound) IsClientError added in v1.1.0

func (o *ReplaceCacheNotFound) IsClientError() bool

IsClientError returns true when this replace cache not found response has a 4xx status code

func (*ReplaceCacheNotFound) IsCode added in v1.1.0

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

IsCode returns true when this replace cache not found response a status code equal to that given

func (*ReplaceCacheNotFound) IsRedirect added in v1.1.0

func (o *ReplaceCacheNotFound) IsRedirect() bool

IsRedirect returns true when this replace cache not found response has a 3xx status code

func (*ReplaceCacheNotFound) IsServerError added in v1.1.0

func (o *ReplaceCacheNotFound) IsServerError() bool

IsServerError returns true when this replace cache not found response has a 5xx status code

func (*ReplaceCacheNotFound) IsSuccess added in v1.1.0

func (o *ReplaceCacheNotFound) IsSuccess() bool

IsSuccess returns true when this replace cache not found response has a 2xx status code

func (*ReplaceCacheNotFound) String added in v1.1.0

func (o *ReplaceCacheNotFound) String() string

type ReplaceCacheOK

type ReplaceCacheOK struct {
	Payload *models.Cache
}

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

Cache replaced

func NewReplaceCacheOK

func NewReplaceCacheOK() *ReplaceCacheOK

NewReplaceCacheOK creates a ReplaceCacheOK with default headers values

func (*ReplaceCacheOK) Code added in v1.1.5

func (o *ReplaceCacheOK) Code() int

Code gets the status code for the replace cache o k response

func (*ReplaceCacheOK) Error

func (o *ReplaceCacheOK) Error() string

func (*ReplaceCacheOK) GetPayload

func (o *ReplaceCacheOK) GetPayload() *models.Cache

func (*ReplaceCacheOK) IsClientError added in v1.1.0

func (o *ReplaceCacheOK) IsClientError() bool

IsClientError returns true when this replace cache o k response has a 4xx status code

func (*ReplaceCacheOK) IsCode added in v1.1.0

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

IsCode returns true when this replace cache o k response a status code equal to that given

func (*ReplaceCacheOK) IsRedirect added in v1.1.0

func (o *ReplaceCacheOK) IsRedirect() bool

IsRedirect returns true when this replace cache o k response has a 3xx status code

func (*ReplaceCacheOK) IsServerError added in v1.1.0

func (o *ReplaceCacheOK) IsServerError() bool

IsServerError returns true when this replace cache o k response has a 5xx status code

func (*ReplaceCacheOK) IsSuccess added in v1.1.0

func (o *ReplaceCacheOK) IsSuccess() bool

IsSuccess returns true when this replace cache o k response has a 2xx status code

func (*ReplaceCacheOK) String added in v1.1.0

func (o *ReplaceCacheOK) String() string

type ReplaceCacheParams

type ReplaceCacheParams struct {

	// Data.
	Data *models.Cache

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   Cache name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

ReplaceCacheParams contains all the parameters to send to the API endpoint

for the replace cache operation.

Typically these are written to a http.Request.

func NewReplaceCacheParams

func NewReplaceCacheParams() *ReplaceCacheParams

NewReplaceCacheParams creates a new ReplaceCacheParams 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 NewReplaceCacheParamsWithContext

func NewReplaceCacheParamsWithContext(ctx context.Context) *ReplaceCacheParams

NewReplaceCacheParamsWithContext creates a new ReplaceCacheParams object with the ability to set a context for a request.

func NewReplaceCacheParamsWithHTTPClient

func NewReplaceCacheParamsWithHTTPClient(client *http.Client) *ReplaceCacheParams

NewReplaceCacheParamsWithHTTPClient creates a new ReplaceCacheParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceCacheParamsWithTimeout

func NewReplaceCacheParamsWithTimeout(timeout time.Duration) *ReplaceCacheParams

NewReplaceCacheParamsWithTimeout creates a new ReplaceCacheParams object with the ability to set a timeout on a request.

func (*ReplaceCacheParams) SetContext

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

SetContext adds the context to the replace cache params

func (*ReplaceCacheParams) SetData

func (o *ReplaceCacheParams) SetData(data *models.Cache)

SetData adds the data to the replace cache params

func (*ReplaceCacheParams) SetDefaults

func (o *ReplaceCacheParams) SetDefaults()

SetDefaults hydrates default values in the replace cache params (not the query body).

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

func (*ReplaceCacheParams) SetForceReload

func (o *ReplaceCacheParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace cache params

func (*ReplaceCacheParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace cache params

func (*ReplaceCacheParams) SetName

func (o *ReplaceCacheParams) SetName(name string)

SetName adds the name to the replace cache params

func (*ReplaceCacheParams) SetTimeout

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

SetTimeout adds the timeout to the replace cache params

func (*ReplaceCacheParams) SetTransactionID

func (o *ReplaceCacheParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace cache params

func (*ReplaceCacheParams) SetVersion

func (o *ReplaceCacheParams) SetVersion(version *int64)

SetVersion adds the version to the replace cache params

func (*ReplaceCacheParams) WithContext

WithContext adds the context to the replace cache params

func (*ReplaceCacheParams) WithData

func (o *ReplaceCacheParams) WithData(data *models.Cache) *ReplaceCacheParams

WithData adds the data to the replace cache params

func (*ReplaceCacheParams) WithDefaults

func (o *ReplaceCacheParams) WithDefaults() *ReplaceCacheParams

WithDefaults hydrates default values in the replace cache params (not the query body).

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

func (*ReplaceCacheParams) WithForceReload

func (o *ReplaceCacheParams) WithForceReload(forceReload *bool) *ReplaceCacheParams

WithForceReload adds the forceReload to the replace cache params

func (*ReplaceCacheParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace cache params

func (*ReplaceCacheParams) WithName

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

WithName adds the name to the replace cache params

func (*ReplaceCacheParams) WithTimeout

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

WithTimeout adds the timeout to the replace cache params

func (*ReplaceCacheParams) WithTransactionID

func (o *ReplaceCacheParams) WithTransactionID(transactionID *string) *ReplaceCacheParams

WithTransactionID adds the transactionID to the replace cache params

func (*ReplaceCacheParams) WithVersion

func (o *ReplaceCacheParams) WithVersion(version *int64) *ReplaceCacheParams

WithVersion adds the version to the replace cache params

func (*ReplaceCacheParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceCacheReader

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

ReplaceCacheReader is a Reader for the ReplaceCache structure.

func (*ReplaceCacheReader) ReadResponse

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