backups

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BackupsCreateForbiddenCode int = 403

BackupsCreateForbiddenCode is the HTTP code returned for type BackupsCreateForbidden

View Source
const BackupsCreateInternalServerErrorCode int = 500

BackupsCreateInternalServerErrorCode is the HTTP code returned for type BackupsCreateInternalServerError

View Source
const BackupsCreateOKCode int = 200

BackupsCreateOKCode is the HTTP code returned for type BackupsCreateOK

View Source
const BackupsCreateStatusForbiddenCode int = 403

BackupsCreateStatusForbiddenCode is the HTTP code returned for type BackupsCreateStatusForbidden

View Source
const BackupsCreateStatusInternalServerErrorCode int = 500

BackupsCreateStatusInternalServerErrorCode is the HTTP code returned for type BackupsCreateStatusInternalServerError

View Source
const BackupsCreateStatusNotFoundCode int = 404

BackupsCreateStatusNotFoundCode is the HTTP code returned for type BackupsCreateStatusNotFound

View Source
const BackupsCreateStatusOKCode int = 200

BackupsCreateStatusOKCode is the HTTP code returned for type BackupsCreateStatusOK

View Source
const BackupsCreateStatusUnauthorizedCode int = 401

BackupsCreateStatusUnauthorizedCode is the HTTP code returned for type BackupsCreateStatusUnauthorized

View Source
const BackupsCreateStatusUnprocessableEntityCode int = 422

BackupsCreateStatusUnprocessableEntityCode is the HTTP code returned for type BackupsCreateStatusUnprocessableEntity

View Source
const BackupsCreateUnauthorizedCode int = 401

BackupsCreateUnauthorizedCode is the HTTP code returned for type BackupsCreateUnauthorized

View Source
const BackupsCreateUnprocessableEntityCode int = 422

BackupsCreateUnprocessableEntityCode is the HTTP code returned for type BackupsCreateUnprocessableEntity

View Source
const BackupsRestoreForbiddenCode int = 403

BackupsRestoreForbiddenCode is the HTTP code returned for type BackupsRestoreForbidden

View Source
const BackupsRestoreInternalServerErrorCode int = 500

BackupsRestoreInternalServerErrorCode is the HTTP code returned for type BackupsRestoreInternalServerError

View Source
const BackupsRestoreNotFoundCode int = 404

BackupsRestoreNotFoundCode is the HTTP code returned for type BackupsRestoreNotFound

View Source
const BackupsRestoreOKCode int = 200

BackupsRestoreOKCode is the HTTP code returned for type BackupsRestoreOK

View Source
const BackupsRestoreStatusForbiddenCode int = 403

BackupsRestoreStatusForbiddenCode is the HTTP code returned for type BackupsRestoreStatusForbidden

View Source
const BackupsRestoreStatusInternalServerErrorCode int = 500

BackupsRestoreStatusInternalServerErrorCode is the HTTP code returned for type BackupsRestoreStatusInternalServerError

View Source
const BackupsRestoreStatusNotFoundCode int = 404

BackupsRestoreStatusNotFoundCode is the HTTP code returned for type BackupsRestoreStatusNotFound

View Source
const BackupsRestoreStatusOKCode int = 200

BackupsRestoreStatusOKCode is the HTTP code returned for type BackupsRestoreStatusOK

View Source
const BackupsRestoreStatusUnauthorizedCode int = 401

BackupsRestoreStatusUnauthorizedCode is the HTTP code returned for type BackupsRestoreStatusUnauthorized

View Source
const BackupsRestoreUnauthorizedCode int = 401

BackupsRestoreUnauthorizedCode is the HTTP code returned for type BackupsRestoreUnauthorized

View Source
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 BackupsCreate

type BackupsCreate struct {
	Context *middleware.Context
	Handler BackupsCreateHandler
}
BackupsCreate swagger:route POST /backups/{backend} backups backupsCreate

Starts a process of creating a backup for a set of classes

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

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

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

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.
	  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

Returns status of backup creation attempt for a set of classes

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

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

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

SetPayload sets the payload to the backups create status internal server error response

func (*BackupsCreateStatusInternalServerError) WithPayload

WithPayload adds the payload to the backups create status internal server error response

func (*BackupsCreateStatusInternalServerError) WriteResponse

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

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

SetPayload sets the payload to the backups create status o k response

func (*BackupsCreateStatusOK) WithPayload

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
	/*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
}

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

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
	// 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

func (o *BackupsCreateStatusURL) Must(u *url.URL, err error) *url.URL

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

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

SetPayload sets the payload to the backups create status unprocessable entity response

func (*BackupsCreateStatusUnprocessableEntity) WithPayload

WithPayload adds the payload to the backups create status unprocessable entity response

func (*BackupsCreateStatusUnprocessableEntity) WriteResponse

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

func (o *BackupsCreateURL) Must(u *url.URL, err error) *url.URL

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

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 BackupsRestore

type BackupsRestore struct {
	Context *middleware.Context
	Handler BackupsRestoreHandler
}
BackupsRestore swagger:route POST /backups/{backend}/{id}/restore backups backupsRestore

Starts a process of restoring a backup for a set of classes

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

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

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

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

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

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.
	  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

Returns status of a backup restoration attempt for a set of classes

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

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

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

SetPayload sets the payload to the backups restore status internal server error response

func (*BackupsRestoreStatusInternalServerError) WithPayload

WithPayload adds the payload to the backups restore status internal server error response

func (*BackupsRestoreStatusInternalServerError) WriteResponse

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

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

SetPayload sets the payload to the backups restore status o k response

func (*BackupsRestoreStatusOK) WithPayload

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.
	  Required: true
	  In: path
	*/
	Backend 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
}

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

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
	// 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

func (o *BackupsRestoreStatusURL) Must(u *url.URL, err error) *url.URL

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

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

func (o *BackupsRestoreURL) Must(u *url.URL, err error) *url.URL

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

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

Jump to

Keyboard shortcuts

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