database

package
v0.21.139 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckDataIntegrityAccepted

type CheckDataIntegrityAccepted struct {
	Payload *rest_model.Empty
}
CheckDataIntegrityAccepted describes a response with status code 202, with default header values.

Base empty response

func NewCheckDataIntegrityAccepted

func NewCheckDataIntegrityAccepted() *CheckDataIntegrityAccepted

NewCheckDataIntegrityAccepted creates a CheckDataIntegrityAccepted with default headers values

func (*CheckDataIntegrityAccepted) Error

func (*CheckDataIntegrityAccepted) GetPayload

func (o *CheckDataIntegrityAccepted) GetPayload() *rest_model.Empty

type CheckDataIntegrityParams

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

CheckDataIntegrityParams contains all the parameters to send to the API endpoint

for the check data integrity operation.

Typically these are written to a http.Request.

func NewCheckDataIntegrityParams

func NewCheckDataIntegrityParams() *CheckDataIntegrityParams

NewCheckDataIntegrityParams creates a new CheckDataIntegrityParams 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 NewCheckDataIntegrityParamsWithContext

func NewCheckDataIntegrityParamsWithContext(ctx context.Context) *CheckDataIntegrityParams

NewCheckDataIntegrityParamsWithContext creates a new CheckDataIntegrityParams object with the ability to set a context for a request.

func NewCheckDataIntegrityParamsWithHTTPClient

func NewCheckDataIntegrityParamsWithHTTPClient(client *http.Client) *CheckDataIntegrityParams

NewCheckDataIntegrityParamsWithHTTPClient creates a new CheckDataIntegrityParams object with the ability to set a custom HTTPClient for a request.

func NewCheckDataIntegrityParamsWithTimeout

func NewCheckDataIntegrityParamsWithTimeout(timeout time.Duration) *CheckDataIntegrityParams

NewCheckDataIntegrityParamsWithTimeout creates a new CheckDataIntegrityParams object with the ability to set a timeout on a request.

func (*CheckDataIntegrityParams) SetContext

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

SetContext adds the context to the check data integrity params

func (*CheckDataIntegrityParams) SetDefaults

func (o *CheckDataIntegrityParams) SetDefaults()

SetDefaults hydrates default values in the check data integrity params (not the query body).

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

func (*CheckDataIntegrityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the check data integrity params

func (*CheckDataIntegrityParams) SetTimeout

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

SetTimeout adds the timeout to the check data integrity params

func (*CheckDataIntegrityParams) WithContext

WithContext adds the context to the check data integrity params

func (*CheckDataIntegrityParams) WithDefaults

WithDefaults hydrates default values in the check data integrity params (not the query body).

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

func (*CheckDataIntegrityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the check data integrity params

func (*CheckDataIntegrityParams) WithTimeout

WithTimeout adds the timeout to the check data integrity params

func (*CheckDataIntegrityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CheckDataIntegrityReader

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

CheckDataIntegrityReader is a Reader for the CheckDataIntegrity structure.

func (*CheckDataIntegrityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CheckDataIntegrityTooManyRequests

type CheckDataIntegrityTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
CheckDataIntegrityTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewCheckDataIntegrityTooManyRequests

func NewCheckDataIntegrityTooManyRequests() *CheckDataIntegrityTooManyRequests

NewCheckDataIntegrityTooManyRequests creates a CheckDataIntegrityTooManyRequests with default headers values

func (*CheckDataIntegrityTooManyRequests) Error

func (*CheckDataIntegrityTooManyRequests) GetPayload

type CheckDataIntegrityUnauthorized

type CheckDataIntegrityUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
CheckDataIntegrityUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewCheckDataIntegrityUnauthorized

func NewCheckDataIntegrityUnauthorized() *CheckDataIntegrityUnauthorized

NewCheckDataIntegrityUnauthorized creates a CheckDataIntegrityUnauthorized with default headers values

func (*CheckDataIntegrityUnauthorized) Error

func (*CheckDataIntegrityUnauthorized) GetPayload

type Client

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

Client for database API

func (*Client) CheckDataIntegrity

func (a *Client) CheckDataIntegrity(params *CheckDataIntegrityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CheckDataIntegrityAccepted, error)

CheckDataIntegrity starts a data integrity scan on the datastore

Starts a data integrity scan on the datastore. Requires admin access. Only once instance may run at a time, including runs of fixDataIntegrity.

func (*Client) CreateDatabaseSnapshot

func (a *Client) CreateDatabaseSnapshot(params *CreateDatabaseSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDatabaseSnapshotOK, error)

CreateDatabaseSnapshot creates a new database snapshot

Create a new database snapshot. Requires admin access.

func (*Client) DataIntegrityResults

func (a *Client) DataIntegrityResults(params *DataIntegrityResultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DataIntegrityResultsOK, error)

DataIntegrityResults returns any results found from in progress integrity checks

Returns any results found from in-progress integrity checks. Requires admin access.

func (*Client) FixDataIntegrity

func (a *Client) FixDataIntegrity(params *FixDataIntegrityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FixDataIntegrityAccepted, error)

FixDataIntegrity runs a data integrity scan on the datastore attempts to fix any issues it can and returns any found issues

Runs a data integrity scan on the datastore, attempts to fix any issues it can, and returns any found issues. Requires admin access. Only once instance may run at a time, including runs of checkDataIntegrity.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CheckDataIntegrity(params *CheckDataIntegrityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CheckDataIntegrityAccepted, error)

	CreateDatabaseSnapshot(params *CreateDatabaseSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDatabaseSnapshotOK, error)

	DataIntegrityResults(params *DataIntegrityResultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DataIntegrityResultsOK, error)

	FixDataIntegrity(params *FixDataIntegrityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FixDataIntegrityAccepted, 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 database API client.

type CreateDatabaseSnapshotOK

type CreateDatabaseSnapshotOK struct {
	Payload *rest_model.Empty
}
CreateDatabaseSnapshotOK describes a response with status code 200, with default header values.

Base empty response

func NewCreateDatabaseSnapshotOK

func NewCreateDatabaseSnapshotOK() *CreateDatabaseSnapshotOK

NewCreateDatabaseSnapshotOK creates a CreateDatabaseSnapshotOK with default headers values

func (*CreateDatabaseSnapshotOK) Error

func (o *CreateDatabaseSnapshotOK) Error() string

func (*CreateDatabaseSnapshotOK) GetPayload

func (o *CreateDatabaseSnapshotOK) GetPayload() *rest_model.Empty

type CreateDatabaseSnapshotParams

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

CreateDatabaseSnapshotParams contains all the parameters to send to the API endpoint

for the create database snapshot operation.

Typically these are written to a http.Request.

func NewCreateDatabaseSnapshotParams

func NewCreateDatabaseSnapshotParams() *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParams creates a new CreateDatabaseSnapshotParams 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 NewCreateDatabaseSnapshotParamsWithContext

func NewCreateDatabaseSnapshotParamsWithContext(ctx context.Context) *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParamsWithContext creates a new CreateDatabaseSnapshotParams object with the ability to set a context for a request.

func NewCreateDatabaseSnapshotParamsWithHTTPClient

func NewCreateDatabaseSnapshotParamsWithHTTPClient(client *http.Client) *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParamsWithHTTPClient creates a new CreateDatabaseSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDatabaseSnapshotParamsWithTimeout

func NewCreateDatabaseSnapshotParamsWithTimeout(timeout time.Duration) *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParamsWithTimeout creates a new CreateDatabaseSnapshotParams object with the ability to set a timeout on a request.

func (*CreateDatabaseSnapshotParams) SetContext

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

SetContext adds the context to the create database snapshot params

func (*CreateDatabaseSnapshotParams) SetDefaults

func (o *CreateDatabaseSnapshotParams) SetDefaults()

SetDefaults hydrates default values in the create database snapshot params (not the query body).

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

func (*CreateDatabaseSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create database snapshot params

func (*CreateDatabaseSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WithContext

WithContext adds the context to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WithDefaults

WithDefaults hydrates default values in the create database snapshot params (not the query body).

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

func (*CreateDatabaseSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WithTimeout

WithTimeout adds the timeout to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDatabaseSnapshotReader

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

CreateDatabaseSnapshotReader is a Reader for the CreateDatabaseSnapshot structure.

func (*CreateDatabaseSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDatabaseSnapshotTooManyRequests

type CreateDatabaseSnapshotTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateDatabaseSnapshotTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewCreateDatabaseSnapshotTooManyRequests

func NewCreateDatabaseSnapshotTooManyRequests() *CreateDatabaseSnapshotTooManyRequests

NewCreateDatabaseSnapshotTooManyRequests creates a CreateDatabaseSnapshotTooManyRequests with default headers values

func (*CreateDatabaseSnapshotTooManyRequests) Error

func (*CreateDatabaseSnapshotTooManyRequests) GetPayload

type CreateDatabaseSnapshotUnauthorized

type CreateDatabaseSnapshotUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateDatabaseSnapshotUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewCreateDatabaseSnapshotUnauthorized

func NewCreateDatabaseSnapshotUnauthorized() *CreateDatabaseSnapshotUnauthorized

NewCreateDatabaseSnapshotUnauthorized creates a CreateDatabaseSnapshotUnauthorized with default headers values

func (*CreateDatabaseSnapshotUnauthorized) Error

func (*CreateDatabaseSnapshotUnauthorized) GetPayload

type DataIntegrityResultsOK

type DataIntegrityResultsOK struct {
	Payload *rest_model.DataIntegrityCheckResultEnvelope
}
DataIntegrityResultsOK describes a response with status code 200, with default header values.

A list of data integrity issues found

func NewDataIntegrityResultsOK

func NewDataIntegrityResultsOK() *DataIntegrityResultsOK

NewDataIntegrityResultsOK creates a DataIntegrityResultsOK with default headers values

func (*DataIntegrityResultsOK) Error

func (o *DataIntegrityResultsOK) Error() string

func (*DataIntegrityResultsOK) GetPayload

type DataIntegrityResultsParams

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

DataIntegrityResultsParams contains all the parameters to send to the API endpoint

for the data integrity results operation.

Typically these are written to a http.Request.

func NewDataIntegrityResultsParams

func NewDataIntegrityResultsParams() *DataIntegrityResultsParams

NewDataIntegrityResultsParams creates a new DataIntegrityResultsParams 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 NewDataIntegrityResultsParamsWithContext

func NewDataIntegrityResultsParamsWithContext(ctx context.Context) *DataIntegrityResultsParams

NewDataIntegrityResultsParamsWithContext creates a new DataIntegrityResultsParams object with the ability to set a context for a request.

func NewDataIntegrityResultsParamsWithHTTPClient

func NewDataIntegrityResultsParamsWithHTTPClient(client *http.Client) *DataIntegrityResultsParams

NewDataIntegrityResultsParamsWithHTTPClient creates a new DataIntegrityResultsParams object with the ability to set a custom HTTPClient for a request.

func NewDataIntegrityResultsParamsWithTimeout

func NewDataIntegrityResultsParamsWithTimeout(timeout time.Duration) *DataIntegrityResultsParams

NewDataIntegrityResultsParamsWithTimeout creates a new DataIntegrityResultsParams object with the ability to set a timeout on a request.

func (*DataIntegrityResultsParams) SetContext

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

SetContext adds the context to the data integrity results params

func (*DataIntegrityResultsParams) SetDefaults

func (o *DataIntegrityResultsParams) SetDefaults()

SetDefaults hydrates default values in the data integrity results params (not the query body).

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

func (*DataIntegrityResultsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the data integrity results params

func (*DataIntegrityResultsParams) SetTimeout

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

SetTimeout adds the timeout to the data integrity results params

func (*DataIntegrityResultsParams) WithContext

WithContext adds the context to the data integrity results params

func (*DataIntegrityResultsParams) WithDefaults

WithDefaults hydrates default values in the data integrity results params (not the query body).

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

func (*DataIntegrityResultsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the data integrity results params

func (*DataIntegrityResultsParams) WithTimeout

WithTimeout adds the timeout to the data integrity results params

func (*DataIntegrityResultsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DataIntegrityResultsReader

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

DataIntegrityResultsReader is a Reader for the DataIntegrityResults structure.

func (*DataIntegrityResultsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DataIntegrityResultsUnauthorized

type DataIntegrityResultsUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DataIntegrityResultsUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDataIntegrityResultsUnauthorized

func NewDataIntegrityResultsUnauthorized() *DataIntegrityResultsUnauthorized

NewDataIntegrityResultsUnauthorized creates a DataIntegrityResultsUnauthorized with default headers values

func (*DataIntegrityResultsUnauthorized) Error

func (*DataIntegrityResultsUnauthorized) GetPayload

type FixDataIntegrityAccepted

type FixDataIntegrityAccepted struct {
	Payload *rest_model.Empty
}
FixDataIntegrityAccepted describes a response with status code 202, with default header values.

Base empty response

func NewFixDataIntegrityAccepted

func NewFixDataIntegrityAccepted() *FixDataIntegrityAccepted

NewFixDataIntegrityAccepted creates a FixDataIntegrityAccepted with default headers values

func (*FixDataIntegrityAccepted) Error

func (o *FixDataIntegrityAccepted) Error() string

func (*FixDataIntegrityAccepted) GetPayload

func (o *FixDataIntegrityAccepted) GetPayload() *rest_model.Empty

type FixDataIntegrityParams

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

FixDataIntegrityParams contains all the parameters to send to the API endpoint

for the fix data integrity operation.

Typically these are written to a http.Request.

func NewFixDataIntegrityParams

func NewFixDataIntegrityParams() *FixDataIntegrityParams

NewFixDataIntegrityParams creates a new FixDataIntegrityParams 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 NewFixDataIntegrityParamsWithContext

func NewFixDataIntegrityParamsWithContext(ctx context.Context) *FixDataIntegrityParams

NewFixDataIntegrityParamsWithContext creates a new FixDataIntegrityParams object with the ability to set a context for a request.

func NewFixDataIntegrityParamsWithHTTPClient

func NewFixDataIntegrityParamsWithHTTPClient(client *http.Client) *FixDataIntegrityParams

NewFixDataIntegrityParamsWithHTTPClient creates a new FixDataIntegrityParams object with the ability to set a custom HTTPClient for a request.

func NewFixDataIntegrityParamsWithTimeout

func NewFixDataIntegrityParamsWithTimeout(timeout time.Duration) *FixDataIntegrityParams

NewFixDataIntegrityParamsWithTimeout creates a new FixDataIntegrityParams object with the ability to set a timeout on a request.

func (*FixDataIntegrityParams) SetContext

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

SetContext adds the context to the fix data integrity params

func (*FixDataIntegrityParams) SetDefaults

func (o *FixDataIntegrityParams) SetDefaults()

SetDefaults hydrates default values in the fix data integrity params (not the query body).

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

func (*FixDataIntegrityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fix data integrity params

func (*FixDataIntegrityParams) SetTimeout

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

SetTimeout adds the timeout to the fix data integrity params

func (*FixDataIntegrityParams) WithContext

WithContext adds the context to the fix data integrity params

func (*FixDataIntegrityParams) WithDefaults

WithDefaults hydrates default values in the fix data integrity params (not the query body).

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

func (*FixDataIntegrityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the fix data integrity params

func (*FixDataIntegrityParams) WithTimeout

WithTimeout adds the timeout to the fix data integrity params

func (*FixDataIntegrityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type FixDataIntegrityReader

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

FixDataIntegrityReader is a Reader for the FixDataIntegrity structure.

func (*FixDataIntegrityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FixDataIntegrityTooManyRequests

type FixDataIntegrityTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
FixDataIntegrityTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewFixDataIntegrityTooManyRequests

func NewFixDataIntegrityTooManyRequests() *FixDataIntegrityTooManyRequests

NewFixDataIntegrityTooManyRequests creates a FixDataIntegrityTooManyRequests with default headers values

func (*FixDataIntegrityTooManyRequests) Error

func (*FixDataIntegrityTooManyRequests) GetPayload

type FixDataIntegrityUnauthorized

type FixDataIntegrityUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
FixDataIntegrityUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewFixDataIntegrityUnauthorized

func NewFixDataIntegrityUnauthorized() *FixDataIntegrityUnauthorized

NewFixDataIntegrityUnauthorized creates a FixDataIntegrityUnauthorized with default headers values

func (*FixDataIntegrityUnauthorized) Error

func (*FixDataIntegrityUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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