backup

package
v2.31.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationOctetStream

func WithAcceptApplicationOctetStream(r *runtime.ClientOperation)

WithAcceptApplicationOctetStream sets the Accept header to "application/octet-stream".

Types

type BackupBadRequest

type BackupBadRequest struct {
}

BackupBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewBackupBadRequest

func NewBackupBadRequest() *BackupBadRequest

NewBackupBadRequest creates a BackupBadRequest with default headers values

func (*BackupBadRequest) Code

func (o *BackupBadRequest) Code() int

Code gets the status code for the backup bad request response

func (*BackupBadRequest) Error

func (o *BackupBadRequest) Error() string

func (*BackupBadRequest) IsClientError

func (o *BackupBadRequest) IsClientError() bool

IsClientError returns true when this backup bad request response has a 4xx status code

func (*BackupBadRequest) IsCode

func (o *BackupBadRequest) IsCode(code int) bool

IsCode returns true when this backup bad request response a status code equal to that given

func (*BackupBadRequest) IsRedirect

func (o *BackupBadRequest) IsRedirect() bool

IsRedirect returns true when this backup bad request response has a 3xx status code

func (*BackupBadRequest) IsServerError

func (o *BackupBadRequest) IsServerError() bool

IsServerError returns true when this backup bad request response has a 5xx status code

func (*BackupBadRequest) IsSuccess

func (o *BackupBadRequest) IsSuccess() bool

IsSuccess returns true when this backup bad request response has a 2xx status code

func (*BackupBadRequest) String

func (o *BackupBadRequest) String() string

type BackupInternalServerError

type BackupInternalServerError struct {
}

BackupInternalServerError describes a response with status code 500, with default header values.

Server error

func NewBackupInternalServerError

func NewBackupInternalServerError() *BackupInternalServerError

NewBackupInternalServerError creates a BackupInternalServerError with default headers values

func (*BackupInternalServerError) Code

func (o *BackupInternalServerError) Code() int

Code gets the status code for the backup internal server error response

func (*BackupInternalServerError) Error

func (o *BackupInternalServerError) Error() string

func (*BackupInternalServerError) IsClientError

func (o *BackupInternalServerError) IsClientError() bool

IsClientError returns true when this backup internal server error response has a 4xx status code

func (*BackupInternalServerError) IsCode

func (o *BackupInternalServerError) IsCode(code int) bool

IsCode returns true when this backup internal server error response a status code equal to that given

func (*BackupInternalServerError) IsRedirect

func (o *BackupInternalServerError) IsRedirect() bool

IsRedirect returns true when this backup internal server error response has a 3xx status code

func (*BackupInternalServerError) IsServerError

func (o *BackupInternalServerError) IsServerError() bool

IsServerError returns true when this backup internal server error response has a 5xx status code

func (*BackupInternalServerError) IsSuccess

func (o *BackupInternalServerError) IsSuccess() bool

IsSuccess returns true when this backup internal server error response has a 2xx status code

func (*BackupInternalServerError) String

func (o *BackupInternalServerError) String() string

type BackupOK

type BackupOK struct {
}

BackupOK describes a response with status code 200, with default header values.

Success

func NewBackupOK

func NewBackupOK() *BackupOK

NewBackupOK creates a BackupOK with default headers values

func (*BackupOK) Code

func (o *BackupOK) Code() int

Code gets the status code for the backup o k response

func (*BackupOK) Error

func (o *BackupOK) Error() string

func (*BackupOK) IsClientError

func (o *BackupOK) IsClientError() bool

IsClientError returns true when this backup o k response has a 4xx status code

func (*BackupOK) IsCode

func (o *BackupOK) IsCode(code int) bool

IsCode returns true when this backup o k response a status code equal to that given

func (*BackupOK) IsRedirect

func (o *BackupOK) IsRedirect() bool

IsRedirect returns true when this backup o k response has a 3xx status code

func (*BackupOK) IsServerError

func (o *BackupOK) IsServerError() bool

IsServerError returns true when this backup o k response has a 5xx status code

func (*BackupOK) IsSuccess

func (o *BackupOK) IsSuccess() bool

IsSuccess returns true when this backup o k response has a 2xx status code

func (*BackupOK) String

func (o *BackupOK) String() string

type BackupParams

type BackupParams struct {

	/* Body.

	   An object contains the password to encrypt the backup with
	*/
	Body *models.BackupBackupPayload

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BackupParams contains all the parameters to send to the API endpoint

for the backup operation.

Typically these are written to a http.Request.

func NewBackupParams

func NewBackupParams() *BackupParams

NewBackupParams creates a new BackupParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBackupParamsWithContext

func NewBackupParamsWithContext(ctx context.Context) *BackupParams

NewBackupParamsWithContext creates a new BackupParams object with the ability to set a context for a request.

func NewBackupParamsWithHTTPClient

func NewBackupParamsWithHTTPClient(client *http.Client) *BackupParams

NewBackupParamsWithHTTPClient creates a new BackupParams object with the ability to set a custom HTTPClient for a request.

func NewBackupParamsWithTimeout

func NewBackupParamsWithTimeout(timeout time.Duration) *BackupParams

NewBackupParamsWithTimeout creates a new BackupParams object with the ability to set a timeout on a request.

func (*BackupParams) SetBody

func (o *BackupParams) SetBody(body *models.BackupBackupPayload)

SetBody adds the body to the backup params

func (*BackupParams) SetContext

func (o *BackupParams) SetContext(ctx context.Context)

SetContext adds the context to the backup params

func (*BackupParams) SetDefaults

func (o *BackupParams) SetDefaults()

SetDefaults hydrates default values in the backup params (not the query body).

All values with no default are reset to their zero value.

func (*BackupParams) SetHTTPClient

func (o *BackupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the backup params

func (*BackupParams) SetTimeout

func (o *BackupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the backup params

func (*BackupParams) WithBody

WithBody adds the body to the backup params

func (*BackupParams) WithContext

func (o *BackupParams) WithContext(ctx context.Context) *BackupParams

WithContext adds the context to the backup params

func (*BackupParams) WithDefaults

func (o *BackupParams) WithDefaults() *BackupParams

WithDefaults hydrates default values in the backup params (not the query body).

All values with no default are reset to their zero value.

func (*BackupParams) WithHTTPClient

func (o *BackupParams) WithHTTPClient(client *http.Client) *BackupParams

WithHTTPClient adds the HTTPClient to the backup params

func (*BackupParams) WithTimeout

func (o *BackupParams) WithTimeout(timeout time.Duration) *BackupParams

WithTimeout adds the timeout to the backup params

func (*BackupParams) WriteToRequest

func (o *BackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type BackupReader

type BackupReader struct {
	// contains filtered or unexported fields
}

BackupReader is a Reader for the Backup structure.

func (*BackupReader) ReadResponse

func (o *BackupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type BackupSettingsFetchInternalServerError

type BackupSettingsFetchInternalServerError struct {
}

BackupSettingsFetchInternalServerError describes a response with status code 500, with default header values.

Server error

func NewBackupSettingsFetchInternalServerError

func NewBackupSettingsFetchInternalServerError() *BackupSettingsFetchInternalServerError

NewBackupSettingsFetchInternalServerError creates a BackupSettingsFetchInternalServerError with default headers values

func (*BackupSettingsFetchInternalServerError) Code

Code gets the status code for the backup settings fetch internal server error response

func (*BackupSettingsFetchInternalServerError) Error

func (*BackupSettingsFetchInternalServerError) IsClientError

func (o *BackupSettingsFetchInternalServerError) IsClientError() bool

IsClientError returns true when this backup settings fetch internal server error response has a 4xx status code

func (*BackupSettingsFetchInternalServerError) IsCode

IsCode returns true when this backup settings fetch internal server error response a status code equal to that given

func (*BackupSettingsFetchInternalServerError) IsRedirect

IsRedirect returns true when this backup settings fetch internal server error response has a 3xx status code

func (*BackupSettingsFetchInternalServerError) IsServerError

func (o *BackupSettingsFetchInternalServerError) IsServerError() bool

IsServerError returns true when this backup settings fetch internal server error response has a 5xx status code

func (*BackupSettingsFetchInternalServerError) IsSuccess

IsSuccess returns true when this backup settings fetch internal server error response has a 2xx status code

func (*BackupSettingsFetchInternalServerError) String

type BackupSettingsFetchOK

type BackupSettingsFetchOK struct {
	Payload *models.PortainereeS3BackupSettings
}

BackupSettingsFetchOK describes a response with status code 200, with default header values.

Success

func NewBackupSettingsFetchOK

func NewBackupSettingsFetchOK() *BackupSettingsFetchOK

NewBackupSettingsFetchOK creates a BackupSettingsFetchOK with default headers values

func (*BackupSettingsFetchOK) Code

func (o *BackupSettingsFetchOK) Code() int

Code gets the status code for the backup settings fetch o k response

func (*BackupSettingsFetchOK) Error

func (o *BackupSettingsFetchOK) Error() string

func (*BackupSettingsFetchOK) GetPayload

func (*BackupSettingsFetchOK) IsClientError

func (o *BackupSettingsFetchOK) IsClientError() bool

IsClientError returns true when this backup settings fetch o k response has a 4xx status code

func (*BackupSettingsFetchOK) IsCode

func (o *BackupSettingsFetchOK) IsCode(code int) bool

IsCode returns true when this backup settings fetch o k response a status code equal to that given

func (*BackupSettingsFetchOK) IsRedirect

func (o *BackupSettingsFetchOK) IsRedirect() bool

IsRedirect returns true when this backup settings fetch o k response has a 3xx status code

func (*BackupSettingsFetchOK) IsServerError

func (o *BackupSettingsFetchOK) IsServerError() bool

IsServerError returns true when this backup settings fetch o k response has a 5xx status code

func (*BackupSettingsFetchOK) IsSuccess

func (o *BackupSettingsFetchOK) IsSuccess() bool

IsSuccess returns true when this backup settings fetch o k response has a 2xx status code

func (*BackupSettingsFetchOK) String

func (o *BackupSettingsFetchOK) String() string

type BackupSettingsFetchParams

type BackupSettingsFetchParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BackupSettingsFetchParams contains all the parameters to send to the API endpoint

for the backup settings fetch operation.

Typically these are written to a http.Request.

func NewBackupSettingsFetchParams

func NewBackupSettingsFetchParams() *BackupSettingsFetchParams

NewBackupSettingsFetchParams creates a new BackupSettingsFetchParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBackupSettingsFetchParamsWithContext

func NewBackupSettingsFetchParamsWithContext(ctx context.Context) *BackupSettingsFetchParams

NewBackupSettingsFetchParamsWithContext creates a new BackupSettingsFetchParams object with the ability to set a context for a request.

func NewBackupSettingsFetchParamsWithHTTPClient

func NewBackupSettingsFetchParamsWithHTTPClient(client *http.Client) *BackupSettingsFetchParams

NewBackupSettingsFetchParamsWithHTTPClient creates a new BackupSettingsFetchParams object with the ability to set a custom HTTPClient for a request.

func NewBackupSettingsFetchParamsWithTimeout

func NewBackupSettingsFetchParamsWithTimeout(timeout time.Duration) *BackupSettingsFetchParams

NewBackupSettingsFetchParamsWithTimeout creates a new BackupSettingsFetchParams object with the ability to set a timeout on a request.

func (*BackupSettingsFetchParams) SetContext

func (o *BackupSettingsFetchParams) SetContext(ctx context.Context)

SetContext adds the context to the backup settings fetch params

func (*BackupSettingsFetchParams) SetDefaults

func (o *BackupSettingsFetchParams) SetDefaults()

SetDefaults hydrates default values in the backup settings fetch params (not the query body).

All values with no default are reset to their zero value.

func (*BackupSettingsFetchParams) SetHTTPClient

func (o *BackupSettingsFetchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the backup settings fetch params

func (*BackupSettingsFetchParams) SetTimeout

func (o *BackupSettingsFetchParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the backup settings fetch params

func (*BackupSettingsFetchParams) WithContext

WithContext adds the context to the backup settings fetch params

func (*BackupSettingsFetchParams) WithDefaults

WithDefaults hydrates default values in the backup settings fetch params (not the query body).

All values with no default are reset to their zero value.

func (*BackupSettingsFetchParams) WithHTTPClient

func (o *BackupSettingsFetchParams) WithHTTPClient(client *http.Client) *BackupSettingsFetchParams

WithHTTPClient adds the HTTPClient to the backup settings fetch params

func (*BackupSettingsFetchParams) WithTimeout

WithTimeout adds the timeout to the backup settings fetch params

func (*BackupSettingsFetchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BackupSettingsFetchReader

type BackupSettingsFetchReader struct {
	// contains filtered or unexported fields
}

BackupSettingsFetchReader is a Reader for the BackupSettingsFetch structure.

func (*BackupSettingsFetchReader) ReadResponse

func (o *BackupSettingsFetchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type BackupSettingsFetchUnauthorized

type BackupSettingsFetchUnauthorized struct {
}

BackupSettingsFetchUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewBackupSettingsFetchUnauthorized

func NewBackupSettingsFetchUnauthorized() *BackupSettingsFetchUnauthorized

NewBackupSettingsFetchUnauthorized creates a BackupSettingsFetchUnauthorized with default headers values

func (*BackupSettingsFetchUnauthorized) Code

Code gets the status code for the backup settings fetch unauthorized response

func (*BackupSettingsFetchUnauthorized) Error

func (*BackupSettingsFetchUnauthorized) IsClientError

func (o *BackupSettingsFetchUnauthorized) IsClientError() bool

IsClientError returns true when this backup settings fetch unauthorized response has a 4xx status code

func (*BackupSettingsFetchUnauthorized) IsCode

func (o *BackupSettingsFetchUnauthorized) IsCode(code int) bool

IsCode returns true when this backup settings fetch unauthorized response a status code equal to that given

func (*BackupSettingsFetchUnauthorized) IsRedirect

func (o *BackupSettingsFetchUnauthorized) IsRedirect() bool

IsRedirect returns true when this backup settings fetch unauthorized response has a 3xx status code

func (*BackupSettingsFetchUnauthorized) IsServerError

func (o *BackupSettingsFetchUnauthorized) IsServerError() bool

IsServerError returns true when this backup settings fetch unauthorized response has a 5xx status code

func (*BackupSettingsFetchUnauthorized) IsSuccess

func (o *BackupSettingsFetchUnauthorized) IsSuccess() bool

IsSuccess returns true when this backup settings fetch unauthorized response has a 2xx status code

func (*BackupSettingsFetchUnauthorized) String

type BackupStatusFetchInternalServerError

type BackupStatusFetchInternalServerError struct {
}

BackupStatusFetchInternalServerError describes a response with status code 500, with default header values.

Server error

func NewBackupStatusFetchInternalServerError

func NewBackupStatusFetchInternalServerError() *BackupStatusFetchInternalServerError

NewBackupStatusFetchInternalServerError creates a BackupStatusFetchInternalServerError with default headers values

func (*BackupStatusFetchInternalServerError) Code

Code gets the status code for the backup status fetch internal server error response

func (*BackupStatusFetchInternalServerError) Error

func (*BackupStatusFetchInternalServerError) IsClientError

func (o *BackupStatusFetchInternalServerError) IsClientError() bool

IsClientError returns true when this backup status fetch internal server error response has a 4xx status code

func (*BackupStatusFetchInternalServerError) IsCode

IsCode returns true when this backup status fetch internal server error response a status code equal to that given

func (*BackupStatusFetchInternalServerError) IsRedirect

IsRedirect returns true when this backup status fetch internal server error response has a 3xx status code

func (*BackupStatusFetchInternalServerError) IsServerError

func (o *BackupStatusFetchInternalServerError) IsServerError() bool

IsServerError returns true when this backup status fetch internal server error response has a 5xx status code

func (*BackupStatusFetchInternalServerError) IsSuccess

IsSuccess returns true when this backup status fetch internal server error response has a 2xx status code

func (*BackupStatusFetchInternalServerError) String

type BackupStatusFetchOK

type BackupStatusFetchOK struct {
	Payload *models.BackupBackupStatus
}

BackupStatusFetchOK describes a response with status code 200, with default header values.

Success

func NewBackupStatusFetchOK

func NewBackupStatusFetchOK() *BackupStatusFetchOK

NewBackupStatusFetchOK creates a BackupStatusFetchOK with default headers values

func (*BackupStatusFetchOK) Code

func (o *BackupStatusFetchOK) Code() int

Code gets the status code for the backup status fetch o k response

func (*BackupStatusFetchOK) Error

func (o *BackupStatusFetchOK) Error() string

func (*BackupStatusFetchOK) GetPayload

func (*BackupStatusFetchOK) IsClientError

func (o *BackupStatusFetchOK) IsClientError() bool

IsClientError returns true when this backup status fetch o k response has a 4xx status code

func (*BackupStatusFetchOK) IsCode

func (o *BackupStatusFetchOK) IsCode(code int) bool

IsCode returns true when this backup status fetch o k response a status code equal to that given

func (*BackupStatusFetchOK) IsRedirect

func (o *BackupStatusFetchOK) IsRedirect() bool

IsRedirect returns true when this backup status fetch o k response has a 3xx status code

func (*BackupStatusFetchOK) IsServerError

func (o *BackupStatusFetchOK) IsServerError() bool

IsServerError returns true when this backup status fetch o k response has a 5xx status code

func (*BackupStatusFetchOK) IsSuccess

func (o *BackupStatusFetchOK) IsSuccess() bool

IsSuccess returns true when this backup status fetch o k response has a 2xx status code

func (*BackupStatusFetchOK) String

func (o *BackupStatusFetchOK) String() string

type BackupStatusFetchParams

type BackupStatusFetchParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BackupStatusFetchParams contains all the parameters to send to the API endpoint

for the backup status fetch operation.

Typically these are written to a http.Request.

func NewBackupStatusFetchParams

func NewBackupStatusFetchParams() *BackupStatusFetchParams

NewBackupStatusFetchParams creates a new BackupStatusFetchParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBackupStatusFetchParamsWithContext

func NewBackupStatusFetchParamsWithContext(ctx context.Context) *BackupStatusFetchParams

NewBackupStatusFetchParamsWithContext creates a new BackupStatusFetchParams object with the ability to set a context for a request.

func NewBackupStatusFetchParamsWithHTTPClient

func NewBackupStatusFetchParamsWithHTTPClient(client *http.Client) *BackupStatusFetchParams

NewBackupStatusFetchParamsWithHTTPClient creates a new BackupStatusFetchParams object with the ability to set a custom HTTPClient for a request.

func NewBackupStatusFetchParamsWithTimeout

func NewBackupStatusFetchParamsWithTimeout(timeout time.Duration) *BackupStatusFetchParams

NewBackupStatusFetchParamsWithTimeout creates a new BackupStatusFetchParams object with the ability to set a timeout on a request.

func (*BackupStatusFetchParams) SetContext

func (o *BackupStatusFetchParams) SetContext(ctx context.Context)

SetContext adds the context to the backup status fetch params

func (*BackupStatusFetchParams) SetDefaults

func (o *BackupStatusFetchParams) SetDefaults()

SetDefaults hydrates default values in the backup status fetch params (not the query body).

All values with no default are reset to their zero value.

func (*BackupStatusFetchParams) SetHTTPClient

func (o *BackupStatusFetchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the backup status fetch params

func (*BackupStatusFetchParams) SetTimeout

func (o *BackupStatusFetchParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the backup status fetch params

func (*BackupStatusFetchParams) WithContext

WithContext adds the context to the backup status fetch params

func (*BackupStatusFetchParams) WithDefaults

WithDefaults hydrates default values in the backup status fetch params (not the query body).

All values with no default are reset to their zero value.

func (*BackupStatusFetchParams) WithHTTPClient

func (o *BackupStatusFetchParams) WithHTTPClient(client *http.Client) *BackupStatusFetchParams

WithHTTPClient adds the HTTPClient to the backup status fetch params

func (*BackupStatusFetchParams) WithTimeout

WithTimeout adds the timeout to the backup status fetch params

func (*BackupStatusFetchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BackupStatusFetchReader

type BackupStatusFetchReader struct {
	// contains filtered or unexported fields
}

BackupStatusFetchReader is a Reader for the BackupStatusFetch structure.

func (*BackupStatusFetchReader) ReadResponse

func (o *BackupStatusFetchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type BackupToS3BadRequest

type BackupToS3BadRequest struct {
}

BackupToS3BadRequest describes a response with status code 400, with default header values.

Invalid request

func NewBackupToS3BadRequest

func NewBackupToS3BadRequest() *BackupToS3BadRequest

NewBackupToS3BadRequest creates a BackupToS3BadRequest with default headers values

func (*BackupToS3BadRequest) Code

func (o *BackupToS3BadRequest) Code() int

Code gets the status code for the backup to s3 bad request response

func (*BackupToS3BadRequest) Error

func (o *BackupToS3BadRequest) Error() string

func (*BackupToS3BadRequest) IsClientError

func (o *BackupToS3BadRequest) IsClientError() bool

IsClientError returns true when this backup to s3 bad request response has a 4xx status code

func (*BackupToS3BadRequest) IsCode

func (o *BackupToS3BadRequest) IsCode(code int) bool

IsCode returns true when this backup to s3 bad request response a status code equal to that given

func (*BackupToS3BadRequest) IsRedirect

func (o *BackupToS3BadRequest) IsRedirect() bool

IsRedirect returns true when this backup to s3 bad request response has a 3xx status code

func (*BackupToS3BadRequest) IsServerError

func (o *BackupToS3BadRequest) IsServerError() bool

IsServerError returns true when this backup to s3 bad request response has a 5xx status code

func (*BackupToS3BadRequest) IsSuccess

func (o *BackupToS3BadRequest) IsSuccess() bool

IsSuccess returns true when this backup to s3 bad request response has a 2xx status code

func (*BackupToS3BadRequest) String

func (o *BackupToS3BadRequest) String() string

type BackupToS3InternalServerError

type BackupToS3InternalServerError struct {
}

BackupToS3InternalServerError describes a response with status code 500, with default header values.

Server error

func NewBackupToS3InternalServerError

func NewBackupToS3InternalServerError() *BackupToS3InternalServerError

NewBackupToS3InternalServerError creates a BackupToS3InternalServerError with default headers values

func (*BackupToS3InternalServerError) Code

Code gets the status code for the backup to s3 internal server error response

func (*BackupToS3InternalServerError) Error

func (*BackupToS3InternalServerError) IsClientError

func (o *BackupToS3InternalServerError) IsClientError() bool

IsClientError returns true when this backup to s3 internal server error response has a 4xx status code

func (*BackupToS3InternalServerError) IsCode

func (o *BackupToS3InternalServerError) IsCode(code int) bool

IsCode returns true when this backup to s3 internal server error response a status code equal to that given

func (*BackupToS3InternalServerError) IsRedirect

func (o *BackupToS3InternalServerError) IsRedirect() bool

IsRedirect returns true when this backup to s3 internal server error response has a 3xx status code

func (*BackupToS3InternalServerError) IsServerError

func (o *BackupToS3InternalServerError) IsServerError() bool

IsServerError returns true when this backup to s3 internal server error response has a 5xx status code

func (*BackupToS3InternalServerError) IsSuccess

func (o *BackupToS3InternalServerError) IsSuccess() bool

IsSuccess returns true when this backup to s3 internal server error response has a 2xx status code

func (*BackupToS3InternalServerError) String

type BackupToS3NoContent

type BackupToS3NoContent struct {
}

BackupToS3NoContent describes a response with status code 204, with default header values.

Success

func NewBackupToS3NoContent

func NewBackupToS3NoContent() *BackupToS3NoContent

NewBackupToS3NoContent creates a BackupToS3NoContent with default headers values

func (*BackupToS3NoContent) Code

func (o *BackupToS3NoContent) Code() int

Code gets the status code for the backup to s3 no content response

func (*BackupToS3NoContent) Error

func (o *BackupToS3NoContent) Error() string

func (*BackupToS3NoContent) IsClientError

func (o *BackupToS3NoContent) IsClientError() bool

IsClientError returns true when this backup to s3 no content response has a 4xx status code

func (*BackupToS3NoContent) IsCode

func (o *BackupToS3NoContent) IsCode(code int) bool

IsCode returns true when this backup to s3 no content response a status code equal to that given

func (*BackupToS3NoContent) IsRedirect

func (o *BackupToS3NoContent) IsRedirect() bool

IsRedirect returns true when this backup to s3 no content response has a 3xx status code

func (*BackupToS3NoContent) IsServerError

func (o *BackupToS3NoContent) IsServerError() bool

IsServerError returns true when this backup to s3 no content response has a 5xx status code

func (*BackupToS3NoContent) IsSuccess

func (o *BackupToS3NoContent) IsSuccess() bool

IsSuccess returns true when this backup to s3 no content response has a 2xx status code

func (*BackupToS3NoContent) String

func (o *BackupToS3NoContent) String() string

type BackupToS3Params

type BackupToS3Params struct {

	/* Body.

	   S3 backup settings
	*/
	Body *models.BackupS3BackupPayload

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BackupToS3Params contains all the parameters to send to the API endpoint

for the backup to s3 operation.

Typically these are written to a http.Request.

func NewBackupToS3Params

func NewBackupToS3Params() *BackupToS3Params

NewBackupToS3Params creates a new BackupToS3Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBackupToS3ParamsWithContext

func NewBackupToS3ParamsWithContext(ctx context.Context) *BackupToS3Params

NewBackupToS3ParamsWithContext creates a new BackupToS3Params object with the ability to set a context for a request.

func NewBackupToS3ParamsWithHTTPClient

func NewBackupToS3ParamsWithHTTPClient(client *http.Client) *BackupToS3Params

NewBackupToS3ParamsWithHTTPClient creates a new BackupToS3Params object with the ability to set a custom HTTPClient for a request.

func NewBackupToS3ParamsWithTimeout

func NewBackupToS3ParamsWithTimeout(timeout time.Duration) *BackupToS3Params

NewBackupToS3ParamsWithTimeout creates a new BackupToS3Params object with the ability to set a timeout on a request.

func (*BackupToS3Params) SetBody

func (o *BackupToS3Params) SetBody(body *models.BackupS3BackupPayload)

SetBody adds the body to the backup to s3 params

func (*BackupToS3Params) SetContext

func (o *BackupToS3Params) SetContext(ctx context.Context)

SetContext adds the context to the backup to s3 params

func (*BackupToS3Params) SetDefaults

func (o *BackupToS3Params) SetDefaults()

SetDefaults hydrates default values in the backup to s3 params (not the query body).

All values with no default are reset to their zero value.

func (*BackupToS3Params) SetHTTPClient

func (o *BackupToS3Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the backup to s3 params

func (*BackupToS3Params) SetTimeout

func (o *BackupToS3Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the backup to s3 params

func (*BackupToS3Params) WithBody

WithBody adds the body to the backup to s3 params

func (*BackupToS3Params) WithContext

func (o *BackupToS3Params) WithContext(ctx context.Context) *BackupToS3Params

WithContext adds the context to the backup to s3 params

func (*BackupToS3Params) WithDefaults

func (o *BackupToS3Params) WithDefaults() *BackupToS3Params

WithDefaults hydrates default values in the backup to s3 params (not the query body).

All values with no default are reset to their zero value.

func (*BackupToS3Params) WithHTTPClient

func (o *BackupToS3Params) WithHTTPClient(client *http.Client) *BackupToS3Params

WithHTTPClient adds the HTTPClient to the backup to s3 params

func (*BackupToS3Params) WithTimeout

func (o *BackupToS3Params) WithTimeout(timeout time.Duration) *BackupToS3Params

WithTimeout adds the timeout to the backup to s3 params

func (*BackupToS3Params) WriteToRequest

func (o *BackupToS3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type BackupToS3Reader

type BackupToS3Reader struct {
	// contains filtered or unexported fields
}

BackupToS3Reader is a Reader for the BackupToS3 structure.

func (*BackupToS3Reader) ReadResponse

func (o *BackupToS3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for backup API

func (*Client) Backup

func (a *Client) Backup(params *BackupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupOK, error)
Backup creates an archive with a system data snapshot that could be used to restore the system

Creates an archive with a system data snapshot that could be used to restore the system.

**Access policy**: admin

func (*Client) BackupSettingsFetch

func (a *Client) BackupSettingsFetch(params *BackupSettingsFetchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupSettingsFetchOK, error)

BackupSettingsFetch fetches s3 backup settings configurations

**Access policy**: administrator

func (*Client) BackupStatusFetch

func (a *Client) BackupStatusFetch(params *BackupStatusFetchParams, opts ...ClientOption) (*BackupStatusFetchOK, error)

BackupStatusFetch fetches the status of the last scheduled backup run

**Access policy**: public

func (*Client) BackupToS3

func (a *Client) BackupToS3(params *BackupToS3Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupToS3NoContent, error)
BackupToS3 executes backup to a w s s3 bucket

Creates an archive with a system data snapshot and upload it to the target S3 bucket

**Access policy**: administrator

func (*Client) Restore

func (a *Client) Restore(params *RestoreParams, opts ...ClientOption) (*RestoreOK, error)
Restore triggers a system restore using provided backup file

Triggers a system restore using provided backup file

**Access policy**: public

func (*Client) RestoreFromS3

func (a *Client) RestoreFromS3(params *RestoreFromS3Params, opts ...ClientOption) (*RestoreFromS3OK, error)
RestoreFromS3 triggers a system restore using details of s3 backup

Triggers a system restore using details of s3 backup

**Access policy**: public

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateS3Settings

func (a *Client) UpdateS3Settings(params *UpdateS3SettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateS3SettingsOK, error)
UpdateS3Settings updates stored s3 backup settings and updates running cron jobs as needed

Updates stored s3 backup settings and updates running cron jobs as needed

**Access policy**: administrator

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	Backup(params *BackupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupOK, error)

	BackupSettingsFetch(params *BackupSettingsFetchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupSettingsFetchOK, error)

	BackupStatusFetch(params *BackupStatusFetchParams, opts ...ClientOption) (*BackupStatusFetchOK, error)

	BackupToS3(params *BackupToS3Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupToS3NoContent, error)

	Restore(params *RestoreParams, opts ...ClientOption) (*RestoreOK, error)

	RestoreFromS3(params *RestoreFromS3Params, opts ...ClientOption) (*RestoreFromS3OK, error)

	UpdateS3Settings(params *UpdateS3SettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateS3SettingsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new backup API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new backup API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new backup API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type RestoreBadRequest

type RestoreBadRequest struct {
}

RestoreBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewRestoreBadRequest

func NewRestoreBadRequest() *RestoreBadRequest

NewRestoreBadRequest creates a RestoreBadRequest with default headers values

func (*RestoreBadRequest) Code

func (o *RestoreBadRequest) Code() int

Code gets the status code for the restore bad request response

func (*RestoreBadRequest) Error

func (o *RestoreBadRequest) Error() string

func (*RestoreBadRequest) IsClientError

func (o *RestoreBadRequest) IsClientError() bool

IsClientError returns true when this restore bad request response has a 4xx status code

func (*RestoreBadRequest) IsCode

func (o *RestoreBadRequest) IsCode(code int) bool

IsCode returns true when this restore bad request response a status code equal to that given

func (*RestoreBadRequest) IsRedirect

func (o *RestoreBadRequest) IsRedirect() bool

IsRedirect returns true when this restore bad request response has a 3xx status code

func (*RestoreBadRequest) IsServerError

func (o *RestoreBadRequest) IsServerError() bool

IsServerError returns true when this restore bad request response has a 5xx status code

func (*RestoreBadRequest) IsSuccess

func (o *RestoreBadRequest) IsSuccess() bool

IsSuccess returns true when this restore bad request response has a 2xx status code

func (*RestoreBadRequest) String

func (o *RestoreBadRequest) String() string

type RestoreFromS3BadRequest

type RestoreFromS3BadRequest struct {
}

RestoreFromS3BadRequest describes a response with status code 400, with default header values.

Invalid request

func NewRestoreFromS3BadRequest

func NewRestoreFromS3BadRequest() *RestoreFromS3BadRequest

NewRestoreFromS3BadRequest creates a RestoreFromS3BadRequest with default headers values

func (*RestoreFromS3BadRequest) Code

func (o *RestoreFromS3BadRequest) Code() int

Code gets the status code for the restore from s3 bad request response

func (*RestoreFromS3BadRequest) Error

func (o *RestoreFromS3BadRequest) Error() string

func (*RestoreFromS3BadRequest) IsClientError

func (o *RestoreFromS3BadRequest) IsClientError() bool

IsClientError returns true when this restore from s3 bad request response has a 4xx status code

func (*RestoreFromS3BadRequest) IsCode

func (o *RestoreFromS3BadRequest) IsCode(code int) bool

IsCode returns true when this restore from s3 bad request response a status code equal to that given

func (*RestoreFromS3BadRequest) IsRedirect

func (o *RestoreFromS3BadRequest) IsRedirect() bool

IsRedirect returns true when this restore from s3 bad request response has a 3xx status code

func (*RestoreFromS3BadRequest) IsServerError

func (o *RestoreFromS3BadRequest) IsServerError() bool

IsServerError returns true when this restore from s3 bad request response has a 5xx status code

func (*RestoreFromS3BadRequest) IsSuccess

func (o *RestoreFromS3BadRequest) IsSuccess() bool

IsSuccess returns true when this restore from s3 bad request response has a 2xx status code

func (*RestoreFromS3BadRequest) String

func (o *RestoreFromS3BadRequest) String() string

type RestoreFromS3InternalServerError

type RestoreFromS3InternalServerError struct {
}

RestoreFromS3InternalServerError describes a response with status code 500, with default header values.

Server error

func NewRestoreFromS3InternalServerError

func NewRestoreFromS3InternalServerError() *RestoreFromS3InternalServerError

NewRestoreFromS3InternalServerError creates a RestoreFromS3InternalServerError with default headers values

func (*RestoreFromS3InternalServerError) Code

Code gets the status code for the restore from s3 internal server error response

func (*RestoreFromS3InternalServerError) Error

func (*RestoreFromS3InternalServerError) IsClientError

func (o *RestoreFromS3InternalServerError) IsClientError() bool

IsClientError returns true when this restore from s3 internal server error response has a 4xx status code

func (*RestoreFromS3InternalServerError) IsCode

func (o *RestoreFromS3InternalServerError) IsCode(code int) bool

IsCode returns true when this restore from s3 internal server error response a status code equal to that given

func (*RestoreFromS3InternalServerError) IsRedirect

func (o *RestoreFromS3InternalServerError) IsRedirect() bool

IsRedirect returns true when this restore from s3 internal server error response has a 3xx status code

func (*RestoreFromS3InternalServerError) IsServerError

func (o *RestoreFromS3InternalServerError) IsServerError() bool

IsServerError returns true when this restore from s3 internal server error response has a 5xx status code

func (*RestoreFromS3InternalServerError) IsSuccess

func (o *RestoreFromS3InternalServerError) IsSuccess() bool

IsSuccess returns true when this restore from s3 internal server error response has a 2xx status code

func (*RestoreFromS3InternalServerError) String

type RestoreFromS3OK

type RestoreFromS3OK struct {
}

RestoreFromS3OK describes a response with status code 200, with default header values.

Success

func NewRestoreFromS3OK

func NewRestoreFromS3OK() *RestoreFromS3OK

NewRestoreFromS3OK creates a RestoreFromS3OK with default headers values

func (*RestoreFromS3OK) Code

func (o *RestoreFromS3OK) Code() int

Code gets the status code for the restore from s3 o k response

func (*RestoreFromS3OK) Error

func (o *RestoreFromS3OK) Error() string

func (*RestoreFromS3OK) IsClientError

func (o *RestoreFromS3OK) IsClientError() bool

IsClientError returns true when this restore from s3 o k response has a 4xx status code

func (*RestoreFromS3OK) IsCode

func (o *RestoreFromS3OK) IsCode(code int) bool

IsCode returns true when this restore from s3 o k response a status code equal to that given

func (*RestoreFromS3OK) IsRedirect

func (o *RestoreFromS3OK) IsRedirect() bool

IsRedirect returns true when this restore from s3 o k response has a 3xx status code

func (*RestoreFromS3OK) IsServerError

func (o *RestoreFromS3OK) IsServerError() bool

IsServerError returns true when this restore from s3 o k response has a 5xx status code

func (*RestoreFromS3OK) IsSuccess

func (o *RestoreFromS3OK) IsSuccess() bool

IsSuccess returns true when this restore from s3 o k response has a 2xx status code

func (*RestoreFromS3OK) String

func (o *RestoreFromS3OK) String() string

type RestoreFromS3Params

type RestoreFromS3Params struct {

	/* Body.

	   S3 Location Payload
	*/
	Body *models.BackupRestoreS3Settings

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RestoreFromS3Params contains all the parameters to send to the API endpoint

for the restore from s3 operation.

Typically these are written to a http.Request.

func NewRestoreFromS3Params

func NewRestoreFromS3Params() *RestoreFromS3Params

NewRestoreFromS3Params creates a new RestoreFromS3Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRestoreFromS3ParamsWithContext

func NewRestoreFromS3ParamsWithContext(ctx context.Context) *RestoreFromS3Params

NewRestoreFromS3ParamsWithContext creates a new RestoreFromS3Params object with the ability to set a context for a request.

func NewRestoreFromS3ParamsWithHTTPClient

func NewRestoreFromS3ParamsWithHTTPClient(client *http.Client) *RestoreFromS3Params

NewRestoreFromS3ParamsWithHTTPClient creates a new RestoreFromS3Params object with the ability to set a custom HTTPClient for a request.

func NewRestoreFromS3ParamsWithTimeout

func NewRestoreFromS3ParamsWithTimeout(timeout time.Duration) *RestoreFromS3Params

NewRestoreFromS3ParamsWithTimeout creates a new RestoreFromS3Params object with the ability to set a timeout on a request.

func (*RestoreFromS3Params) SetBody

SetBody adds the body to the restore from s3 params

func (*RestoreFromS3Params) SetContext

func (o *RestoreFromS3Params) SetContext(ctx context.Context)

SetContext adds the context to the restore from s3 params

func (*RestoreFromS3Params) SetDefaults

func (o *RestoreFromS3Params) SetDefaults()

SetDefaults hydrates default values in the restore from s3 params (not the query body).

All values with no default are reset to their zero value.

func (*RestoreFromS3Params) SetHTTPClient

func (o *RestoreFromS3Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the restore from s3 params

func (*RestoreFromS3Params) SetTimeout

func (o *RestoreFromS3Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the restore from s3 params

func (*RestoreFromS3Params) WithBody

WithBody adds the body to the restore from s3 params

func (*RestoreFromS3Params) WithContext

WithContext adds the context to the restore from s3 params

func (*RestoreFromS3Params) WithDefaults

func (o *RestoreFromS3Params) WithDefaults() *RestoreFromS3Params

WithDefaults hydrates default values in the restore from s3 params (not the query body).

All values with no default are reset to their zero value.

func (*RestoreFromS3Params) WithHTTPClient

func (o *RestoreFromS3Params) WithHTTPClient(client *http.Client) *RestoreFromS3Params

WithHTTPClient adds the HTTPClient to the restore from s3 params

func (*RestoreFromS3Params) WithTimeout

func (o *RestoreFromS3Params) WithTimeout(timeout time.Duration) *RestoreFromS3Params

WithTimeout adds the timeout to the restore from s3 params

func (*RestoreFromS3Params) WriteToRequest

func (o *RestoreFromS3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RestoreFromS3Reader

type RestoreFromS3Reader struct {
	// contains filtered or unexported fields
}

RestoreFromS3Reader is a Reader for the RestoreFromS3 structure.

func (*RestoreFromS3Reader) ReadResponse

func (o *RestoreFromS3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RestoreInternalServerError

type RestoreInternalServerError struct {
}

RestoreInternalServerError describes a response with status code 500, with default header values.

Server error

func NewRestoreInternalServerError

func NewRestoreInternalServerError() *RestoreInternalServerError

NewRestoreInternalServerError creates a RestoreInternalServerError with default headers values

func (*RestoreInternalServerError) Code

func (o *RestoreInternalServerError) Code() int

Code gets the status code for the restore internal server error response

func (*RestoreInternalServerError) Error

func (*RestoreInternalServerError) IsClientError

func (o *RestoreInternalServerError) IsClientError() bool

IsClientError returns true when this restore internal server error response has a 4xx status code

func (*RestoreInternalServerError) IsCode

func (o *RestoreInternalServerError) IsCode(code int) bool

IsCode returns true when this restore internal server error response a status code equal to that given

func (*RestoreInternalServerError) IsRedirect

func (o *RestoreInternalServerError) IsRedirect() bool

IsRedirect returns true when this restore internal server error response has a 3xx status code

func (*RestoreInternalServerError) IsServerError

func (o *RestoreInternalServerError) IsServerError() bool

IsServerError returns true when this restore internal server error response has a 5xx status code

func (*RestoreInternalServerError) IsSuccess

func (o *RestoreInternalServerError) IsSuccess() bool

IsSuccess returns true when this restore internal server error response has a 2xx status code

func (*RestoreInternalServerError) String

func (o *RestoreInternalServerError) String() string

type RestoreOK

type RestoreOK struct {
}

RestoreOK describes a response with status code 200, with default header values.

Success

func NewRestoreOK

func NewRestoreOK() *RestoreOK

NewRestoreOK creates a RestoreOK with default headers values

func (*RestoreOK) Code

func (o *RestoreOK) Code() int

Code gets the status code for the restore o k response

func (*RestoreOK) Error

func (o *RestoreOK) Error() string

func (*RestoreOK) IsClientError

func (o *RestoreOK) IsClientError() bool

IsClientError returns true when this restore o k response has a 4xx status code

func (*RestoreOK) IsCode

func (o *RestoreOK) IsCode(code int) bool

IsCode returns true when this restore o k response a status code equal to that given

func (*RestoreOK) IsRedirect

func (o *RestoreOK) IsRedirect() bool

IsRedirect returns true when this restore o k response has a 3xx status code

func (*RestoreOK) IsServerError

func (o *RestoreOK) IsServerError() bool

IsServerError returns true when this restore o k response has a 5xx status code

func (*RestoreOK) IsSuccess

func (o *RestoreOK) IsSuccess() bool

IsSuccess returns true when this restore o k response has a 2xx status code

func (*RestoreOK) String

func (o *RestoreOK) String() string

type RestoreParams

type RestoreParams struct {

	/* RestorePayload.

	   Restore request payload
	*/
	RestorePayload *models.BackupRestorePayload

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RestoreParams contains all the parameters to send to the API endpoint

for the restore operation.

Typically these are written to a http.Request.

func NewRestoreParams

func NewRestoreParams() *RestoreParams

NewRestoreParams creates a new RestoreParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRestoreParamsWithContext

func NewRestoreParamsWithContext(ctx context.Context) *RestoreParams

NewRestoreParamsWithContext creates a new RestoreParams object with the ability to set a context for a request.

func NewRestoreParamsWithHTTPClient

func NewRestoreParamsWithHTTPClient(client *http.Client) *RestoreParams

NewRestoreParamsWithHTTPClient creates a new RestoreParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreParamsWithTimeout

func NewRestoreParamsWithTimeout(timeout time.Duration) *RestoreParams

NewRestoreParamsWithTimeout creates a new RestoreParams object with the ability to set a timeout on a request.

func (*RestoreParams) SetContext

func (o *RestoreParams) SetContext(ctx context.Context)

SetContext adds the context to the restore params

func (*RestoreParams) SetDefaults

func (o *RestoreParams) SetDefaults()

SetDefaults hydrates default values in the restore params (not the query body).

All values with no default are reset to their zero value.

func (*RestoreParams) SetHTTPClient

func (o *RestoreParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the restore params

func (*RestoreParams) SetRestorePayload

func (o *RestoreParams) SetRestorePayload(restorePayload *models.BackupRestorePayload)

SetRestorePayload adds the restorePayload to the restore params

func (*RestoreParams) SetTimeout

func (o *RestoreParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the restore params

func (*RestoreParams) WithContext

func (o *RestoreParams) WithContext(ctx context.Context) *RestoreParams

WithContext adds the context to the restore params

func (*RestoreParams) WithDefaults

func (o *RestoreParams) WithDefaults() *RestoreParams

WithDefaults hydrates default values in the restore params (not the query body).

All values with no default are reset to their zero value.

func (*RestoreParams) WithHTTPClient

func (o *RestoreParams) WithHTTPClient(client *http.Client) *RestoreParams

WithHTTPClient adds the HTTPClient to the restore params

func (*RestoreParams) WithRestorePayload

func (o *RestoreParams) WithRestorePayload(restorePayload *models.BackupRestorePayload) *RestoreParams

WithRestorePayload adds the restorePayload to the restore params

func (*RestoreParams) WithTimeout

func (o *RestoreParams) WithTimeout(timeout time.Duration) *RestoreParams

WithTimeout adds the timeout to the restore params

func (*RestoreParams) WriteToRequest

func (o *RestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RestoreReader

type RestoreReader struct {
	// contains filtered or unexported fields
}

RestoreReader is a Reader for the Restore structure.

func (*RestoreReader) ReadResponse

func (o *RestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateS3SettingsBadRequest

type UpdateS3SettingsBadRequest struct {
}

UpdateS3SettingsBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewUpdateS3SettingsBadRequest

func NewUpdateS3SettingsBadRequest() *UpdateS3SettingsBadRequest

NewUpdateS3SettingsBadRequest creates a UpdateS3SettingsBadRequest with default headers values

func (*UpdateS3SettingsBadRequest) Code

func (o *UpdateS3SettingsBadRequest) Code() int

Code gets the status code for the update s3 settings bad request response

func (*UpdateS3SettingsBadRequest) Error

func (*UpdateS3SettingsBadRequest) IsClientError

func (o *UpdateS3SettingsBadRequest) IsClientError() bool

IsClientError returns true when this update s3 settings bad request response has a 4xx status code

func (*UpdateS3SettingsBadRequest) IsCode

func (o *UpdateS3SettingsBadRequest) IsCode(code int) bool

IsCode returns true when this update s3 settings bad request response a status code equal to that given

func (*UpdateS3SettingsBadRequest) IsRedirect

func (o *UpdateS3SettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this update s3 settings bad request response has a 3xx status code

func (*UpdateS3SettingsBadRequest) IsServerError

func (o *UpdateS3SettingsBadRequest) IsServerError() bool

IsServerError returns true when this update s3 settings bad request response has a 5xx status code

func (*UpdateS3SettingsBadRequest) IsSuccess

func (o *UpdateS3SettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this update s3 settings bad request response has a 2xx status code

func (*UpdateS3SettingsBadRequest) String

func (o *UpdateS3SettingsBadRequest) String() string

type UpdateS3SettingsInternalServerError

type UpdateS3SettingsInternalServerError struct {
}

UpdateS3SettingsInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateS3SettingsInternalServerError

func NewUpdateS3SettingsInternalServerError() *UpdateS3SettingsInternalServerError

NewUpdateS3SettingsInternalServerError creates a UpdateS3SettingsInternalServerError with default headers values

func (*UpdateS3SettingsInternalServerError) Code

Code gets the status code for the update s3 settings internal server error response

func (*UpdateS3SettingsInternalServerError) Error

func (*UpdateS3SettingsInternalServerError) IsClientError

func (o *UpdateS3SettingsInternalServerError) IsClientError() bool

IsClientError returns true when this update s3 settings internal server error response has a 4xx status code

func (*UpdateS3SettingsInternalServerError) IsCode

IsCode returns true when this update s3 settings internal server error response a status code equal to that given

func (*UpdateS3SettingsInternalServerError) IsRedirect

func (o *UpdateS3SettingsInternalServerError) IsRedirect() bool

IsRedirect returns true when this update s3 settings internal server error response has a 3xx status code

func (*UpdateS3SettingsInternalServerError) IsServerError

func (o *UpdateS3SettingsInternalServerError) IsServerError() bool

IsServerError returns true when this update s3 settings internal server error response has a 5xx status code

func (*UpdateS3SettingsInternalServerError) IsSuccess

IsSuccess returns true when this update s3 settings internal server error response has a 2xx status code

func (*UpdateS3SettingsInternalServerError) String

type UpdateS3SettingsOK

type UpdateS3SettingsOK struct {
}

UpdateS3SettingsOK describes a response with status code 200, with default header values.

Success

func NewUpdateS3SettingsOK

func NewUpdateS3SettingsOK() *UpdateS3SettingsOK

NewUpdateS3SettingsOK creates a UpdateS3SettingsOK with default headers values

func (*UpdateS3SettingsOK) Code

func (o *UpdateS3SettingsOK) Code() int

Code gets the status code for the update s3 settings o k response

func (*UpdateS3SettingsOK) Error

func (o *UpdateS3SettingsOK) Error() string

func (*UpdateS3SettingsOK) IsClientError

func (o *UpdateS3SettingsOK) IsClientError() bool

IsClientError returns true when this update s3 settings o k response has a 4xx status code

func (*UpdateS3SettingsOK) IsCode

func (o *UpdateS3SettingsOK) IsCode(code int) bool

IsCode returns true when this update s3 settings o k response a status code equal to that given

func (*UpdateS3SettingsOK) IsRedirect

func (o *UpdateS3SettingsOK) IsRedirect() bool

IsRedirect returns true when this update s3 settings o k response has a 3xx status code

func (*UpdateS3SettingsOK) IsServerError

func (o *UpdateS3SettingsOK) IsServerError() bool

IsServerError returns true when this update s3 settings o k response has a 5xx status code

func (*UpdateS3SettingsOK) IsSuccess

func (o *UpdateS3SettingsOK) IsSuccess() bool

IsSuccess returns true when this update s3 settings o k response has a 2xx status code

func (*UpdateS3SettingsOK) String

func (o *UpdateS3SettingsOK) String() string

type UpdateS3SettingsParams

type UpdateS3SettingsParams struct {

	/* S3BackupSettings.

	   S3 backup settings
	*/
	S3BackupSettings *models.PortainereeS3BackupSettings

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateS3SettingsParams contains all the parameters to send to the API endpoint

for the update s3 settings operation.

Typically these are written to a http.Request.

func NewUpdateS3SettingsParams

func NewUpdateS3SettingsParams() *UpdateS3SettingsParams

NewUpdateS3SettingsParams creates a new UpdateS3SettingsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateS3SettingsParamsWithContext

func NewUpdateS3SettingsParamsWithContext(ctx context.Context) *UpdateS3SettingsParams

NewUpdateS3SettingsParamsWithContext creates a new UpdateS3SettingsParams object with the ability to set a context for a request.

func NewUpdateS3SettingsParamsWithHTTPClient

func NewUpdateS3SettingsParamsWithHTTPClient(client *http.Client) *UpdateS3SettingsParams

NewUpdateS3SettingsParamsWithHTTPClient creates a new UpdateS3SettingsParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateS3SettingsParamsWithTimeout

func NewUpdateS3SettingsParamsWithTimeout(timeout time.Duration) *UpdateS3SettingsParams

NewUpdateS3SettingsParamsWithTimeout creates a new UpdateS3SettingsParams object with the ability to set a timeout on a request.

func (*UpdateS3SettingsParams) SetContext

func (o *UpdateS3SettingsParams) SetContext(ctx context.Context)

SetContext adds the context to the update s3 settings params

func (*UpdateS3SettingsParams) SetDefaults

func (o *UpdateS3SettingsParams) SetDefaults()

SetDefaults hydrates default values in the update s3 settings params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateS3SettingsParams) SetHTTPClient

func (o *UpdateS3SettingsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update s3 settings params

func (*UpdateS3SettingsParams) SetS3BackupSettings

func (o *UpdateS3SettingsParams) SetS3BackupSettings(s3BackupSettings *models.PortainereeS3BackupSettings)

SetS3BackupSettings adds the s3BackupSettings to the update s3 settings params

func (*UpdateS3SettingsParams) SetTimeout

func (o *UpdateS3SettingsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update s3 settings params

func (*UpdateS3SettingsParams) WithContext

WithContext adds the context to the update s3 settings params

func (*UpdateS3SettingsParams) WithDefaults

WithDefaults hydrates default values in the update s3 settings params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateS3SettingsParams) WithHTTPClient

func (o *UpdateS3SettingsParams) WithHTTPClient(client *http.Client) *UpdateS3SettingsParams

WithHTTPClient adds the HTTPClient to the update s3 settings params

func (*UpdateS3SettingsParams) WithS3BackupSettings

func (o *UpdateS3SettingsParams) WithS3BackupSettings(s3BackupSettings *models.PortainereeS3BackupSettings) *UpdateS3SettingsParams

WithS3BackupSettings adds the s3BackupSettings to the update s3 settings params

func (*UpdateS3SettingsParams) WithTimeout

WithTimeout adds the timeout to the update s3 settings params

func (*UpdateS3SettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateS3SettingsReader

type UpdateS3SettingsReader struct {
	// contains filtered or unexported fields
}

UpdateS3SettingsReader is a Reader for the UpdateS3Settings structure.

func (*UpdateS3SettingsReader) ReadResponse

func (o *UpdateS3SettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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