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 ClientService
- type CreateCacheAccepted
- type CreateCacheBadRequest
- type CreateCacheConflict
- type CreateCacheCreated
- type CreateCacheDefault
- type CreateCacheParams
- func (o *CreateCacheParams) SetContext(ctx context.Context)
- func (o *CreateCacheParams) SetData(data *models.Cache)
- 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) 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
- type DeleteCacheDefault
- type DeleteCacheNoContent
- type DeleteCacheNotFound
- type DeleteCacheParams
- func (o *DeleteCacheParams) SetContext(ctx context.Context)
- 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) 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
- type GetCacheNotFound
- type GetCacheOK
- type GetCacheOKBody
- type GetCacheParams
- func (o *GetCacheParams) SetContext(ctx context.Context)
- 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) 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
- type GetCachesOK
- type GetCachesOKBody
- type GetCachesParams
- func (o *GetCachesParams) SetContext(ctx context.Context)
- 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) 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
- type ReplaceCacheBadRequest
- type ReplaceCacheDefault
- type ReplaceCacheNotFound
- type ReplaceCacheOK
- type ReplaceCacheParams
- func (o *ReplaceCacheParams) SetContext(ctx context.Context)
- func (o *ReplaceCacheParams) SetData(data *models.Cache)
- 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) 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) (*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) (*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) (*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) (*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) (*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 ClientService ¶
type ClientService interface { CreateCache(params *CreateCacheParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCacheCreated, *CreateCacheAccepted, error) DeleteCache(params *DeleteCacheParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCacheAccepted, *DeleteCacheNoContent, error) GetCache(params *GetCacheParams, authInfo runtime.ClientAuthInfoWriter) (*GetCacheOK, error) GetCaches(params *GetCachesParams, authInfo runtime.ClientAuthInfoWriter) (*GetCachesOK, error) ReplaceCache(params *ReplaceCacheParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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) Error ¶
func (o *CreateCacheAccepted) Error() string
func (*CreateCacheAccepted) GetPayload ¶
func (o *CreateCacheAccepted) GetPayload() *models.Cache
type CreateCacheBadRequest ¶
type CreateCacheBadRequest struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateCacheBadRequest handles this case with default header values.
Bad request
func NewCreateCacheBadRequest ¶
func NewCreateCacheBadRequest() *CreateCacheBadRequest
NewCreateCacheBadRequest creates a CreateCacheBadRequest with default headers values
func (*CreateCacheBadRequest) Error ¶
func (o *CreateCacheBadRequest) Error() string
func (*CreateCacheBadRequest) GetPayload ¶
func (o *CreateCacheBadRequest) GetPayload() *models.Error
type CreateCacheConflict ¶
type CreateCacheConflict struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateCacheConflict handles this case with default header values.
The specified resource already exists
func NewCreateCacheConflict ¶
func NewCreateCacheConflict() *CreateCacheConflict
NewCreateCacheConflict creates a CreateCacheConflict with default headers values
func (*CreateCacheConflict) Error ¶
func (o *CreateCacheConflict) Error() string
func (*CreateCacheConflict) GetPayload ¶
func (o *CreateCacheConflict) GetPayload() *models.Error
type CreateCacheCreated ¶
CreateCacheCreated handles this case with default header values.
Cache created
func NewCreateCacheCreated ¶
func NewCreateCacheCreated() *CreateCacheCreated
NewCreateCacheCreated creates a CreateCacheCreated with default headers values
func (*CreateCacheCreated) Error ¶
func (o *CreateCacheCreated) Error() string
func (*CreateCacheCreated) GetPayload ¶
func (o *CreateCacheCreated) GetPayload() *models.Cache
type CreateCacheDefault ¶
type CreateCacheDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateCacheDefault handles this case 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
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 values initialized.
func NewCreateCacheParamsWithContext ¶
func NewCreateCacheParamsWithContext(ctx context.Context) *CreateCacheParams
NewCreateCacheParamsWithContext creates a new CreateCacheParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error ¶
func (o *DeleteCacheAccepted) Error() string
type DeleteCacheDefault ¶
type DeleteCacheDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteCacheDefault handles this case 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
type DeleteCacheNoContent ¶
type DeleteCacheNoContent struct { }
DeleteCacheNoContent handles this case with default header values.
Cache deleted
func NewDeleteCacheNoContent ¶
func NewDeleteCacheNoContent() *DeleteCacheNoContent
NewDeleteCacheNoContent creates a DeleteCacheNoContent with default headers values
func (*DeleteCacheNoContent) Error ¶
func (o *DeleteCacheNoContent) Error() string
type DeleteCacheNotFound ¶
type DeleteCacheNotFound struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteCacheNotFound handles this case 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) Error ¶
func (o *DeleteCacheNotFound) Error() string
func (*DeleteCacheNotFound) GetPayload ¶
func (o *DeleteCacheNotFound) GetPayload() *models.Error
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 values initialized.
func NewDeleteCacheParamsWithContext ¶
func NewDeleteCacheParamsWithContext(ctx context.Context) *DeleteCacheParams
NewDeleteCacheParamsWithContext creates a new DeleteCacheParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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
type GetCacheNotFound ¶
type GetCacheNotFound struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetCacheNotFound handles this case 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) Error ¶
func (o *GetCacheNotFound) Error() string
func (*GetCacheNotFound) GetPayload ¶
func (o *GetCacheNotFound) GetPayload() *models.Error
type GetCacheOK ¶
type GetCacheOK struct { /*Configuration file version */ ConfigurationVersion string Payload *GetCacheOKBody }
GetCacheOK handles this case with default header values.
Successful operation
func NewGetCacheOK ¶
func NewGetCacheOK() *GetCacheOK
NewGetCacheOK creates a GetCacheOK with default headers values
func (*GetCacheOK) Error ¶
func (o *GetCacheOK) Error() string
func (*GetCacheOK) GetPayload ¶
func (o *GetCacheOK) GetPayload() *GetCacheOKBody
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) 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 values initialized.
func NewGetCacheParamsWithContext ¶
func NewGetCacheParamsWithContext(ctx context.Context) *GetCacheParams
NewGetCacheParamsWithContext creates a new GetCacheParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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
type GetCachesOK ¶
type GetCachesOK struct { /*Configuration file version */ ConfigurationVersion string Payload *GetCachesOKBody }
GetCachesOK handles this case with default header values.
Successful operation
func NewGetCachesOK ¶
func NewGetCachesOK() *GetCachesOK
NewGetCachesOK creates a GetCachesOK with default headers values
func (*GetCachesOK) Error ¶
func (o *GetCachesOK) Error() string
func (*GetCachesOK) GetPayload ¶
func (o *GetCachesOK) GetPayload() *GetCachesOKBody
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) 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 values initialized.
func NewGetCachesParamsWithContext ¶
func NewGetCachesParamsWithContext(ctx context.Context) *GetCachesParams
NewGetCachesParamsWithContext creates a new GetCachesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error ¶
func (o *ReplaceCacheAccepted) Error() string
func (*ReplaceCacheAccepted) GetPayload ¶
func (o *ReplaceCacheAccepted) GetPayload() *models.Cache
type ReplaceCacheBadRequest ¶
type ReplaceCacheBadRequest struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceCacheBadRequest handles this case with default header values.
Bad request
func NewReplaceCacheBadRequest ¶
func NewReplaceCacheBadRequest() *ReplaceCacheBadRequest
NewReplaceCacheBadRequest creates a ReplaceCacheBadRequest with default headers values
func (*ReplaceCacheBadRequest) Error ¶
func (o *ReplaceCacheBadRequest) Error() string
func (*ReplaceCacheBadRequest) GetPayload ¶
func (o *ReplaceCacheBadRequest) GetPayload() *models.Error
type ReplaceCacheDefault ¶
type ReplaceCacheDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceCacheDefault handles this case 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
type ReplaceCacheNotFound ¶
type ReplaceCacheNotFound struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceCacheNotFound handles this case 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) Error ¶
func (o *ReplaceCacheNotFound) Error() string
func (*ReplaceCacheNotFound) GetPayload ¶
func (o *ReplaceCacheNotFound) GetPayload() *models.Error
type ReplaceCacheOK ¶
ReplaceCacheOK handles this case with default header values.
Cache replaced
func NewReplaceCacheOK ¶
func NewReplaceCacheOK() *ReplaceCacheOK
NewReplaceCacheOK creates a ReplaceCacheOK with default headers values
func (*ReplaceCacheOK) Error ¶
func (o *ReplaceCacheOK) Error() string
func (*ReplaceCacheOK) GetPayload ¶
func (o *ReplaceCacheOK) GetPayload() *models.Cache
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 values initialized.
func NewReplaceCacheParamsWithContext ¶
func NewReplaceCacheParamsWithContext(ctx context.Context) *ReplaceCacheParams
NewReplaceCacheParamsWithContext creates a new ReplaceCacheParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.