Documentation ¶
Index ¶
- Constants
- type BackupsCancel
- type BackupsCancelForbidden
- type BackupsCancelHandler
- type BackupsCancelHandlerFunc
- type BackupsCancelInternalServerError
- func (o *BackupsCancelInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsCancelInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsCancelInternalServerError
- func (o *BackupsCancelInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsCancelNoContent
- type BackupsCancelParams
- type BackupsCancelURL
- func (o *BackupsCancelURL) Build() (*url.URL, error)
- func (o *BackupsCancelURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BackupsCancelURL) Must(u *url.URL, err error) *url.URL
- func (o *BackupsCancelURL) SetBasePath(bp string)
- func (o *BackupsCancelURL) String() string
- func (o *BackupsCancelURL) StringFull(scheme, host string) string
- func (o *BackupsCancelURL) WithBasePath(bp string) *BackupsCancelURL
- type BackupsCancelUnauthorized
- type BackupsCancelUnprocessableEntity
- func (o *BackupsCancelUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsCancelUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsCancelUnprocessableEntity
- func (o *BackupsCancelUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsCreate
- type BackupsCreateForbidden
- type BackupsCreateHandler
- type BackupsCreateHandlerFunc
- type BackupsCreateInternalServerError
- func (o *BackupsCreateInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsCreateInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsCreateInternalServerError
- func (o *BackupsCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsCreateOK
- type BackupsCreateParams
- type BackupsCreateStatus
- type BackupsCreateStatusForbidden
- type BackupsCreateStatusHandler
- type BackupsCreateStatusHandlerFunc
- type BackupsCreateStatusInternalServerError
- func (o *BackupsCreateStatusInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsCreateStatusInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsCreateStatusInternalServerError
- func (o *BackupsCreateStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsCreateStatusNotFound
- type BackupsCreateStatusOK
- type BackupsCreateStatusParams
- type BackupsCreateStatusURL
- func (o *BackupsCreateStatusURL) Build() (*url.URL, error)
- func (o *BackupsCreateStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BackupsCreateStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *BackupsCreateStatusURL) SetBasePath(bp string)
- func (o *BackupsCreateStatusURL) String() string
- func (o *BackupsCreateStatusURL) StringFull(scheme, host string) string
- func (o *BackupsCreateStatusURL) WithBasePath(bp string) *BackupsCreateStatusURL
- type BackupsCreateStatusUnauthorized
- type BackupsCreateStatusUnprocessableEntity
- func (o *BackupsCreateStatusUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsCreateStatusUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsCreateStatusUnprocessableEntity
- func (o *BackupsCreateStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsCreateURL
- func (o *BackupsCreateURL) Build() (*url.URL, error)
- func (o *BackupsCreateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BackupsCreateURL) Must(u *url.URL, err error) *url.URL
- func (o *BackupsCreateURL) SetBasePath(bp string)
- func (o *BackupsCreateURL) String() string
- func (o *BackupsCreateURL) StringFull(scheme, host string) string
- func (o *BackupsCreateURL) WithBasePath(bp string) *BackupsCreateURL
- type BackupsCreateUnauthorized
- type BackupsCreateUnprocessableEntity
- func (o *BackupsCreateUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsCreateUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsCreateUnprocessableEntity
- func (o *BackupsCreateUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsList
- type BackupsListForbidden
- type BackupsListHandler
- type BackupsListHandlerFunc
- type BackupsListInternalServerError
- func (o *BackupsListInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsListInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsListInternalServerError
- func (o *BackupsListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsListOK
- type BackupsListParams
- type BackupsListURL
- func (o *BackupsListURL) Build() (*url.URL, error)
- func (o *BackupsListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BackupsListURL) Must(u *url.URL, err error) *url.URL
- func (o *BackupsListURL) SetBasePath(bp string)
- func (o *BackupsListURL) String() string
- func (o *BackupsListURL) StringFull(scheme, host string) string
- func (o *BackupsListURL) WithBasePath(bp string) *BackupsListURL
- type BackupsListUnauthorized
- type BackupsListUnprocessableEntity
- func (o *BackupsListUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsListUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsListUnprocessableEntity
- func (o *BackupsListUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsRestore
- type BackupsRestoreForbidden
- type BackupsRestoreHandler
- type BackupsRestoreHandlerFunc
- type BackupsRestoreInternalServerError
- func (o *BackupsRestoreInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsRestoreInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsRestoreInternalServerError
- func (o *BackupsRestoreInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsRestoreNotFound
- type BackupsRestoreOK
- type BackupsRestoreParams
- type BackupsRestoreStatus
- type BackupsRestoreStatusForbidden
- func (o *BackupsRestoreStatusForbidden) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsRestoreStatusForbidden) WithPayload(payload *models.ErrorResponse) *BackupsRestoreStatusForbidden
- func (o *BackupsRestoreStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsRestoreStatusHandler
- type BackupsRestoreStatusHandlerFunc
- type BackupsRestoreStatusInternalServerError
- func (o *BackupsRestoreStatusInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsRestoreStatusInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsRestoreStatusInternalServerError
- func (o *BackupsRestoreStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsRestoreStatusNotFound
- type BackupsRestoreStatusOK
- func (o *BackupsRestoreStatusOK) SetPayload(payload *models.BackupRestoreStatusResponse)
- func (o *BackupsRestoreStatusOK) WithPayload(payload *models.BackupRestoreStatusResponse) *BackupsRestoreStatusOK
- func (o *BackupsRestoreStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BackupsRestoreStatusParams
- type BackupsRestoreStatusURL
- func (o *BackupsRestoreStatusURL) Build() (*url.URL, error)
- func (o *BackupsRestoreStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BackupsRestoreStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *BackupsRestoreStatusURL) SetBasePath(bp string)
- func (o *BackupsRestoreStatusURL) String() string
- func (o *BackupsRestoreStatusURL) StringFull(scheme, host string) string
- func (o *BackupsRestoreStatusURL) WithBasePath(bp string) *BackupsRestoreStatusURL
- type BackupsRestoreStatusUnauthorized
- type BackupsRestoreURL
- func (o *BackupsRestoreURL) Build() (*url.URL, error)
- func (o *BackupsRestoreURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BackupsRestoreURL) Must(u *url.URL, err error) *url.URL
- func (o *BackupsRestoreURL) SetBasePath(bp string)
- func (o *BackupsRestoreURL) String() string
- func (o *BackupsRestoreURL) StringFull(scheme, host string) string
- func (o *BackupsRestoreURL) WithBasePath(bp string) *BackupsRestoreURL
- type BackupsRestoreUnauthorized
- type BackupsRestoreUnprocessableEntity
- func (o *BackupsRestoreUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *BackupsRestoreUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsRestoreUnprocessableEntity
- func (o *BackupsRestoreUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const BackupsCancelForbiddenCode int = 403
BackupsCancelForbiddenCode is the HTTP code returned for type BackupsCancelForbidden
const BackupsCancelInternalServerErrorCode int = 500
BackupsCancelInternalServerErrorCode is the HTTP code returned for type BackupsCancelInternalServerError
const BackupsCancelNoContentCode int = 204
BackupsCancelNoContentCode is the HTTP code returned for type BackupsCancelNoContent
BackupsCancelUnauthorizedCode is the HTTP code returned for type BackupsCancelUnauthorized
const BackupsCancelUnprocessableEntityCode int = 422
BackupsCancelUnprocessableEntityCode is the HTTP code returned for type BackupsCancelUnprocessableEntity
const BackupsCreateForbiddenCode int = 403
BackupsCreateForbiddenCode is the HTTP code returned for type BackupsCreateForbidden
const BackupsCreateInternalServerErrorCode int = 500
BackupsCreateInternalServerErrorCode is the HTTP code returned for type BackupsCreateInternalServerError
const BackupsCreateOKCode int = 200
BackupsCreateOKCode is the HTTP code returned for type BackupsCreateOK
const BackupsCreateStatusForbiddenCode int = 403
BackupsCreateStatusForbiddenCode is the HTTP code returned for type BackupsCreateStatusForbidden
const BackupsCreateStatusInternalServerErrorCode int = 500
BackupsCreateStatusInternalServerErrorCode is the HTTP code returned for type BackupsCreateStatusInternalServerError
const BackupsCreateStatusNotFoundCode int = 404
BackupsCreateStatusNotFoundCode is the HTTP code returned for type BackupsCreateStatusNotFound
const BackupsCreateStatusOKCode int = 200
BackupsCreateStatusOKCode is the HTTP code returned for type BackupsCreateStatusOK
BackupsCreateStatusUnauthorizedCode is the HTTP code returned for type BackupsCreateStatusUnauthorized
const BackupsCreateStatusUnprocessableEntityCode int = 422
BackupsCreateStatusUnprocessableEntityCode is the HTTP code returned for type BackupsCreateStatusUnprocessableEntity
BackupsCreateUnauthorizedCode is the HTTP code returned for type BackupsCreateUnauthorized
const BackupsCreateUnprocessableEntityCode int = 422
BackupsCreateUnprocessableEntityCode is the HTTP code returned for type BackupsCreateUnprocessableEntity
const BackupsListForbiddenCode int = 403
BackupsListForbiddenCode is the HTTP code returned for type BackupsListForbidden
const BackupsListInternalServerErrorCode int = 500
BackupsListInternalServerErrorCode is the HTTP code returned for type BackupsListInternalServerError
const BackupsListOKCode int = 200
BackupsListOKCode is the HTTP code returned for type BackupsListOK
BackupsListUnauthorizedCode is the HTTP code returned for type BackupsListUnauthorized
const BackupsListUnprocessableEntityCode int = 422
BackupsListUnprocessableEntityCode is the HTTP code returned for type BackupsListUnprocessableEntity
const BackupsRestoreForbiddenCode int = 403
BackupsRestoreForbiddenCode is the HTTP code returned for type BackupsRestoreForbidden
const BackupsRestoreInternalServerErrorCode int = 500
BackupsRestoreInternalServerErrorCode is the HTTP code returned for type BackupsRestoreInternalServerError
const BackupsRestoreNotFoundCode int = 404
BackupsRestoreNotFoundCode is the HTTP code returned for type BackupsRestoreNotFound
const BackupsRestoreOKCode int = 200
BackupsRestoreOKCode is the HTTP code returned for type BackupsRestoreOK
const BackupsRestoreStatusForbiddenCode int = 403
BackupsRestoreStatusForbiddenCode is the HTTP code returned for type BackupsRestoreStatusForbidden
const BackupsRestoreStatusInternalServerErrorCode int = 500
BackupsRestoreStatusInternalServerErrorCode is the HTTP code returned for type BackupsRestoreStatusInternalServerError
const BackupsRestoreStatusNotFoundCode int = 404
BackupsRestoreStatusNotFoundCode is the HTTP code returned for type BackupsRestoreStatusNotFound
const BackupsRestoreStatusOKCode int = 200
BackupsRestoreStatusOKCode is the HTTP code returned for type BackupsRestoreStatusOK
BackupsRestoreStatusUnauthorizedCode is the HTTP code returned for type BackupsRestoreStatusUnauthorized
BackupsRestoreUnauthorizedCode is the HTTP code returned for type BackupsRestoreUnauthorized
const BackupsRestoreUnprocessableEntityCode int = 422
BackupsRestoreUnprocessableEntityCode is the HTTP code returned for type BackupsRestoreUnprocessableEntity
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupsCancel ¶
type BackupsCancel struct { Context *middleware.Context Handler BackupsCancelHandler }
BackupsCancel swagger:route DELETE /backups/{backend}/{id} backups backupsCancel
Cancel backup ¶
Cancel created backup with specified ID
func NewBackupsCancel ¶
func NewBackupsCancel(ctx *middleware.Context, handler BackupsCancelHandler) *BackupsCancel
NewBackupsCancel creates a new http.Handler for the backups cancel operation
func (*BackupsCancel) ServeHTTP ¶
func (o *BackupsCancel) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BackupsCancelForbidden ¶
type BackupsCancelForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCancelForbidden Forbidden
swagger:response backupsCancelForbidden
func NewBackupsCancelForbidden ¶
func NewBackupsCancelForbidden() *BackupsCancelForbidden
NewBackupsCancelForbidden creates BackupsCancelForbidden with default headers values
func (*BackupsCancelForbidden) SetPayload ¶
func (o *BackupsCancelForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups cancel forbidden response
func (*BackupsCancelForbidden) WithPayload ¶
func (o *BackupsCancelForbidden) WithPayload(payload *models.ErrorResponse) *BackupsCancelForbidden
WithPayload adds the payload to the backups cancel forbidden response
func (*BackupsCancelForbidden) WriteResponse ¶
func (o *BackupsCancelForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCancelHandler ¶
type BackupsCancelHandler interface {
Handle(BackupsCancelParams, *models.Principal) middleware.Responder
}
BackupsCancelHandler interface for that can handle valid backups cancel params
type BackupsCancelHandlerFunc ¶
type BackupsCancelHandlerFunc func(BackupsCancelParams, *models.Principal) middleware.Responder
BackupsCancelHandlerFunc turns a function with the right signature into a backups cancel handler
func (BackupsCancelHandlerFunc) Handle ¶
func (fn BackupsCancelHandlerFunc) Handle(params BackupsCancelParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type BackupsCancelInternalServerError ¶
type BackupsCancelInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCancelInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response backupsCancelInternalServerError
func NewBackupsCancelInternalServerError ¶
func NewBackupsCancelInternalServerError() *BackupsCancelInternalServerError
NewBackupsCancelInternalServerError creates BackupsCancelInternalServerError with default headers values
func (*BackupsCancelInternalServerError) SetPayload ¶
func (o *BackupsCancelInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups cancel internal server error response
func (*BackupsCancelInternalServerError) WithPayload ¶
func (o *BackupsCancelInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsCancelInternalServerError
WithPayload adds the payload to the backups cancel internal server error response
func (*BackupsCancelInternalServerError) WriteResponse ¶
func (o *BackupsCancelInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCancelNoContent ¶
type BackupsCancelNoContent struct { }
BackupsCancelNoContent Successfully deleted.
swagger:response backupsCancelNoContent
func NewBackupsCancelNoContent ¶
func NewBackupsCancelNoContent() *BackupsCancelNoContent
NewBackupsCancelNoContent creates BackupsCancelNoContent with default headers values
func (*BackupsCancelNoContent) WriteResponse ¶
func (o *BackupsCancelNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCancelParams ¶
type BackupsCancelParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup backend name e.g. filesystem, gcs, s3. Required: true In: path */ Backend string /*Name of the bucket, container, volume, etc In: query */ Bucket *string /*The ID of a backup. Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed. Required: true In: path */ ID string /*The path within the bucket In: query */ Path *string }
BackupsCancelParams contains all the bound params for the backups cancel operation typically these are obtained from a http.Request
swagger:parameters backups.cancel
func NewBackupsCancelParams ¶
func NewBackupsCancelParams() BackupsCancelParams
NewBackupsCancelParams creates a new BackupsCancelParams object
There are no default values defined in the spec.
func (*BackupsCancelParams) BindRequest ¶
func (o *BackupsCancelParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewBackupsCancelParams() beforehand.
type BackupsCancelURL ¶
type BackupsCancelURL struct { Backend string ID string Bucket *string Path *string // contains filtered or unexported fields }
BackupsCancelURL generates an URL for the backups cancel operation
func (*BackupsCancelURL) Build ¶
func (o *BackupsCancelURL) Build() (*url.URL, error)
Build a url path and query string
func (*BackupsCancelURL) BuildFull ¶
func (o *BackupsCancelURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BackupsCancelURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BackupsCancelURL) SetBasePath ¶
func (o *BackupsCancelURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*BackupsCancelURL) String ¶
func (o *BackupsCancelURL) String() string
String returns the string representation of the path with query string
func (*BackupsCancelURL) StringFull ¶
func (o *BackupsCancelURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BackupsCancelURL) WithBasePath ¶
func (o *BackupsCancelURL) WithBasePath(bp string) *BackupsCancelURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type BackupsCancelUnauthorized ¶
type BackupsCancelUnauthorized struct { }
BackupsCancelUnauthorized Unauthorized or invalid credentials.
swagger:response backupsCancelUnauthorized
func NewBackupsCancelUnauthorized ¶
func NewBackupsCancelUnauthorized() *BackupsCancelUnauthorized
NewBackupsCancelUnauthorized creates BackupsCancelUnauthorized with default headers values
func (*BackupsCancelUnauthorized) WriteResponse ¶
func (o *BackupsCancelUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCancelUnprocessableEntity ¶
type BackupsCancelUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCancelUnprocessableEntity Invalid backup cancellation attempt.
swagger:response backupsCancelUnprocessableEntity
func NewBackupsCancelUnprocessableEntity ¶
func NewBackupsCancelUnprocessableEntity() *BackupsCancelUnprocessableEntity
NewBackupsCancelUnprocessableEntity creates BackupsCancelUnprocessableEntity with default headers values
func (*BackupsCancelUnprocessableEntity) SetPayload ¶
func (o *BackupsCancelUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups cancel unprocessable entity response
func (*BackupsCancelUnprocessableEntity) WithPayload ¶
func (o *BackupsCancelUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsCancelUnprocessableEntity
WithPayload adds the payload to the backups cancel unprocessable entity response
func (*BackupsCancelUnprocessableEntity) WriteResponse ¶
func (o *BackupsCancelUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreate ¶
type BackupsCreate struct { Context *middleware.Context Handler BackupsCreateHandler }
BackupsCreate swagger:route POST /backups/{backend} backups backupsCreate
Start a backup process ¶
Start creating a backup for a set of collections. <br/><br/>Notes: <br/>- Weaviate uses gzip compression by default. <br/>- Weaviate stays usable while a backup process is ongoing.
func NewBackupsCreate ¶
func NewBackupsCreate(ctx *middleware.Context, handler BackupsCreateHandler) *BackupsCreate
NewBackupsCreate creates a new http.Handler for the backups create operation
func (*BackupsCreate) ServeHTTP ¶
func (o *BackupsCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BackupsCreateForbidden ¶
type BackupsCreateForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCreateForbidden Forbidden
swagger:response backupsCreateForbidden
func NewBackupsCreateForbidden ¶
func NewBackupsCreateForbidden() *BackupsCreateForbidden
NewBackupsCreateForbidden creates BackupsCreateForbidden with default headers values
func (*BackupsCreateForbidden) SetPayload ¶
func (o *BackupsCreateForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups create forbidden response
func (*BackupsCreateForbidden) WithPayload ¶
func (o *BackupsCreateForbidden) WithPayload(payload *models.ErrorResponse) *BackupsCreateForbidden
WithPayload adds the payload to the backups create forbidden response
func (*BackupsCreateForbidden) WriteResponse ¶
func (o *BackupsCreateForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateHandler ¶
type BackupsCreateHandler interface {
Handle(BackupsCreateParams, *models.Principal) middleware.Responder
}
BackupsCreateHandler interface for that can handle valid backups create params
type BackupsCreateHandlerFunc ¶
type BackupsCreateHandlerFunc func(BackupsCreateParams, *models.Principal) middleware.Responder
BackupsCreateHandlerFunc turns a function with the right signature into a backups create handler
func (BackupsCreateHandlerFunc) Handle ¶
func (fn BackupsCreateHandlerFunc) Handle(params BackupsCreateParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type BackupsCreateInternalServerError ¶
type BackupsCreateInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCreateInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response backupsCreateInternalServerError
func NewBackupsCreateInternalServerError ¶
func NewBackupsCreateInternalServerError() *BackupsCreateInternalServerError
NewBackupsCreateInternalServerError creates BackupsCreateInternalServerError with default headers values
func (*BackupsCreateInternalServerError) SetPayload ¶
func (o *BackupsCreateInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups create internal server error response
func (*BackupsCreateInternalServerError) WithPayload ¶
func (o *BackupsCreateInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsCreateInternalServerError
WithPayload adds the payload to the backups create internal server error response
func (*BackupsCreateInternalServerError) WriteResponse ¶
func (o *BackupsCreateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateOK ¶
type BackupsCreateOK struct { /* In: Body */ Payload *models.BackupCreateResponse `json:"body,omitempty"` }
BackupsCreateOK Backup create process successfully started.
swagger:response backupsCreateOK
func NewBackupsCreateOK ¶
func NewBackupsCreateOK() *BackupsCreateOK
NewBackupsCreateOK creates BackupsCreateOK with default headers values
func (*BackupsCreateOK) SetPayload ¶
func (o *BackupsCreateOK) SetPayload(payload *models.BackupCreateResponse)
SetPayload sets the payload to the backups create o k response
func (*BackupsCreateOK) WithPayload ¶
func (o *BackupsCreateOK) WithPayload(payload *models.BackupCreateResponse) *BackupsCreateOK
WithPayload adds the payload to the backups create o k response
func (*BackupsCreateOK) WriteResponse ¶
func (o *BackupsCreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateParams ¶
type BackupsCreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup backend name e.g. `filesystem`, `gcs`, `s3`, `azure`. Required: true In: path */ Backend string /* Required: true In: body */ Body *models.BackupCreateRequest }
BackupsCreateParams contains all the bound params for the backups create operation typically these are obtained from a http.Request
swagger:parameters backups.create
func NewBackupsCreateParams ¶
func NewBackupsCreateParams() BackupsCreateParams
NewBackupsCreateParams creates a new BackupsCreateParams object
There are no default values defined in the spec.
func (*BackupsCreateParams) BindRequest ¶
func (o *BackupsCreateParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewBackupsCreateParams() beforehand.
type BackupsCreateStatus ¶
type BackupsCreateStatus struct { Context *middleware.Context Handler BackupsCreateStatusHandler }
BackupsCreateStatus swagger:route GET /backups/{backend}/{id} backups backupsCreateStatus
Get backup process status ¶
Returns status of backup creation attempt for a set of collections. <br/><br/>All client implementations have a `wait for completion` option which will poll the backup status in the background and only return once the backup has completed (successfully or unsuccessfully). If you set the `wait for completion` option to false, you can also check the status yourself using this endpoint.
func NewBackupsCreateStatus ¶
func NewBackupsCreateStatus(ctx *middleware.Context, handler BackupsCreateStatusHandler) *BackupsCreateStatus
NewBackupsCreateStatus creates a new http.Handler for the backups create status operation
func (*BackupsCreateStatus) ServeHTTP ¶
func (o *BackupsCreateStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BackupsCreateStatusForbidden ¶
type BackupsCreateStatusForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCreateStatusForbidden Forbidden
swagger:response backupsCreateStatusForbidden
func NewBackupsCreateStatusForbidden ¶
func NewBackupsCreateStatusForbidden() *BackupsCreateStatusForbidden
NewBackupsCreateStatusForbidden creates BackupsCreateStatusForbidden with default headers values
func (*BackupsCreateStatusForbidden) SetPayload ¶
func (o *BackupsCreateStatusForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups create status forbidden response
func (*BackupsCreateStatusForbidden) WithPayload ¶
func (o *BackupsCreateStatusForbidden) WithPayload(payload *models.ErrorResponse) *BackupsCreateStatusForbidden
WithPayload adds the payload to the backups create status forbidden response
func (*BackupsCreateStatusForbidden) WriteResponse ¶
func (o *BackupsCreateStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateStatusHandler ¶
type BackupsCreateStatusHandler interface {
Handle(BackupsCreateStatusParams, *models.Principal) middleware.Responder
}
BackupsCreateStatusHandler interface for that can handle valid backups create status params
type BackupsCreateStatusHandlerFunc ¶
type BackupsCreateStatusHandlerFunc func(BackupsCreateStatusParams, *models.Principal) middleware.Responder
BackupsCreateStatusHandlerFunc turns a function with the right signature into a backups create status handler
func (BackupsCreateStatusHandlerFunc) Handle ¶
func (fn BackupsCreateStatusHandlerFunc) Handle(params BackupsCreateStatusParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type BackupsCreateStatusInternalServerError ¶
type BackupsCreateStatusInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCreateStatusInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response backupsCreateStatusInternalServerError
func NewBackupsCreateStatusInternalServerError ¶
func NewBackupsCreateStatusInternalServerError() *BackupsCreateStatusInternalServerError
NewBackupsCreateStatusInternalServerError creates BackupsCreateStatusInternalServerError with default headers values
func (*BackupsCreateStatusInternalServerError) SetPayload ¶
func (o *BackupsCreateStatusInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups create status internal server error response
func (*BackupsCreateStatusInternalServerError) WithPayload ¶
func (o *BackupsCreateStatusInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsCreateStatusInternalServerError
WithPayload adds the payload to the backups create status internal server error response
func (*BackupsCreateStatusInternalServerError) WriteResponse ¶
func (o *BackupsCreateStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateStatusNotFound ¶
type BackupsCreateStatusNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCreateStatusNotFound Not Found - Backup does not exist
swagger:response backupsCreateStatusNotFound
func NewBackupsCreateStatusNotFound ¶
func NewBackupsCreateStatusNotFound() *BackupsCreateStatusNotFound
NewBackupsCreateStatusNotFound creates BackupsCreateStatusNotFound with default headers values
func (*BackupsCreateStatusNotFound) SetPayload ¶
func (o *BackupsCreateStatusNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups create status not found response
func (*BackupsCreateStatusNotFound) WithPayload ¶
func (o *BackupsCreateStatusNotFound) WithPayload(payload *models.ErrorResponse) *BackupsCreateStatusNotFound
WithPayload adds the payload to the backups create status not found response
func (*BackupsCreateStatusNotFound) WriteResponse ¶
func (o *BackupsCreateStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateStatusOK ¶
type BackupsCreateStatusOK struct { /* In: Body */ Payload *models.BackupCreateStatusResponse `json:"body,omitempty"` }
BackupsCreateStatusOK Backup creation status successfully returned
swagger:response backupsCreateStatusOK
func NewBackupsCreateStatusOK ¶
func NewBackupsCreateStatusOK() *BackupsCreateStatusOK
NewBackupsCreateStatusOK creates BackupsCreateStatusOK with default headers values
func (*BackupsCreateStatusOK) SetPayload ¶
func (o *BackupsCreateStatusOK) SetPayload(payload *models.BackupCreateStatusResponse)
SetPayload sets the payload to the backups create status o k response
func (*BackupsCreateStatusOK) WithPayload ¶
func (o *BackupsCreateStatusOK) WithPayload(payload *models.BackupCreateStatusResponse) *BackupsCreateStatusOK
WithPayload adds the payload to the backups create status o k response
func (*BackupsCreateStatusOK) WriteResponse ¶
func (o *BackupsCreateStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateStatusParams ¶
type BackupsCreateStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup backend name e.g. filesystem, gcs, s3. Required: true In: path */ Backend string /*Name of the bucket, container, volume, etc In: query */ Bucket *string /*The ID of a backup. Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed. Required: true In: path */ ID string /*The path within the bucket In: query */ Path *string }
BackupsCreateStatusParams contains all the bound params for the backups create status operation typically these are obtained from a http.Request
swagger:parameters backups.create.status
func NewBackupsCreateStatusParams ¶
func NewBackupsCreateStatusParams() BackupsCreateStatusParams
NewBackupsCreateStatusParams creates a new BackupsCreateStatusParams object
There are no default values defined in the spec.
func (*BackupsCreateStatusParams) BindRequest ¶
func (o *BackupsCreateStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewBackupsCreateStatusParams() beforehand.
type BackupsCreateStatusURL ¶
type BackupsCreateStatusURL struct { Backend string ID string Bucket *string Path *string // contains filtered or unexported fields }
BackupsCreateStatusURL generates an URL for the backups create status operation
func (*BackupsCreateStatusURL) Build ¶
func (o *BackupsCreateStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*BackupsCreateStatusURL) BuildFull ¶
func (o *BackupsCreateStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BackupsCreateStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BackupsCreateStatusURL) SetBasePath ¶
func (o *BackupsCreateStatusURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*BackupsCreateStatusURL) String ¶
func (o *BackupsCreateStatusURL) String() string
String returns the string representation of the path with query string
func (*BackupsCreateStatusURL) StringFull ¶
func (o *BackupsCreateStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BackupsCreateStatusURL) WithBasePath ¶
func (o *BackupsCreateStatusURL) WithBasePath(bp string) *BackupsCreateStatusURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type BackupsCreateStatusUnauthorized ¶
type BackupsCreateStatusUnauthorized struct { }
BackupsCreateStatusUnauthorized Unauthorized or invalid credentials.
swagger:response backupsCreateStatusUnauthorized
func NewBackupsCreateStatusUnauthorized ¶
func NewBackupsCreateStatusUnauthorized() *BackupsCreateStatusUnauthorized
NewBackupsCreateStatusUnauthorized creates BackupsCreateStatusUnauthorized with default headers values
func (*BackupsCreateStatusUnauthorized) WriteResponse ¶
func (o *BackupsCreateStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateStatusUnprocessableEntity ¶
type BackupsCreateStatusUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCreateStatusUnprocessableEntity Invalid backup restoration status attempt.
swagger:response backupsCreateStatusUnprocessableEntity
func NewBackupsCreateStatusUnprocessableEntity ¶
func NewBackupsCreateStatusUnprocessableEntity() *BackupsCreateStatusUnprocessableEntity
NewBackupsCreateStatusUnprocessableEntity creates BackupsCreateStatusUnprocessableEntity with default headers values
func (*BackupsCreateStatusUnprocessableEntity) SetPayload ¶
func (o *BackupsCreateStatusUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups create status unprocessable entity response
func (*BackupsCreateStatusUnprocessableEntity) WithPayload ¶
func (o *BackupsCreateStatusUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsCreateStatusUnprocessableEntity
WithPayload adds the payload to the backups create status unprocessable entity response
func (*BackupsCreateStatusUnprocessableEntity) WriteResponse ¶
func (o *BackupsCreateStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateURL ¶
type BackupsCreateURL struct { Backend string // contains filtered or unexported fields }
BackupsCreateURL generates an URL for the backups create operation
func (*BackupsCreateURL) Build ¶
func (o *BackupsCreateURL) Build() (*url.URL, error)
Build a url path and query string
func (*BackupsCreateURL) BuildFull ¶
func (o *BackupsCreateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BackupsCreateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BackupsCreateURL) SetBasePath ¶
func (o *BackupsCreateURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*BackupsCreateURL) String ¶
func (o *BackupsCreateURL) String() string
String returns the string representation of the path with query string
func (*BackupsCreateURL) StringFull ¶
func (o *BackupsCreateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BackupsCreateURL) WithBasePath ¶
func (o *BackupsCreateURL) WithBasePath(bp string) *BackupsCreateURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type BackupsCreateUnauthorized ¶
type BackupsCreateUnauthorized struct { }
BackupsCreateUnauthorized Unauthorized or invalid credentials.
swagger:response backupsCreateUnauthorized
func NewBackupsCreateUnauthorized ¶
func NewBackupsCreateUnauthorized() *BackupsCreateUnauthorized
NewBackupsCreateUnauthorized creates BackupsCreateUnauthorized with default headers values
func (*BackupsCreateUnauthorized) WriteResponse ¶
func (o *BackupsCreateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsCreateUnprocessableEntity ¶
type BackupsCreateUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsCreateUnprocessableEntity Invalid backup creation attempt.
swagger:response backupsCreateUnprocessableEntity
func NewBackupsCreateUnprocessableEntity ¶
func NewBackupsCreateUnprocessableEntity() *BackupsCreateUnprocessableEntity
NewBackupsCreateUnprocessableEntity creates BackupsCreateUnprocessableEntity with default headers values
func (*BackupsCreateUnprocessableEntity) SetPayload ¶
func (o *BackupsCreateUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups create unprocessable entity response
func (*BackupsCreateUnprocessableEntity) WithPayload ¶
func (o *BackupsCreateUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsCreateUnprocessableEntity
WithPayload adds the payload to the backups create unprocessable entity response
func (*BackupsCreateUnprocessableEntity) WriteResponse ¶
func (o *BackupsCreateUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsList ¶
type BackupsList struct { Context *middleware.Context Handler BackupsListHandler }
BackupsList swagger:route GET /backups/{backend} backups backupsList
List backups in progress ¶
[Coming soon] List all backups in progress not implemented yet.
func NewBackupsList ¶
func NewBackupsList(ctx *middleware.Context, handler BackupsListHandler) *BackupsList
NewBackupsList creates a new http.Handler for the backups list operation
func (*BackupsList) ServeHTTP ¶
func (o *BackupsList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BackupsListForbidden ¶
type BackupsListForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsListForbidden Forbidden
swagger:response backupsListForbidden
func NewBackupsListForbidden ¶
func NewBackupsListForbidden() *BackupsListForbidden
NewBackupsListForbidden creates BackupsListForbidden with default headers values
func (*BackupsListForbidden) SetPayload ¶
func (o *BackupsListForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups list forbidden response
func (*BackupsListForbidden) WithPayload ¶
func (o *BackupsListForbidden) WithPayload(payload *models.ErrorResponse) *BackupsListForbidden
WithPayload adds the payload to the backups list forbidden response
func (*BackupsListForbidden) WriteResponse ¶
func (o *BackupsListForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsListHandler ¶
type BackupsListHandler interface {
Handle(BackupsListParams, *models.Principal) middleware.Responder
}
BackupsListHandler interface for that can handle valid backups list params
type BackupsListHandlerFunc ¶
type BackupsListHandlerFunc func(BackupsListParams, *models.Principal) middleware.Responder
BackupsListHandlerFunc turns a function with the right signature into a backups list handler
func (BackupsListHandlerFunc) Handle ¶
func (fn BackupsListHandlerFunc) Handle(params BackupsListParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type BackupsListInternalServerError ¶
type BackupsListInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsListInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response backupsListInternalServerError
func NewBackupsListInternalServerError ¶
func NewBackupsListInternalServerError() *BackupsListInternalServerError
NewBackupsListInternalServerError creates BackupsListInternalServerError with default headers values
func (*BackupsListInternalServerError) SetPayload ¶
func (o *BackupsListInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups list internal server error response
func (*BackupsListInternalServerError) WithPayload ¶
func (o *BackupsListInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsListInternalServerError
WithPayload adds the payload to the backups list internal server error response
func (*BackupsListInternalServerError) WriteResponse ¶
func (o *BackupsListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsListOK ¶
type BackupsListOK struct { /* In: Body */ Payload models.BackupListResponse `json:"body,omitempty"` }
BackupsListOK Existed backups
swagger:response backupsListOK
func NewBackupsListOK ¶
func NewBackupsListOK() *BackupsListOK
NewBackupsListOK creates BackupsListOK with default headers values
func (*BackupsListOK) SetPayload ¶
func (o *BackupsListOK) SetPayload(payload models.BackupListResponse)
SetPayload sets the payload to the backups list o k response
func (*BackupsListOK) WithPayload ¶
func (o *BackupsListOK) WithPayload(payload models.BackupListResponse) *BackupsListOK
WithPayload adds the payload to the backups list o k response
func (*BackupsListOK) WriteResponse ¶
func (o *BackupsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsListParams ¶
type BackupsListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup backend name e.g. filesystem, gcs, s3. Required: true In: path */ Backend string }
BackupsListParams contains all the bound params for the backups list operation typically these are obtained from a http.Request
swagger:parameters backups.list
func NewBackupsListParams ¶
func NewBackupsListParams() BackupsListParams
NewBackupsListParams creates a new BackupsListParams object
There are no default values defined in the spec.
func (*BackupsListParams) BindRequest ¶
func (o *BackupsListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewBackupsListParams() beforehand.
type BackupsListURL ¶
type BackupsListURL struct { Backend string // contains filtered or unexported fields }
BackupsListURL generates an URL for the backups list operation
func (*BackupsListURL) Build ¶
func (o *BackupsListURL) Build() (*url.URL, error)
Build a url path and query string
func (*BackupsListURL) BuildFull ¶
func (o *BackupsListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BackupsListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BackupsListURL) SetBasePath ¶
func (o *BackupsListURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*BackupsListURL) String ¶
func (o *BackupsListURL) String() string
String returns the string representation of the path with query string
func (*BackupsListURL) StringFull ¶
func (o *BackupsListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BackupsListURL) WithBasePath ¶
func (o *BackupsListURL) WithBasePath(bp string) *BackupsListURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type BackupsListUnauthorized ¶
type BackupsListUnauthorized struct { }
BackupsListUnauthorized Unauthorized or invalid credentials.
swagger:response backupsListUnauthorized
func NewBackupsListUnauthorized ¶
func NewBackupsListUnauthorized() *BackupsListUnauthorized
NewBackupsListUnauthorized creates BackupsListUnauthorized with default headers values
func (*BackupsListUnauthorized) WriteResponse ¶
func (o *BackupsListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsListUnprocessableEntity ¶
type BackupsListUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsListUnprocessableEntity Invalid backup list.
swagger:response backupsListUnprocessableEntity
func NewBackupsListUnprocessableEntity ¶
func NewBackupsListUnprocessableEntity() *BackupsListUnprocessableEntity
NewBackupsListUnprocessableEntity creates BackupsListUnprocessableEntity with default headers values
func (*BackupsListUnprocessableEntity) SetPayload ¶
func (o *BackupsListUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups list unprocessable entity response
func (*BackupsListUnprocessableEntity) WithPayload ¶
func (o *BackupsListUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsListUnprocessableEntity
WithPayload adds the payload to the backups list unprocessable entity response
func (*BackupsListUnprocessableEntity) WriteResponse ¶
func (o *BackupsListUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestore ¶
type BackupsRestore struct { Context *middleware.Context Handler BackupsRestoreHandler }
BackupsRestore swagger:route POST /backups/{backend}/{id}/restore backups backupsRestore
Start a restoration process ¶
Starts a process of restoring a backup for a set of collections. <br/><br/>Any backup can be restored to any machine, as long as the number of nodes between source and target are identical.<br/><br/>Requrements:<br/><br/>- None of the collections to be restored already exist on the target restoration node(s).<br/>- The node names of the backed-up collections' must match those of the target restoration node(s).
func NewBackupsRestore ¶
func NewBackupsRestore(ctx *middleware.Context, handler BackupsRestoreHandler) *BackupsRestore
NewBackupsRestore creates a new http.Handler for the backups restore operation
func (*BackupsRestore) ServeHTTP ¶
func (o *BackupsRestore) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BackupsRestoreForbidden ¶
type BackupsRestoreForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsRestoreForbidden Forbidden
swagger:response backupsRestoreForbidden
func NewBackupsRestoreForbidden ¶
func NewBackupsRestoreForbidden() *BackupsRestoreForbidden
NewBackupsRestoreForbidden creates BackupsRestoreForbidden with default headers values
func (*BackupsRestoreForbidden) SetPayload ¶
func (o *BackupsRestoreForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups restore forbidden response
func (*BackupsRestoreForbidden) WithPayload ¶
func (o *BackupsRestoreForbidden) WithPayload(payload *models.ErrorResponse) *BackupsRestoreForbidden
WithPayload adds the payload to the backups restore forbidden response
func (*BackupsRestoreForbidden) WriteResponse ¶
func (o *BackupsRestoreForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreHandler ¶
type BackupsRestoreHandler interface {
Handle(BackupsRestoreParams, *models.Principal) middleware.Responder
}
BackupsRestoreHandler interface for that can handle valid backups restore params
type BackupsRestoreHandlerFunc ¶
type BackupsRestoreHandlerFunc func(BackupsRestoreParams, *models.Principal) middleware.Responder
BackupsRestoreHandlerFunc turns a function with the right signature into a backups restore handler
func (BackupsRestoreHandlerFunc) Handle ¶
func (fn BackupsRestoreHandlerFunc) Handle(params BackupsRestoreParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type BackupsRestoreInternalServerError ¶
type BackupsRestoreInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsRestoreInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response backupsRestoreInternalServerError
func NewBackupsRestoreInternalServerError ¶
func NewBackupsRestoreInternalServerError() *BackupsRestoreInternalServerError
NewBackupsRestoreInternalServerError creates BackupsRestoreInternalServerError with default headers values
func (*BackupsRestoreInternalServerError) SetPayload ¶
func (o *BackupsRestoreInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups restore internal server error response
func (*BackupsRestoreInternalServerError) WithPayload ¶
func (o *BackupsRestoreInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsRestoreInternalServerError
WithPayload adds the payload to the backups restore internal server error response
func (*BackupsRestoreInternalServerError) WriteResponse ¶
func (o *BackupsRestoreInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreNotFound ¶
type BackupsRestoreNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsRestoreNotFound Not Found - Backup does not exist
swagger:response backupsRestoreNotFound
func NewBackupsRestoreNotFound ¶
func NewBackupsRestoreNotFound() *BackupsRestoreNotFound
NewBackupsRestoreNotFound creates BackupsRestoreNotFound with default headers values
func (*BackupsRestoreNotFound) SetPayload ¶
func (o *BackupsRestoreNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups restore not found response
func (*BackupsRestoreNotFound) WithPayload ¶
func (o *BackupsRestoreNotFound) WithPayload(payload *models.ErrorResponse) *BackupsRestoreNotFound
WithPayload adds the payload to the backups restore not found response
func (*BackupsRestoreNotFound) WriteResponse ¶
func (o *BackupsRestoreNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreOK ¶
type BackupsRestoreOK struct { /* In: Body */ Payload *models.BackupRestoreResponse `json:"body,omitempty"` }
BackupsRestoreOK Backup restoration process successfully started.
swagger:response backupsRestoreOK
func NewBackupsRestoreOK ¶
func NewBackupsRestoreOK() *BackupsRestoreOK
NewBackupsRestoreOK creates BackupsRestoreOK with default headers values
func (*BackupsRestoreOK) SetPayload ¶
func (o *BackupsRestoreOK) SetPayload(payload *models.BackupRestoreResponse)
SetPayload sets the payload to the backups restore o k response
func (*BackupsRestoreOK) WithPayload ¶
func (o *BackupsRestoreOK) WithPayload(payload *models.BackupRestoreResponse) *BackupsRestoreOK
WithPayload adds the payload to the backups restore o k response
func (*BackupsRestoreOK) WriteResponse ¶
func (o *BackupsRestoreOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreParams ¶
type BackupsRestoreParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup backend name e.g. `filesystem`, `gcs`, `s3`, `azure`. Required: true In: path */ Backend string /* Required: true In: body */ Body *models.BackupRestoreRequest /*The ID of a backup. Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed. Required: true In: path */ ID string }
BackupsRestoreParams contains all the bound params for the backups restore operation typically these are obtained from a http.Request
swagger:parameters backups.restore
func NewBackupsRestoreParams ¶
func NewBackupsRestoreParams() BackupsRestoreParams
NewBackupsRestoreParams creates a new BackupsRestoreParams object
There are no default values defined in the spec.
func (*BackupsRestoreParams) BindRequest ¶
func (o *BackupsRestoreParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewBackupsRestoreParams() beforehand.
type BackupsRestoreStatus ¶
type BackupsRestoreStatus struct { Context *middleware.Context Handler BackupsRestoreStatusHandler }
BackupsRestoreStatus swagger:route GET /backups/{backend}/{id}/restore backups backupsRestoreStatus
Get restore process status ¶
Returns status of a backup restoration attempt for a set of classes. <br/><br/>All client implementations have a `wait for completion` option which will poll the backup status in the background and only return once the backup has completed (successfully or unsuccessfully). If you set the `wait for completion` option to false, you can also check the status yourself using the this endpoint.
func NewBackupsRestoreStatus ¶
func NewBackupsRestoreStatus(ctx *middleware.Context, handler BackupsRestoreStatusHandler) *BackupsRestoreStatus
NewBackupsRestoreStatus creates a new http.Handler for the backups restore status operation
func (*BackupsRestoreStatus) ServeHTTP ¶
func (o *BackupsRestoreStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BackupsRestoreStatusForbidden ¶
type BackupsRestoreStatusForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsRestoreStatusForbidden Forbidden
swagger:response backupsRestoreStatusForbidden
func NewBackupsRestoreStatusForbidden ¶
func NewBackupsRestoreStatusForbidden() *BackupsRestoreStatusForbidden
NewBackupsRestoreStatusForbidden creates BackupsRestoreStatusForbidden with default headers values
func (*BackupsRestoreStatusForbidden) SetPayload ¶
func (o *BackupsRestoreStatusForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups restore status forbidden response
func (*BackupsRestoreStatusForbidden) WithPayload ¶
func (o *BackupsRestoreStatusForbidden) WithPayload(payload *models.ErrorResponse) *BackupsRestoreStatusForbidden
WithPayload adds the payload to the backups restore status forbidden response
func (*BackupsRestoreStatusForbidden) WriteResponse ¶
func (o *BackupsRestoreStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreStatusHandler ¶
type BackupsRestoreStatusHandler interface {
Handle(BackupsRestoreStatusParams, *models.Principal) middleware.Responder
}
BackupsRestoreStatusHandler interface for that can handle valid backups restore status params
type BackupsRestoreStatusHandlerFunc ¶
type BackupsRestoreStatusHandlerFunc func(BackupsRestoreStatusParams, *models.Principal) middleware.Responder
BackupsRestoreStatusHandlerFunc turns a function with the right signature into a backups restore status handler
func (BackupsRestoreStatusHandlerFunc) Handle ¶
func (fn BackupsRestoreStatusHandlerFunc) Handle(params BackupsRestoreStatusParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type BackupsRestoreStatusInternalServerError ¶
type BackupsRestoreStatusInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsRestoreStatusInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response backupsRestoreStatusInternalServerError
func NewBackupsRestoreStatusInternalServerError ¶
func NewBackupsRestoreStatusInternalServerError() *BackupsRestoreStatusInternalServerError
NewBackupsRestoreStatusInternalServerError creates BackupsRestoreStatusInternalServerError with default headers values
func (*BackupsRestoreStatusInternalServerError) SetPayload ¶
func (o *BackupsRestoreStatusInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups restore status internal server error response
func (*BackupsRestoreStatusInternalServerError) WithPayload ¶
func (o *BackupsRestoreStatusInternalServerError) WithPayload(payload *models.ErrorResponse) *BackupsRestoreStatusInternalServerError
WithPayload adds the payload to the backups restore status internal server error response
func (*BackupsRestoreStatusInternalServerError) WriteResponse ¶
func (o *BackupsRestoreStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreStatusNotFound ¶
type BackupsRestoreStatusNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsRestoreStatusNotFound Not Found - Backup does not exist
swagger:response backupsRestoreStatusNotFound
func NewBackupsRestoreStatusNotFound ¶
func NewBackupsRestoreStatusNotFound() *BackupsRestoreStatusNotFound
NewBackupsRestoreStatusNotFound creates BackupsRestoreStatusNotFound with default headers values
func (*BackupsRestoreStatusNotFound) SetPayload ¶
func (o *BackupsRestoreStatusNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups restore status not found response
func (*BackupsRestoreStatusNotFound) WithPayload ¶
func (o *BackupsRestoreStatusNotFound) WithPayload(payload *models.ErrorResponse) *BackupsRestoreStatusNotFound
WithPayload adds the payload to the backups restore status not found response
func (*BackupsRestoreStatusNotFound) WriteResponse ¶
func (o *BackupsRestoreStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreStatusOK ¶
type BackupsRestoreStatusOK struct { /* In: Body */ Payload *models.BackupRestoreStatusResponse `json:"body,omitempty"` }
BackupsRestoreStatusOK Backup restoration status successfully returned
swagger:response backupsRestoreStatusOK
func NewBackupsRestoreStatusOK ¶
func NewBackupsRestoreStatusOK() *BackupsRestoreStatusOK
NewBackupsRestoreStatusOK creates BackupsRestoreStatusOK with default headers values
func (*BackupsRestoreStatusOK) SetPayload ¶
func (o *BackupsRestoreStatusOK) SetPayload(payload *models.BackupRestoreStatusResponse)
SetPayload sets the payload to the backups restore status o k response
func (*BackupsRestoreStatusOK) WithPayload ¶
func (o *BackupsRestoreStatusOK) WithPayload(payload *models.BackupRestoreStatusResponse) *BackupsRestoreStatusOK
WithPayload adds the payload to the backups restore status o k response
func (*BackupsRestoreStatusOK) WriteResponse ¶
func (o *BackupsRestoreStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreStatusParams ¶
type BackupsRestoreStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup backend name e.g. `filesystem`, `gcs`, `s3`, `azure`. Required: true In: path */ Backend string /*Name of the bucket, container, volume, etc In: query */ Bucket *string /*The ID of a backup. Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed. Required: true In: path */ ID string /*The path within the bucket In: query */ Path *string }
BackupsRestoreStatusParams contains all the bound params for the backups restore status operation typically these are obtained from a http.Request
swagger:parameters backups.restore.status
func NewBackupsRestoreStatusParams ¶
func NewBackupsRestoreStatusParams() BackupsRestoreStatusParams
NewBackupsRestoreStatusParams creates a new BackupsRestoreStatusParams object
There are no default values defined in the spec.
func (*BackupsRestoreStatusParams) BindRequest ¶
func (o *BackupsRestoreStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewBackupsRestoreStatusParams() beforehand.
type BackupsRestoreStatusURL ¶
type BackupsRestoreStatusURL struct { Backend string ID string Bucket *string Path *string // contains filtered or unexported fields }
BackupsRestoreStatusURL generates an URL for the backups restore status operation
func (*BackupsRestoreStatusURL) Build ¶
func (o *BackupsRestoreStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*BackupsRestoreStatusURL) BuildFull ¶
func (o *BackupsRestoreStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BackupsRestoreStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BackupsRestoreStatusURL) SetBasePath ¶
func (o *BackupsRestoreStatusURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*BackupsRestoreStatusURL) String ¶
func (o *BackupsRestoreStatusURL) String() string
String returns the string representation of the path with query string
func (*BackupsRestoreStatusURL) StringFull ¶
func (o *BackupsRestoreStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BackupsRestoreStatusURL) WithBasePath ¶
func (o *BackupsRestoreStatusURL) WithBasePath(bp string) *BackupsRestoreStatusURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type BackupsRestoreStatusUnauthorized ¶
type BackupsRestoreStatusUnauthorized struct { }
BackupsRestoreStatusUnauthorized Unauthorized or invalid credentials.
swagger:response backupsRestoreStatusUnauthorized
func NewBackupsRestoreStatusUnauthorized ¶
func NewBackupsRestoreStatusUnauthorized() *BackupsRestoreStatusUnauthorized
NewBackupsRestoreStatusUnauthorized creates BackupsRestoreStatusUnauthorized with default headers values
func (*BackupsRestoreStatusUnauthorized) WriteResponse ¶
func (o *BackupsRestoreStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreURL ¶
type BackupsRestoreURL struct { Backend string ID string // contains filtered or unexported fields }
BackupsRestoreURL generates an URL for the backups restore operation
func (*BackupsRestoreURL) Build ¶
func (o *BackupsRestoreURL) Build() (*url.URL, error)
Build a url path and query string
func (*BackupsRestoreURL) BuildFull ¶
func (o *BackupsRestoreURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BackupsRestoreURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BackupsRestoreURL) SetBasePath ¶
func (o *BackupsRestoreURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*BackupsRestoreURL) String ¶
func (o *BackupsRestoreURL) String() string
String returns the string representation of the path with query string
func (*BackupsRestoreURL) StringFull ¶
func (o *BackupsRestoreURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BackupsRestoreURL) WithBasePath ¶
func (o *BackupsRestoreURL) WithBasePath(bp string) *BackupsRestoreURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type BackupsRestoreUnauthorized ¶
type BackupsRestoreUnauthorized struct { }
BackupsRestoreUnauthorized Unauthorized or invalid credentials.
swagger:response backupsRestoreUnauthorized
func NewBackupsRestoreUnauthorized ¶
func NewBackupsRestoreUnauthorized() *BackupsRestoreUnauthorized
NewBackupsRestoreUnauthorized creates BackupsRestoreUnauthorized with default headers values
func (*BackupsRestoreUnauthorized) WriteResponse ¶
func (o *BackupsRestoreUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupsRestoreUnprocessableEntity ¶
type BackupsRestoreUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
BackupsRestoreUnprocessableEntity Invalid backup restoration attempt.
swagger:response backupsRestoreUnprocessableEntity
func NewBackupsRestoreUnprocessableEntity ¶
func NewBackupsRestoreUnprocessableEntity() *BackupsRestoreUnprocessableEntity
NewBackupsRestoreUnprocessableEntity creates BackupsRestoreUnprocessableEntity with default headers values
func (*BackupsRestoreUnprocessableEntity) SetPayload ¶
func (o *BackupsRestoreUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the backups restore unprocessable entity response
func (*BackupsRestoreUnprocessableEntity) WithPayload ¶
func (o *BackupsRestoreUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *BackupsRestoreUnprocessableEntity
WithPayload adds the payload to the backups restore unprocessable entity response
func (*BackupsRestoreUnprocessableEntity) WriteResponse ¶
func (o *BackupsRestoreUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- backups_cancel.go
- backups_cancel_parameters.go
- backups_cancel_responses.go
- backups_cancel_urlbuilder.go
- backups_create.go
- backups_create_parameters.go
- backups_create_responses.go
- backups_create_status.go
- backups_create_status_parameters.go
- backups_create_status_responses.go
- backups_create_status_urlbuilder.go
- backups_create_urlbuilder.go
- backups_list.go
- backups_list_parameters.go
- backups_list_responses.go
- backups_list_urlbuilder.go
- backups_restore.go
- backups_restore_parameters.go
- backups_restore_responses.go
- backups_restore_status.go
- backups_restore_status_parameters.go
- backups_restore_status_responses.go
- backups_restore_status_urlbuilder.go
- backups_restore_urlbuilder.go