Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateCache(params *CreateCacheParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateCacheCreated, *CreateCacheAccepted, error)
- func (a *Client) DeleteCache(params *DeleteCacheParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteCacheAccepted, *DeleteCacheNoContent, error)
- func (a *Client) GetCache(params *GetCacheParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetCacheOK, error)
- func (a *Client) GetCaches(params *GetCachesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetCachesOK, error)
- func (a *Client) ReplaceCache(params *ReplaceCacheParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplaceCacheOK, *ReplaceCacheAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateCacheAccepted
- func (o *CreateCacheAccepted) Code() int
- func (o *CreateCacheAccepted) Error() string
- func (o *CreateCacheAccepted) GetPayload() *models.Cache
- func (o *CreateCacheAccepted) IsClientError() bool
- func (o *CreateCacheAccepted) IsCode(code int) bool
- func (o *CreateCacheAccepted) IsRedirect() bool
- func (o *CreateCacheAccepted) IsServerError() bool
- func (o *CreateCacheAccepted) IsSuccess() bool
- func (o *CreateCacheAccepted) String() string
- type CreateCacheBadRequest
- func (o *CreateCacheBadRequest) Code() int
- func (o *CreateCacheBadRequest) Error() string
- func (o *CreateCacheBadRequest) GetPayload() *models.Error
- func (o *CreateCacheBadRequest) IsClientError() bool
- func (o *CreateCacheBadRequest) IsCode(code int) bool
- func (o *CreateCacheBadRequest) IsRedirect() bool
- func (o *CreateCacheBadRequest) IsServerError() bool
- func (o *CreateCacheBadRequest) IsSuccess() bool
- func (o *CreateCacheBadRequest) String() string
- type CreateCacheConflict
- func (o *CreateCacheConflict) Code() int
- func (o *CreateCacheConflict) Error() string
- func (o *CreateCacheConflict) GetPayload() *models.Error
- func (o *CreateCacheConflict) IsClientError() bool
- func (o *CreateCacheConflict) IsCode(code int) bool
- func (o *CreateCacheConflict) IsRedirect() bool
- func (o *CreateCacheConflict) IsServerError() bool
- func (o *CreateCacheConflict) IsSuccess() bool
- func (o *CreateCacheConflict) String() string
- type CreateCacheCreated
- func (o *CreateCacheCreated) Code() int
- func (o *CreateCacheCreated) Error() string
- func (o *CreateCacheCreated) GetPayload() *models.Cache
- func (o *CreateCacheCreated) IsClientError() bool
- func (o *CreateCacheCreated) IsCode(code int) bool
- func (o *CreateCacheCreated) IsRedirect() bool
- func (o *CreateCacheCreated) IsServerError() bool
- func (o *CreateCacheCreated) IsSuccess() bool
- func (o *CreateCacheCreated) String() string
- type CreateCacheDefault
- func (o *CreateCacheDefault) Code() int
- func (o *CreateCacheDefault) Error() string
- func (o *CreateCacheDefault) GetPayload() *models.Error
- func (o *CreateCacheDefault) IsClientError() bool
- func (o *CreateCacheDefault) IsCode(code int) bool
- func (o *CreateCacheDefault) IsRedirect() bool
- func (o *CreateCacheDefault) IsServerError() bool
- func (o *CreateCacheDefault) IsSuccess() bool
- func (o *CreateCacheDefault) String() string
- type CreateCacheParams
- func (o *CreateCacheParams) SetContext(ctx context.Context)
- func (o *CreateCacheParams) SetData(data *models.Cache)
- func (o *CreateCacheParams) SetDefaults()
- func (o *CreateCacheParams) SetForceReload(forceReload *bool)
- func (o *CreateCacheParams) SetHTTPClient(client *http.Client)
- func (o *CreateCacheParams) SetTimeout(timeout time.Duration)
- func (o *CreateCacheParams) SetTransactionID(transactionID *string)
- func (o *CreateCacheParams) SetVersion(version *int64)
- func (o *CreateCacheParams) WithContext(ctx context.Context) *CreateCacheParams
- func (o *CreateCacheParams) WithData(data *models.Cache) *CreateCacheParams
- func (o *CreateCacheParams) WithDefaults() *CreateCacheParams
- func (o *CreateCacheParams) WithForceReload(forceReload *bool) *CreateCacheParams
- func (o *CreateCacheParams) WithHTTPClient(client *http.Client) *CreateCacheParams
- func (o *CreateCacheParams) WithTimeout(timeout time.Duration) *CreateCacheParams
- func (o *CreateCacheParams) WithTransactionID(transactionID *string) *CreateCacheParams
- func (o *CreateCacheParams) WithVersion(version *int64) *CreateCacheParams
- func (o *CreateCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCacheReader
- type DeleteCacheAccepted
- func (o *DeleteCacheAccepted) Code() int
- func (o *DeleteCacheAccepted) Error() string
- func (o *DeleteCacheAccepted) IsClientError() bool
- func (o *DeleteCacheAccepted) IsCode(code int) bool
- func (o *DeleteCacheAccepted) IsRedirect() bool
- func (o *DeleteCacheAccepted) IsServerError() bool
- func (o *DeleteCacheAccepted) IsSuccess() bool
- func (o *DeleteCacheAccepted) String() string
- type DeleteCacheDefault
- func (o *DeleteCacheDefault) Code() int
- func (o *DeleteCacheDefault) Error() string
- func (o *DeleteCacheDefault) GetPayload() *models.Error
- func (o *DeleteCacheDefault) IsClientError() bool
- func (o *DeleteCacheDefault) IsCode(code int) bool
- func (o *DeleteCacheDefault) IsRedirect() bool
- func (o *DeleteCacheDefault) IsServerError() bool
- func (o *DeleteCacheDefault) IsSuccess() bool
- func (o *DeleteCacheDefault) String() string
- type DeleteCacheNoContent
- func (o *DeleteCacheNoContent) Code() int
- func (o *DeleteCacheNoContent) Error() string
- func (o *DeleteCacheNoContent) IsClientError() bool
- func (o *DeleteCacheNoContent) IsCode(code int) bool
- func (o *DeleteCacheNoContent) IsRedirect() bool
- func (o *DeleteCacheNoContent) IsServerError() bool
- func (o *DeleteCacheNoContent) IsSuccess() bool
- func (o *DeleteCacheNoContent) String() string
- type DeleteCacheNotFound
- func (o *DeleteCacheNotFound) Code() int
- func (o *DeleteCacheNotFound) Error() string
- func (o *DeleteCacheNotFound) GetPayload() *models.Error
- func (o *DeleteCacheNotFound) IsClientError() bool
- func (o *DeleteCacheNotFound) IsCode(code int) bool
- func (o *DeleteCacheNotFound) IsRedirect() bool
- func (o *DeleteCacheNotFound) IsServerError() bool
- func (o *DeleteCacheNotFound) IsSuccess() bool
- func (o *DeleteCacheNotFound) String() string
- type DeleteCacheParams
- func (o *DeleteCacheParams) SetContext(ctx context.Context)
- func (o *DeleteCacheParams) SetDefaults()
- func (o *DeleteCacheParams) SetForceReload(forceReload *bool)
- func (o *DeleteCacheParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCacheParams) SetName(name string)
- func (o *DeleteCacheParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCacheParams) SetTransactionID(transactionID *string)
- func (o *DeleteCacheParams) SetVersion(version *int64)
- func (o *DeleteCacheParams) WithContext(ctx context.Context) *DeleteCacheParams
- func (o *DeleteCacheParams) WithDefaults() *DeleteCacheParams
- func (o *DeleteCacheParams) WithForceReload(forceReload *bool) *DeleteCacheParams
- func (o *DeleteCacheParams) WithHTTPClient(client *http.Client) *DeleteCacheParams
- func (o *DeleteCacheParams) WithName(name string) *DeleteCacheParams
- func (o *DeleteCacheParams) WithTimeout(timeout time.Duration) *DeleteCacheParams
- func (o *DeleteCacheParams) WithTransactionID(transactionID *string) *DeleteCacheParams
- func (o *DeleteCacheParams) WithVersion(version *int64) *DeleteCacheParams
- func (o *DeleteCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCacheReader
- type GetCacheDefault
- func (o *GetCacheDefault) Code() int
- func (o *GetCacheDefault) Error() string
- func (o *GetCacheDefault) GetPayload() *models.Error
- func (o *GetCacheDefault) IsClientError() bool
- func (o *GetCacheDefault) IsCode(code int) bool
- func (o *GetCacheDefault) IsRedirect() bool
- func (o *GetCacheDefault) IsServerError() bool
- func (o *GetCacheDefault) IsSuccess() bool
- func (o *GetCacheDefault) String() string
- type GetCacheNotFound
- func (o *GetCacheNotFound) Code() int
- func (o *GetCacheNotFound) Error() string
- func (o *GetCacheNotFound) GetPayload() *models.Error
- func (o *GetCacheNotFound) IsClientError() bool
- func (o *GetCacheNotFound) IsCode(code int) bool
- func (o *GetCacheNotFound) IsRedirect() bool
- func (o *GetCacheNotFound) IsServerError() bool
- func (o *GetCacheNotFound) IsSuccess() bool
- func (o *GetCacheNotFound) String() string
- type GetCacheOK
- func (o *GetCacheOK) Code() int
- func (o *GetCacheOK) Error() string
- func (o *GetCacheOK) GetPayload() *GetCacheOKBody
- func (o *GetCacheOK) IsClientError() bool
- func (o *GetCacheOK) IsCode(code int) bool
- func (o *GetCacheOK) IsRedirect() bool
- func (o *GetCacheOK) IsServerError() bool
- func (o *GetCacheOK) IsSuccess() bool
- func (o *GetCacheOK) String() string
- type GetCacheOKBody
- type GetCacheParams
- func (o *GetCacheParams) SetContext(ctx context.Context)
- func (o *GetCacheParams) SetDefaults()
- func (o *GetCacheParams) SetHTTPClient(client *http.Client)
- func (o *GetCacheParams) SetName(name string)
- func (o *GetCacheParams) SetTimeout(timeout time.Duration)
- func (o *GetCacheParams) SetTransactionID(transactionID *string)
- func (o *GetCacheParams) WithContext(ctx context.Context) *GetCacheParams
- func (o *GetCacheParams) WithDefaults() *GetCacheParams
- func (o *GetCacheParams) WithHTTPClient(client *http.Client) *GetCacheParams
- func (o *GetCacheParams) WithName(name string) *GetCacheParams
- func (o *GetCacheParams) WithTimeout(timeout time.Duration) *GetCacheParams
- func (o *GetCacheParams) WithTransactionID(transactionID *string) *GetCacheParams
- func (o *GetCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCacheReader
- type GetCachesDefault
- func (o *GetCachesDefault) Code() int
- func (o *GetCachesDefault) Error() string
- func (o *GetCachesDefault) GetPayload() *models.Error
- func (o *GetCachesDefault) IsClientError() bool
- func (o *GetCachesDefault) IsCode(code int) bool
- func (o *GetCachesDefault) IsRedirect() bool
- func (o *GetCachesDefault) IsServerError() bool
- func (o *GetCachesDefault) IsSuccess() bool
- func (o *GetCachesDefault) String() string
- type GetCachesOK
- func (o *GetCachesOK) Code() int
- func (o *GetCachesOK) Error() string
- func (o *GetCachesOK) GetPayload() *GetCachesOKBody
- func (o *GetCachesOK) IsClientError() bool
- func (o *GetCachesOK) IsCode(code int) bool
- func (o *GetCachesOK) IsRedirect() bool
- func (o *GetCachesOK) IsServerError() bool
- func (o *GetCachesOK) IsSuccess() bool
- func (o *GetCachesOK) String() string
- type GetCachesOKBody
- type GetCachesParams
- func (o *GetCachesParams) SetContext(ctx context.Context)
- func (o *GetCachesParams) SetDefaults()
- func (o *GetCachesParams) SetHTTPClient(client *http.Client)
- func (o *GetCachesParams) SetTimeout(timeout time.Duration)
- func (o *GetCachesParams) SetTransactionID(transactionID *string)
- func (o *GetCachesParams) WithContext(ctx context.Context) *GetCachesParams
- func (o *GetCachesParams) WithDefaults() *GetCachesParams
- func (o *GetCachesParams) WithHTTPClient(client *http.Client) *GetCachesParams
- func (o *GetCachesParams) WithTimeout(timeout time.Duration) *GetCachesParams
- func (o *GetCachesParams) WithTransactionID(transactionID *string) *GetCachesParams
- func (o *GetCachesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCachesReader
- type ReplaceCacheAccepted
- func (o *ReplaceCacheAccepted) Code() int
- func (o *ReplaceCacheAccepted) Error() string
- func (o *ReplaceCacheAccepted) GetPayload() *models.Cache
- func (o *ReplaceCacheAccepted) IsClientError() bool
- func (o *ReplaceCacheAccepted) IsCode(code int) bool
- func (o *ReplaceCacheAccepted) IsRedirect() bool
- func (o *ReplaceCacheAccepted) IsServerError() bool
- func (o *ReplaceCacheAccepted) IsSuccess() bool
- func (o *ReplaceCacheAccepted) String() string
- type ReplaceCacheBadRequest
- func (o *ReplaceCacheBadRequest) Code() int
- func (o *ReplaceCacheBadRequest) Error() string
- func (o *ReplaceCacheBadRequest) GetPayload() *models.Error
- func (o *ReplaceCacheBadRequest) IsClientError() bool
- func (o *ReplaceCacheBadRequest) IsCode(code int) bool
- func (o *ReplaceCacheBadRequest) IsRedirect() bool
- func (o *ReplaceCacheBadRequest) IsServerError() bool
- func (o *ReplaceCacheBadRequest) IsSuccess() bool
- func (o *ReplaceCacheBadRequest) String() string
- type ReplaceCacheDefault
- func (o *ReplaceCacheDefault) Code() int
- func (o *ReplaceCacheDefault) Error() string
- func (o *ReplaceCacheDefault) GetPayload() *models.Error
- func (o *ReplaceCacheDefault) IsClientError() bool
- func (o *ReplaceCacheDefault) IsCode(code int) bool
- func (o *ReplaceCacheDefault) IsRedirect() bool
- func (o *ReplaceCacheDefault) IsServerError() bool
- func (o *ReplaceCacheDefault) IsSuccess() bool
- func (o *ReplaceCacheDefault) String() string
- type ReplaceCacheNotFound
- func (o *ReplaceCacheNotFound) Code() int
- func (o *ReplaceCacheNotFound) Error() string
- func (o *ReplaceCacheNotFound) GetPayload() *models.Error
- func (o *ReplaceCacheNotFound) IsClientError() bool
- func (o *ReplaceCacheNotFound) IsCode(code int) bool
- func (o *ReplaceCacheNotFound) IsRedirect() bool
- func (o *ReplaceCacheNotFound) IsServerError() bool
- func (o *ReplaceCacheNotFound) IsSuccess() bool
- func (o *ReplaceCacheNotFound) String() string
- type ReplaceCacheOK
- func (o *ReplaceCacheOK) Code() int
- func (o *ReplaceCacheOK) Error() string
- func (o *ReplaceCacheOK) GetPayload() *models.Cache
- func (o *ReplaceCacheOK) IsClientError() bool
- func (o *ReplaceCacheOK) IsCode(code int) bool
- func (o *ReplaceCacheOK) IsRedirect() bool
- func (o *ReplaceCacheOK) IsServerError() bool
- func (o *ReplaceCacheOK) IsSuccess() bool
- func (o *ReplaceCacheOK) String() string
- type ReplaceCacheParams
- func (o *ReplaceCacheParams) SetContext(ctx context.Context)
- func (o *ReplaceCacheParams) SetData(data *models.Cache)
- func (o *ReplaceCacheParams) SetDefaults()
- func (o *ReplaceCacheParams) SetForceReload(forceReload *bool)
- func (o *ReplaceCacheParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceCacheParams) SetName(name string)
- func (o *ReplaceCacheParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceCacheParams) SetTransactionID(transactionID *string)
- func (o *ReplaceCacheParams) SetVersion(version *int64)
- func (o *ReplaceCacheParams) WithContext(ctx context.Context) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithData(data *models.Cache) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithDefaults() *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithForceReload(forceReload *bool) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithHTTPClient(client *http.Client) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithName(name string) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithTimeout(timeout time.Duration) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithTransactionID(transactionID *string) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WithVersion(version *int64) *ReplaceCacheParams
- func (o *ReplaceCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceCacheReader
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 ¶
func (a *Client) CreateCache(params *CreateCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCacheCreated, *CreateCacheAccepted, error)
CreateCache adds a cache
Adds a new cache section to the configuration file.
func (*Client) DeleteCache ¶
func (a *Client) DeleteCache(params *DeleteCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCacheAccepted, *DeleteCacheNoContent, error)
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 ¶
func (a *Client) ReplaceCache(params *ReplaceCacheParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceCacheOK, *ReplaceCacheAccepted, error)
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 ¶
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 ¶
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
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 ¶
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
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 ¶
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 ¶
func (o *ReplaceCacheParams) WithContext(ctx context.Context) *ReplaceCacheParams
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.