Documentation
¶
Index ¶
- Constants
- type GetBackupByID
- type GetBackupByIDBadRequest
- type GetBackupByIDHandler
- type GetBackupByIDHandlerFunc
- type GetBackupByIDNotFound
- type GetBackupByIDOK
- type GetBackupByIDParams
- type GetBackupByIDURL
- func (o *GetBackupByIDURL) Build() (*url.URL, error)
- func (o *GetBackupByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBackupByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBackupByIDURL) SetBasePath(bp string)
- func (o *GetBackupByIDURL) String() string
- func (o *GetBackupByIDURL) StringFull(scheme, host string) string
- func (o *GetBackupByIDURL) WithBasePath(bp string) *GetBackupByIDURL
- type GetBackups
- type GetBackupsForbidden
- type GetBackupsHandler
- type GetBackupsHandlerFunc
- type GetBackupsInternalServerError
- type GetBackupsMethodNotAllowed
- type GetBackupsNotFound
- type GetBackupsOK
- type GetBackupsParams
- type GetBackupsServiceUnavailable
- type GetBackupsURL
- func (o *GetBackupsURL) Build() (*url.URL, error)
- func (o *GetBackupsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBackupsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBackupsURL) SetBasePath(bp string)
- func (o *GetBackupsURL) String() string
- func (o *GetBackupsURL) StringFull(scheme, host string) string
- func (o *GetBackupsURL) WithBasePath(bp string) *GetBackupsURL
- type NewBackup
- type NewBackupBadGateway
- type NewBackupForbidden
- type NewBackupGatewayTimeout
- type NewBackupHandler
- type NewBackupHandlerFunc
- type NewBackupInternalServerError
- type NewBackupMethodNotAllowed
- type NewBackupNotFound
- type NewBackupOK
- type NewBackupParams
- type NewBackupServiceUnavailable
- type NewBackupURL
- func (o *NewBackupURL) Build() (*url.URL, error)
- func (o *NewBackupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *NewBackupURL) Must(u *url.URL, err error) *url.URL
- func (o *NewBackupURL) SetBasePath(bp string)
- func (o *NewBackupURL) String() string
- func (o *NewBackupURL) StringFull(scheme, host string) string
- func (o *NewBackupURL) WithBasePath(bp string) *NewBackupURL
- type UpdateBackup
- type UpdateBackupBadGateway
- type UpdateBackupForbidden
- type UpdateBackupGatewayTimeout
- type UpdateBackupHandler
- type UpdateBackupHandlerFunc
- type UpdateBackupInternalServerError
- func (o *UpdateBackupInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *UpdateBackupInternalServerError) WithPayload(payload *models.APIResponse) *UpdateBackupInternalServerError
- func (o *UpdateBackupInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateBackupMethodNotAllowed
- type UpdateBackupNotFound
- type UpdateBackupOK
- type UpdateBackupParams
- type UpdateBackupServiceUnavailable
- func (o *UpdateBackupServiceUnavailable) SetPayload(payload *models.APIResponse)
- func (o *UpdateBackupServiceUnavailable) WithPayload(payload *models.APIResponse) *UpdateBackupServiceUnavailable
- func (o *UpdateBackupServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateBackupURL
- func (o *UpdateBackupURL) Build() (*url.URL, error)
- func (o *UpdateBackupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateBackupURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateBackupURL) SetBasePath(bp string)
- func (o *UpdateBackupURL) String() string
- func (o *UpdateBackupURL) StringFull(scheme, host string) string
- func (o *UpdateBackupURL) WithBasePath(bp string) *UpdateBackupURL
Constants ¶
const GetBackupByIDBadRequestCode int = 400
GetBackupByIDBadRequestCode is the HTTP code returned for type GetBackupByIDBadRequest
const GetBackupByIDNotFoundCode int = 404
GetBackupByIDNotFoundCode is the HTTP code returned for type GetBackupByIDNotFound
const GetBackupByIDOKCode int = 200
GetBackupByIDOKCode is the HTTP code returned for type GetBackupByIDOK
const GetBackupsForbiddenCode int = 403
GetBackupsForbiddenCode is the HTTP code returned for type GetBackupsForbidden
const GetBackupsInternalServerErrorCode int = 500
GetBackupsInternalServerErrorCode is the HTTP code returned for type GetBackupsInternalServerError
const GetBackupsMethodNotAllowedCode int = 405
GetBackupsMethodNotAllowedCode is the HTTP code returned for type GetBackupsMethodNotAllowed
const GetBackupsNotFoundCode int = 404
GetBackupsNotFoundCode is the HTTP code returned for type GetBackupsNotFound
const GetBackupsOKCode int = 200
GetBackupsOKCode is the HTTP code returned for type GetBackupsOK
GetBackupsServiceUnavailableCode is the HTTP code returned for type GetBackupsServiceUnavailable
const NewBackupBadGatewayCode int = 502
NewBackupBadGatewayCode is the HTTP code returned for type NewBackupBadGateway
const NewBackupForbiddenCode int = 403
NewBackupForbiddenCode is the HTTP code returned for type NewBackupForbidden
const NewBackupGatewayTimeoutCode int = 504
NewBackupGatewayTimeoutCode is the HTTP code returned for type NewBackupGatewayTimeout
const NewBackupInternalServerErrorCode int = 500
NewBackupInternalServerErrorCode is the HTTP code returned for type NewBackupInternalServerError
const NewBackupMethodNotAllowedCode int = 405
NewBackupMethodNotAllowedCode is the HTTP code returned for type NewBackupMethodNotAllowed
const NewBackupNotFoundCode int = 404
NewBackupNotFoundCode is the HTTP code returned for type NewBackupNotFound
const NewBackupOKCode int = 200
NewBackupOKCode is the HTTP code returned for type NewBackupOK
NewBackupServiceUnavailableCode is the HTTP code returned for type NewBackupServiceUnavailable
const UpdateBackupBadGatewayCode int = 502
UpdateBackupBadGatewayCode is the HTTP code returned for type UpdateBackupBadGateway
const UpdateBackupForbiddenCode int = 403
UpdateBackupForbiddenCode is the HTTP code returned for type UpdateBackupForbidden
const UpdateBackupGatewayTimeoutCode int = 504
UpdateBackupGatewayTimeoutCode is the HTTP code returned for type UpdateBackupGatewayTimeout
const UpdateBackupInternalServerErrorCode int = 500
UpdateBackupInternalServerErrorCode is the HTTP code returned for type UpdateBackupInternalServerError
const UpdateBackupMethodNotAllowedCode int = 405
UpdateBackupMethodNotAllowedCode is the HTTP code returned for type UpdateBackupMethodNotAllowed
const UpdateBackupNotFoundCode int = 404
UpdateBackupNotFoundCode is the HTTP code returned for type UpdateBackupNotFound
const UpdateBackupOKCode int = 200
UpdateBackupOKCode is the HTTP code returned for type UpdateBackupOK
UpdateBackupServiceUnavailableCode is the HTTP code returned for type UpdateBackupServiceUnavailable
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBackupByID ¶
type GetBackupByID struct { Context *middleware.Context Handler GetBackupByIDHandler }
GetBackupByID swagger:route GET /backups/{backupId} backup getBackupById
Find backup by ID ¶
Query a single backup
func NewGetBackupByID ¶
func NewGetBackupByID(ctx *middleware.Context, handler GetBackupByIDHandler) *GetBackupByID
NewGetBackupByID creates a new http.Handler for the get backup by Id operation
func (*GetBackupByID) ServeHTTP ¶
func (o *GetBackupByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBackupByIDBadRequest ¶
type GetBackupByIDBadRequest struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetBackupByIDBadRequest Invalid ID supplied
swagger:response getBackupByIdBadRequest
func NewGetBackupByIDBadRequest ¶
func NewGetBackupByIDBadRequest() *GetBackupByIDBadRequest
NewGetBackupByIDBadRequest creates GetBackupByIDBadRequest with default headers values
func (*GetBackupByIDBadRequest) SetPayload ¶
func (o *GetBackupByIDBadRequest) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get backup by Id bad request response
func (*GetBackupByIDBadRequest) WithPayload ¶
func (o *GetBackupByIDBadRequest) WithPayload(payload *models.APIResponse) *GetBackupByIDBadRequest
WithPayload adds the payload to the get backup by Id bad request response
func (*GetBackupByIDBadRequest) WriteResponse ¶
func (o *GetBackupByIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupByIDHandler ¶
type GetBackupByIDHandler interface {
Handle(GetBackupByIDParams) middleware.Responder
}
GetBackupByIDHandler interface for that can handle valid get backup by Id params
type GetBackupByIDHandlerFunc ¶
type GetBackupByIDHandlerFunc func(GetBackupByIDParams) middleware.Responder
GetBackupByIDHandlerFunc turns a function with the right signature into a get backup by Id handler
func (GetBackupByIDHandlerFunc) Handle ¶
func (fn GetBackupByIDHandlerFunc) Handle(params GetBackupByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetBackupByIDNotFound ¶
type GetBackupByIDNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetBackupByIDNotFound Backup not found
swagger:response getBackupByIdNotFound
func NewGetBackupByIDNotFound ¶
func NewGetBackupByIDNotFound() *GetBackupByIDNotFound
NewGetBackupByIDNotFound creates GetBackupByIDNotFound with default headers values
func (*GetBackupByIDNotFound) SetPayload ¶
func (o *GetBackupByIDNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get backup by Id not found response
func (*GetBackupByIDNotFound) WithPayload ¶
func (o *GetBackupByIDNotFound) WithPayload(payload *models.APIResponse) *GetBackupByIDNotFound
WithPayload adds the payload to the get backup by Id not found response
func (*GetBackupByIDNotFound) WriteResponse ¶
func (o *GetBackupByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupByIDOK ¶
GetBackupByIDOK successful operation
swagger:response getBackupByIdOK
func NewGetBackupByIDOK ¶
func NewGetBackupByIDOK() *GetBackupByIDOK
NewGetBackupByIDOK creates GetBackupByIDOK with default headers values
func (*GetBackupByIDOK) SetPayload ¶
func (o *GetBackupByIDOK) SetPayload(payload *models.Backup)
SetPayload sets the payload to the get backup by Id o k response
func (*GetBackupByIDOK) WithPayload ¶
func (o *GetBackupByIDOK) WithPayload(payload *models.Backup) *GetBackupByIDOK
WithPayload adds the payload to the get backup by Id o k response
func (*GetBackupByIDOK) WriteResponse ¶
func (o *GetBackupByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupByIDParams ¶
type GetBackupByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of backup to return Required: true In: path */ BackupID int64 }
GetBackupByIDParams contains all the bound params for the get backup by Id operation typically these are obtained from a http.Request
swagger:parameters getBackupById
func NewGetBackupByIDParams ¶
func NewGetBackupByIDParams() GetBackupByIDParams
NewGetBackupByIDParams creates a new GetBackupByIDParams object
There are no default values defined in the spec.
func (*GetBackupByIDParams) BindRequest ¶
func (o *GetBackupByIDParams) 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 NewGetBackupByIDParams() beforehand.
type GetBackupByIDURL ¶
type GetBackupByIDURL struct { BackupID int64 // contains filtered or unexported fields }
GetBackupByIDURL generates an URL for the get backup by Id operation
func (*GetBackupByIDURL) Build ¶
func (o *GetBackupByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBackupByIDURL) BuildFull ¶
func (o *GetBackupByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBackupByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBackupByIDURL) SetBasePath ¶
func (o *GetBackupByIDURL) 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 (*GetBackupByIDURL) String ¶
func (o *GetBackupByIDURL) String() string
String returns the string representation of the path with query string
func (*GetBackupByIDURL) StringFull ¶
func (o *GetBackupByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBackupByIDURL) WithBasePath ¶
func (o *GetBackupByIDURL) WithBasePath(bp string) *GetBackupByIDURL
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 GetBackups ¶
type GetBackups struct { Context *middleware.Context Handler GetBackupsHandler }
GetBackups swagger:route GET /backups backup getBackups
Query backup info ¶
Retrieve information and state of all backups and their snapshots
func NewGetBackups ¶
func NewGetBackups(ctx *middleware.Context, handler GetBackupsHandler) *GetBackups
NewGetBackups creates a new http.Handler for the get backups operation
func (*GetBackups) ServeHTTP ¶
func (o *GetBackups) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBackupsForbidden ¶
type GetBackupsForbidden struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetBackupsForbidden Forbidden from querying backup info
swagger:response getBackupsForbidden
func NewGetBackupsForbidden ¶
func NewGetBackupsForbidden() *GetBackupsForbidden
NewGetBackupsForbidden creates GetBackupsForbidden with default headers values
func (*GetBackupsForbidden) SetPayload ¶
func (o *GetBackupsForbidden) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get backups forbidden response
func (*GetBackupsForbidden) WithPayload ¶
func (o *GetBackupsForbidden) WithPayload(payload *models.APIResponse) *GetBackupsForbidden
WithPayload adds the payload to the get backups forbidden response
func (*GetBackupsForbidden) WriteResponse ¶
func (o *GetBackupsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupsHandler ¶
type GetBackupsHandler interface {
Handle(GetBackupsParams) middleware.Responder
}
GetBackupsHandler interface for that can handle valid get backups params
type GetBackupsHandlerFunc ¶
type GetBackupsHandlerFunc func(GetBackupsParams) middleware.Responder
GetBackupsHandlerFunc turns a function with the right signature into a get backups handler
func (GetBackupsHandlerFunc) Handle ¶
func (fn GetBackupsHandlerFunc) Handle(params GetBackupsParams) middleware.Responder
Handle executing the request and returning a response
type GetBackupsInternalServerError ¶
type GetBackupsInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetBackupsInternalServerError TOC controller error
swagger:response getBackupsInternalServerError
func NewGetBackupsInternalServerError ¶
func NewGetBackupsInternalServerError() *GetBackupsInternalServerError
NewGetBackupsInternalServerError creates GetBackupsInternalServerError with default headers values
func (*GetBackupsInternalServerError) SetPayload ¶
func (o *GetBackupsInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get backups internal server error response
func (*GetBackupsInternalServerError) WithPayload ¶
func (o *GetBackupsInternalServerError) WithPayload(payload *models.APIResponse) *GetBackupsInternalServerError
WithPayload adds the payload to the get backups internal server error response
func (*GetBackupsInternalServerError) WriteResponse ¶
func (o *GetBackupsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupsMethodNotAllowed ¶
type GetBackupsMethodNotAllowed struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetBackupsMethodNotAllowed Bad request
swagger:response getBackupsMethodNotAllowed
func NewGetBackupsMethodNotAllowed ¶
func NewGetBackupsMethodNotAllowed() *GetBackupsMethodNotAllowed
NewGetBackupsMethodNotAllowed creates GetBackupsMethodNotAllowed with default headers values
func (*GetBackupsMethodNotAllowed) SetPayload ¶
func (o *GetBackupsMethodNotAllowed) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get backups method not allowed response
func (*GetBackupsMethodNotAllowed) WithPayload ¶
func (o *GetBackupsMethodNotAllowed) WithPayload(payload *models.APIResponse) *GetBackupsMethodNotAllowed
WithPayload adds the payload to the get backups method not allowed response
func (*GetBackupsMethodNotAllowed) WriteResponse ¶
func (o *GetBackupsMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupsNotFound ¶
type GetBackupsNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetBackupsNotFound Backup not found
swagger:response getBackupsNotFound
func NewGetBackupsNotFound ¶
func NewGetBackupsNotFound() *GetBackupsNotFound
NewGetBackupsNotFound creates GetBackupsNotFound with default headers values
func (*GetBackupsNotFound) SetPayload ¶
func (o *GetBackupsNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get backups not found response
func (*GetBackupsNotFound) WithPayload ¶
func (o *GetBackupsNotFound) WithPayload(payload *models.APIResponse) *GetBackupsNotFound
WithPayload adds the payload to the get backups not found response
func (*GetBackupsNotFound) WriteResponse ¶
func (o *GetBackupsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupsOK ¶
GetBackupsOK Backup info retrieved
swagger:response getBackupsOK
func NewGetBackupsOK ¶
func NewGetBackupsOK() *GetBackupsOK
NewGetBackupsOK creates GetBackupsOK with default headers values
func (*GetBackupsOK) SetPayload ¶
func (o *GetBackupsOK) SetPayload(payload []*models.Backup)
SetPayload sets the payload to the get backups o k response
func (*GetBackupsOK) WithPayload ¶
func (o *GetBackupsOK) WithPayload(payload []*models.Backup) *GetBackupsOK
WithPayload adds the payload to the get backups o k response
func (*GetBackupsOK) WriteResponse ¶
func (o *GetBackupsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupsParams ¶
GetBackupsParams contains all the bound params for the get backups operation typically these are obtained from a http.Request
swagger:parameters getBackups
func NewGetBackupsParams ¶
func NewGetBackupsParams() GetBackupsParams
NewGetBackupsParams creates a new GetBackupsParams object
There are no default values defined in the spec.
func (*GetBackupsParams) BindRequest ¶
func (o *GetBackupsParams) 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 NewGetBackupsParams() beforehand.
type GetBackupsServiceUnavailable ¶
type GetBackupsServiceUnavailable struct { models.APIResponse `json:"body,omitempty"` }Payload *
GetBackupsServiceUnavailable Service unavailable
swagger:response getBackupsServiceUnavailable
func NewGetBackupsServiceUnavailable ¶
func NewGetBackupsServiceUnavailable() *GetBackupsServiceUnavailable
NewGetBackupsServiceUnavailable creates GetBackupsServiceUnavailable with default headers values
func (*GetBackupsServiceUnavailable) SetPayload ¶
func (o *GetBackupsServiceUnavailable) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get backups service unavailable response
func (*GetBackupsServiceUnavailable) WithPayload ¶
func (o *GetBackupsServiceUnavailable) WithPayload(payload *models.APIResponse) *GetBackupsServiceUnavailable
WithPayload adds the payload to the get backups service unavailable response
func (*GetBackupsServiceUnavailable) WriteResponse ¶
func (o *GetBackupsServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBackupsURL ¶
type GetBackupsURL struct {
// contains filtered or unexported fields
}
GetBackupsURL generates an URL for the get backups operation
func (*GetBackupsURL) Build ¶
func (o *GetBackupsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBackupsURL) BuildFull ¶
func (o *GetBackupsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBackupsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBackupsURL) SetBasePath ¶
func (o *GetBackupsURL) 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 (*GetBackupsURL) String ¶
func (o *GetBackupsURL) String() string
String returns the string representation of the path with query string
func (*GetBackupsURL) StringFull ¶
func (o *GetBackupsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBackupsURL) WithBasePath ¶
func (o *GetBackupsURL) WithBasePath(bp string) *GetBackupsURL
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 NewBackup ¶
type NewBackup struct { Context *middleware.Context Handler NewBackupHandler }
NewBackup swagger:route POST /backups backup newBackup
Create a new backup snapshot ¶
Create a new backup snapshot
func NewNewBackup ¶
func NewNewBackup(ctx *middleware.Context, handler NewBackupHandler) *NewBackup
NewNewBackup creates a new http.Handler for the new backup operation
type NewBackupBadGateway ¶
type NewBackupBadGateway struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewBackupBadGateway Bad gateway. Main backup server error
swagger:response newBackupBadGateway
func NewNewBackupBadGateway ¶
func NewNewBackupBadGateway() *NewBackupBadGateway
NewNewBackupBadGateway creates NewBackupBadGateway with default headers values
func (*NewBackupBadGateway) SetPayload ¶
func (o *NewBackupBadGateway) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new backup bad gateway response
func (*NewBackupBadGateway) WithPayload ¶
func (o *NewBackupBadGateway) WithPayload(payload *models.APIResponse) *NewBackupBadGateway
WithPayload adds the payload to the new backup bad gateway response
func (*NewBackupBadGateway) WriteResponse ¶
func (o *NewBackupBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupForbidden ¶
type NewBackupForbidden struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewBackupForbidden Forbidden from creating duplicate/repeat backup
swagger:response newBackupForbidden
func NewNewBackupForbidden ¶
func NewNewBackupForbidden() *NewBackupForbidden
NewNewBackupForbidden creates NewBackupForbidden with default headers values
func (*NewBackupForbidden) SetPayload ¶
func (o *NewBackupForbidden) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new backup forbidden response
func (*NewBackupForbidden) WithPayload ¶
func (o *NewBackupForbidden) WithPayload(payload *models.APIResponse) *NewBackupForbidden
WithPayload adds the payload to the new backup forbidden response
func (*NewBackupForbidden) WriteResponse ¶
func (o *NewBackupForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupGatewayTimeout ¶
type NewBackupGatewayTimeout struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewBackupGatewayTimeout Gateway timeout. Main backup server did not reply.
swagger:response newBackupGatewayTimeout
func NewNewBackupGatewayTimeout ¶
func NewNewBackupGatewayTimeout() *NewBackupGatewayTimeout
NewNewBackupGatewayTimeout creates NewBackupGatewayTimeout with default headers values
func (*NewBackupGatewayTimeout) SetPayload ¶
func (o *NewBackupGatewayTimeout) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new backup gateway timeout response
func (*NewBackupGatewayTimeout) WithPayload ¶
func (o *NewBackupGatewayTimeout) WithPayload(payload *models.APIResponse) *NewBackupGatewayTimeout
WithPayload adds the payload to the new backup gateway timeout response
func (*NewBackupGatewayTimeout) WriteResponse ¶
func (o *NewBackupGatewayTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupHandler ¶
type NewBackupHandler interface {
Handle(NewBackupParams) middleware.Responder
}
NewBackupHandler interface for that can handle valid new backup params
type NewBackupHandlerFunc ¶
type NewBackupHandlerFunc func(NewBackupParams) middleware.Responder
NewBackupHandlerFunc turns a function with the right signature into a new backup handler
func (NewBackupHandlerFunc) Handle ¶
func (fn NewBackupHandlerFunc) Handle(params NewBackupParams) middleware.Responder
Handle executing the request and returning a response
type NewBackupInternalServerError ¶
type NewBackupInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewBackupInternalServerError Main TOC controller error
swagger:response newBackupInternalServerError
func NewNewBackupInternalServerError ¶
func NewNewBackupInternalServerError() *NewBackupInternalServerError
NewNewBackupInternalServerError creates NewBackupInternalServerError with default headers values
func (*NewBackupInternalServerError) SetPayload ¶
func (o *NewBackupInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new backup internal server error response
func (*NewBackupInternalServerError) WithPayload ¶
func (o *NewBackupInternalServerError) WithPayload(payload *models.APIResponse) *NewBackupInternalServerError
WithPayload adds the payload to the new backup internal server error response
func (*NewBackupInternalServerError) WriteResponse ¶
func (o *NewBackupInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupMethodNotAllowed ¶
type NewBackupMethodNotAllowed struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewBackupMethodNotAllowed Bad request
swagger:response newBackupMethodNotAllowed
func NewNewBackupMethodNotAllowed ¶
func NewNewBackupMethodNotAllowed() *NewBackupMethodNotAllowed
NewNewBackupMethodNotAllowed creates NewBackupMethodNotAllowed with default headers values
func (*NewBackupMethodNotAllowed) SetPayload ¶
func (o *NewBackupMethodNotAllowed) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new backup method not allowed response
func (*NewBackupMethodNotAllowed) WithPayload ¶
func (o *NewBackupMethodNotAllowed) WithPayload(payload *models.APIResponse) *NewBackupMethodNotAllowed
WithPayload adds the payload to the new backup method not allowed response
func (*NewBackupMethodNotAllowed) WriteResponse ¶
func (o *NewBackupMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupNotFound ¶
type NewBackupNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
NewBackupNotFound Main backup server not found
swagger:response newBackupNotFound
func NewNewBackupNotFound ¶
func NewNewBackupNotFound() *NewBackupNotFound
NewNewBackupNotFound creates NewBackupNotFound with default headers values
func (*NewBackupNotFound) SetPayload ¶
func (o *NewBackupNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new backup not found response
func (*NewBackupNotFound) WithPayload ¶
func (o *NewBackupNotFound) WithPayload(payload *models.APIResponse) *NewBackupNotFound
WithPayload adds the payload to the new backup not found response
func (*NewBackupNotFound) WriteResponse ¶
func (o *NewBackupNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupOK ¶
NewBackupOK Backup started
swagger:response newBackupOK
func NewNewBackupOK ¶
func NewNewBackupOK() *NewBackupOK
NewNewBackupOK creates NewBackupOK with default headers values
func (*NewBackupOK) SetPayload ¶
func (o *NewBackupOK) SetPayload(payload *models.Backup)
SetPayload sets the payload to the new backup o k response
func (*NewBackupOK) WithPayload ¶
func (o *NewBackupOK) WithPayload(payload *models.Backup) *NewBackupOK
WithPayload adds the payload to the new backup o k response
func (*NewBackupOK) WriteResponse ¶
func (o *NewBackupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupParams ¶
NewBackupParams contains all the bound params for the new backup operation typically these are obtained from a http.Request
swagger:parameters newBackup
func NewNewBackupParams ¶
func NewNewBackupParams() NewBackupParams
NewNewBackupParams creates a new NewBackupParams object
There are no default values defined in the spec.
func (*NewBackupParams) BindRequest ¶
func (o *NewBackupParams) 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 NewNewBackupParams() beforehand.
type NewBackupServiceUnavailable ¶
type NewBackupServiceUnavailable struct { models.APIResponse `json:"body,omitempty"` }Payload *
NewBackupServiceUnavailable Service unavailable on main TOC controller
swagger:response newBackupServiceUnavailable
func NewNewBackupServiceUnavailable ¶
func NewNewBackupServiceUnavailable() *NewBackupServiceUnavailable
NewNewBackupServiceUnavailable creates NewBackupServiceUnavailable with default headers values
func (*NewBackupServiceUnavailable) SetPayload ¶
func (o *NewBackupServiceUnavailable) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the new backup service unavailable response
func (*NewBackupServiceUnavailable) WithPayload ¶
func (o *NewBackupServiceUnavailable) WithPayload(payload *models.APIResponse) *NewBackupServiceUnavailable
WithPayload adds the payload to the new backup service unavailable response
func (*NewBackupServiceUnavailable) WriteResponse ¶
func (o *NewBackupServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type NewBackupURL ¶
type NewBackupURL struct {
// contains filtered or unexported fields
}
NewBackupURL generates an URL for the new backup operation
func (*NewBackupURL) Build ¶
func (o *NewBackupURL) Build() (*url.URL, error)
Build a url path and query string
func (*NewBackupURL) BuildFull ¶
func (o *NewBackupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*NewBackupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*NewBackupURL) SetBasePath ¶
func (o *NewBackupURL) 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 (*NewBackupURL) String ¶
func (o *NewBackupURL) String() string
String returns the string representation of the path with query string
func (*NewBackupURL) StringFull ¶
func (o *NewBackupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*NewBackupURL) WithBasePath ¶
func (o *NewBackupURL) WithBasePath(bp string) *NewBackupURL
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 UpdateBackup ¶
type UpdateBackup struct { Context *middleware.Context Handler UpdateBackupHandler }
UpdateBackup swagger:route PUT /backups backup updateBackup
Update backup status/info
Update backup status/info
func NewUpdateBackup ¶
func NewUpdateBackup(ctx *middleware.Context, handler UpdateBackupHandler) *UpdateBackup
NewUpdateBackup creates a new http.Handler for the update backup operation
func (*UpdateBackup) ServeHTTP ¶
func (o *UpdateBackup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateBackupBadGateway ¶
type UpdateBackupBadGateway struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateBackupBadGateway Bad gateway. TOC controller error
swagger:response updateBackupBadGateway
func NewUpdateBackupBadGateway ¶
func NewUpdateBackupBadGateway() *UpdateBackupBadGateway
NewUpdateBackupBadGateway creates UpdateBackupBadGateway with default headers values
func (*UpdateBackupBadGateway) SetPayload ¶
func (o *UpdateBackupBadGateway) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update backup bad gateway response
func (*UpdateBackupBadGateway) WithPayload ¶
func (o *UpdateBackupBadGateway) WithPayload(payload *models.APIResponse) *UpdateBackupBadGateway
WithPayload adds the payload to the update backup bad gateway response
func (*UpdateBackupBadGateway) WriteResponse ¶
func (o *UpdateBackupBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupForbidden ¶
type UpdateBackupForbidden struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateBackupForbidden Forbidden from updating backup
swagger:response updateBackupForbidden
func NewUpdateBackupForbidden ¶
func NewUpdateBackupForbidden() *UpdateBackupForbidden
NewUpdateBackupForbidden creates UpdateBackupForbidden with default headers values
func (*UpdateBackupForbidden) SetPayload ¶
func (o *UpdateBackupForbidden) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update backup forbidden response
func (*UpdateBackupForbidden) WithPayload ¶
func (o *UpdateBackupForbidden) WithPayload(payload *models.APIResponse) *UpdateBackupForbidden
WithPayload adds the payload to the update backup forbidden response
func (*UpdateBackupForbidden) WriteResponse ¶
func (o *UpdateBackupForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupGatewayTimeout ¶
type UpdateBackupGatewayTimeout struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateBackupGatewayTimeout Gateway timeout. TOC controller did not reply.
swagger:response updateBackupGatewayTimeout
func NewUpdateBackupGatewayTimeout ¶
func NewUpdateBackupGatewayTimeout() *UpdateBackupGatewayTimeout
NewUpdateBackupGatewayTimeout creates UpdateBackupGatewayTimeout with default headers values
func (*UpdateBackupGatewayTimeout) SetPayload ¶
func (o *UpdateBackupGatewayTimeout) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update backup gateway timeout response
func (*UpdateBackupGatewayTimeout) WithPayload ¶
func (o *UpdateBackupGatewayTimeout) WithPayload(payload *models.APIResponse) *UpdateBackupGatewayTimeout
WithPayload adds the payload to the update backup gateway timeout response
func (*UpdateBackupGatewayTimeout) WriteResponse ¶
func (o *UpdateBackupGatewayTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupHandler ¶
type UpdateBackupHandler interface {
Handle(UpdateBackupParams) middleware.Responder
}
UpdateBackupHandler interface for that can handle valid update backup params
type UpdateBackupHandlerFunc ¶
type UpdateBackupHandlerFunc func(UpdateBackupParams) middleware.Responder
UpdateBackupHandlerFunc turns a function with the right signature into a update backup handler
func (UpdateBackupHandlerFunc) Handle ¶
func (fn UpdateBackupHandlerFunc) Handle(params UpdateBackupParams) middleware.Responder
Handle executing the request and returning a response
type UpdateBackupInternalServerError ¶
type UpdateBackupInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateBackupInternalServerError TOC controller error
swagger:response updateBackupInternalServerError
func NewUpdateBackupInternalServerError ¶
func NewUpdateBackupInternalServerError() *UpdateBackupInternalServerError
NewUpdateBackupInternalServerError creates UpdateBackupInternalServerError with default headers values
func (*UpdateBackupInternalServerError) SetPayload ¶
func (o *UpdateBackupInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update backup internal server error response
func (*UpdateBackupInternalServerError) WithPayload ¶
func (o *UpdateBackupInternalServerError) WithPayload(payload *models.APIResponse) *UpdateBackupInternalServerError
WithPayload adds the payload to the update backup internal server error response
func (*UpdateBackupInternalServerError) WriteResponse ¶
func (o *UpdateBackupInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupMethodNotAllowed ¶
type UpdateBackupMethodNotAllowed struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateBackupMethodNotAllowed Bad request
swagger:response updateBackupMethodNotAllowed
func NewUpdateBackupMethodNotAllowed ¶
func NewUpdateBackupMethodNotAllowed() *UpdateBackupMethodNotAllowed
NewUpdateBackupMethodNotAllowed creates UpdateBackupMethodNotAllowed with default headers values
func (*UpdateBackupMethodNotAllowed) SetPayload ¶
func (o *UpdateBackupMethodNotAllowed) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update backup method not allowed response
func (*UpdateBackupMethodNotAllowed) WithPayload ¶
func (o *UpdateBackupMethodNotAllowed) WithPayload(payload *models.APIResponse) *UpdateBackupMethodNotAllowed
WithPayload adds the payload to the update backup method not allowed response
func (*UpdateBackupMethodNotAllowed) WriteResponse ¶
func (o *UpdateBackupMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupNotFound ¶
type UpdateBackupNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateBackupNotFound TOC controller not found
swagger:response updateBackupNotFound
func NewUpdateBackupNotFound ¶
func NewUpdateBackupNotFound() *UpdateBackupNotFound
NewUpdateBackupNotFound creates UpdateBackupNotFound with default headers values
func (*UpdateBackupNotFound) SetPayload ¶
func (o *UpdateBackupNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update backup not found response
func (*UpdateBackupNotFound) WithPayload ¶
func (o *UpdateBackupNotFound) WithPayload(payload *models.APIResponse) *UpdateBackupNotFound
WithPayload adds the payload to the update backup not found response
func (*UpdateBackupNotFound) WriteResponse ¶
func (o *UpdateBackupNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupOK ¶
UpdateBackupOK Backup updated
swagger:response updateBackupOK
func NewUpdateBackupOK ¶
func NewUpdateBackupOK() *UpdateBackupOK
NewUpdateBackupOK creates UpdateBackupOK with default headers values
func (*UpdateBackupOK) SetPayload ¶
func (o *UpdateBackupOK) SetPayload(payload *models.Backup)
SetPayload sets the payload to the update backup o k response
func (*UpdateBackupOK) WithPayload ¶
func (o *UpdateBackupOK) WithPayload(payload *models.Backup) *UpdateBackupOK
WithPayload adds the payload to the update backup o k response
func (*UpdateBackupOK) WriteResponse ¶
func (o *UpdateBackupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupParams ¶
type UpdateBackupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Backup and associated snapshots to update Required: true In: body */ Body *models.Backup }
UpdateBackupParams contains all the bound params for the update backup operation typically these are obtained from a http.Request
swagger:parameters updateBackup
func NewUpdateBackupParams ¶
func NewUpdateBackupParams() UpdateBackupParams
NewUpdateBackupParams creates a new UpdateBackupParams object
There are no default values defined in the spec.
func (*UpdateBackupParams) BindRequest ¶
func (o *UpdateBackupParams) 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 NewUpdateBackupParams() beforehand.
type UpdateBackupServiceUnavailable ¶
type UpdateBackupServiceUnavailable struct { models.APIResponse `json:"body,omitempty"` }Payload *
UpdateBackupServiceUnavailable Service unavailable on TOC controller
swagger:response updateBackupServiceUnavailable
func NewUpdateBackupServiceUnavailable ¶
func NewUpdateBackupServiceUnavailable() *UpdateBackupServiceUnavailable
NewUpdateBackupServiceUnavailable creates UpdateBackupServiceUnavailable with default headers values
func (*UpdateBackupServiceUnavailable) SetPayload ¶
func (o *UpdateBackupServiceUnavailable) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update backup service unavailable response
func (*UpdateBackupServiceUnavailable) WithPayload ¶
func (o *UpdateBackupServiceUnavailable) WithPayload(payload *models.APIResponse) *UpdateBackupServiceUnavailable
WithPayload adds the payload to the update backup service unavailable response
func (*UpdateBackupServiceUnavailable) WriteResponse ¶
func (o *UpdateBackupServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateBackupURL ¶
type UpdateBackupURL struct {
// contains filtered or unexported fields
}
UpdateBackupURL generates an URL for the update backup operation
func (*UpdateBackupURL) Build ¶
func (o *UpdateBackupURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateBackupURL) BuildFull ¶
func (o *UpdateBackupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateBackupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateBackupURL) SetBasePath ¶
func (o *UpdateBackupURL) 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 (*UpdateBackupURL) String ¶
func (o *UpdateBackupURL) String() string
String returns the string representation of the path with query string
func (*UpdateBackupURL) StringFull ¶
func (o *UpdateBackupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateBackupURL) WithBasePath ¶
func (o *UpdateBackupURL) WithBasePath(bp string) *UpdateBackupURL
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
Source Files
¶
- get_backup_by_id.go
- get_backup_by_id_parameters.go
- get_backup_by_id_responses.go
- get_backup_by_id_urlbuilder.go
- get_backups.go
- get_backups_parameters.go
- get_backups_responses.go
- get_backups_urlbuilder.go
- new_backup.go
- new_backup_parameters.go
- new_backup_responses.go
- new_backup_urlbuilder.go
- update_backup.go
- update_backup_parameters.go
- update_backup_responses.go
- update_backup_urlbuilder.go