database

package
v0.16.50 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CheckDataIntegrityOKCode int = 200

CheckDataIntegrityOKCode is the HTTP code returned for type CheckDataIntegrityOK

View Source
const CheckDataIntegrityUnauthorizedCode int = 401

CheckDataIntegrityUnauthorizedCode is the HTTP code returned for type CheckDataIntegrityUnauthorized

View Source
const CreateDatabaseSnapshotOKCode int = 200

CreateDatabaseSnapshotOKCode is the HTTP code returned for type CreateDatabaseSnapshotOK

View Source
const CreateDatabaseSnapshotTooManyRequestsCode int = 429

CreateDatabaseSnapshotTooManyRequestsCode is the HTTP code returned for type CreateDatabaseSnapshotTooManyRequests

View Source
const CreateDatabaseSnapshotUnauthorizedCode int = 401

CreateDatabaseSnapshotUnauthorizedCode is the HTTP code returned for type CreateDatabaseSnapshotUnauthorized

View Source
const FixDataIntegrityOKCode int = 200

FixDataIntegrityOKCode is the HTTP code returned for type FixDataIntegrityOK

View Source
const FixDataIntegrityUnauthorizedCode int = 401

FixDataIntegrityUnauthorizedCode is the HTTP code returned for type FixDataIntegrityUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckDataIntegrity added in v0.15.28

type CheckDataIntegrity struct {
	Context *middleware.Context
	Handler CheckDataIntegrityHandler
}

CheckDataIntegrity swagger:route GET /database/check-data-integrity Database checkDataIntegrity

Runs an data integrity scan on the datastore and returns any found issues

Runs an data integrity scan on the datastore and returns any found issues. Requires admin access.

func NewCheckDataIntegrity added in v0.15.28

func NewCheckDataIntegrity(ctx *middleware.Context, handler CheckDataIntegrityHandler) *CheckDataIntegrity

NewCheckDataIntegrity creates a new http.Handler for the check data integrity operation

func (*CheckDataIntegrity) ServeHTTP added in v0.15.28

func (o *CheckDataIntegrity) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CheckDataIntegrityHandler added in v0.15.28

type CheckDataIntegrityHandler interface {
	Handle(CheckDataIntegrityParams, interface{}) middleware.Responder
}

CheckDataIntegrityHandler interface for that can handle valid check data integrity params

type CheckDataIntegrityHandlerFunc added in v0.15.28

type CheckDataIntegrityHandlerFunc func(CheckDataIntegrityParams, interface{}) middleware.Responder

CheckDataIntegrityHandlerFunc turns a function with the right signature into a check data integrity handler

func (CheckDataIntegrityHandlerFunc) Handle added in v0.15.28

func (fn CheckDataIntegrityHandlerFunc) Handle(params CheckDataIntegrityParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CheckDataIntegrityOK added in v0.15.28

type CheckDataIntegrityOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.DataIntegrityCheckResultEnvelope `json:"body,omitempty"`
}

CheckDataIntegrityOK A list of data integrity issues found

swagger:response checkDataIntegrityOK

func NewCheckDataIntegrityOK added in v0.15.28

func NewCheckDataIntegrityOK() *CheckDataIntegrityOK

NewCheckDataIntegrityOK creates CheckDataIntegrityOK with default headers values

func (*CheckDataIntegrityOK) SetPayload added in v0.15.28

SetPayload sets the payload to the check data integrity o k response

func (*CheckDataIntegrityOK) WithPayload added in v0.15.28

WithPayload adds the payload to the check data integrity o k response

func (*CheckDataIntegrityOK) WriteResponse added in v0.15.28

func (o *CheckDataIntegrityOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CheckDataIntegrityParams added in v0.15.28

type CheckDataIntegrityParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

CheckDataIntegrityParams contains all the bound params for the check data integrity operation typically these are obtained from a http.Request

swagger:parameters checkDataIntegrity

func NewCheckDataIntegrityParams added in v0.15.28

func NewCheckDataIntegrityParams() CheckDataIntegrityParams

NewCheckDataIntegrityParams creates a new CheckDataIntegrityParams object no default values defined in spec.

func (*CheckDataIntegrityParams) BindRequest added in v0.15.28

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 NewCheckDataIntegrityParams() beforehand.

type CheckDataIntegrityURL added in v0.15.28

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

CheckDataIntegrityURL generates an URL for the check data integrity operation

func (*CheckDataIntegrityURL) Build added in v0.15.28

func (o *CheckDataIntegrityURL) Build() (*url.URL, error)

Build a url path and query string

func (*CheckDataIntegrityURL) BuildFull added in v0.15.28

func (o *CheckDataIntegrityURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CheckDataIntegrityURL) Must added in v0.15.28

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

Must is a helper function to panic when the url builder returns an error

func (*CheckDataIntegrityURL) SetBasePath added in v0.15.28

func (o *CheckDataIntegrityURL) 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 (*CheckDataIntegrityURL) String added in v0.15.28

func (o *CheckDataIntegrityURL) String() string

String returns the string representation of the path with query string

func (*CheckDataIntegrityURL) StringFull added in v0.15.28

func (o *CheckDataIntegrityURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CheckDataIntegrityURL) WithBasePath added in v0.15.28

func (o *CheckDataIntegrityURL) WithBasePath(bp string) *CheckDataIntegrityURL

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 CheckDataIntegrityUnauthorized added in v0.15.28

type CheckDataIntegrityUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response checkDataIntegrityUnauthorized

func NewCheckDataIntegrityUnauthorized added in v0.15.28

func NewCheckDataIntegrityUnauthorized() *CheckDataIntegrityUnauthorized

NewCheckDataIntegrityUnauthorized creates CheckDataIntegrityUnauthorized with default headers values

func (*CheckDataIntegrityUnauthorized) SetPayload added in v0.15.28

SetPayload sets the payload to the check data integrity unauthorized response

func (*CheckDataIntegrityUnauthorized) WithPayload added in v0.15.28

WithPayload adds the payload to the check data integrity unauthorized response

func (*CheckDataIntegrityUnauthorized) WriteResponse added in v0.15.28

func (o *CheckDataIntegrityUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateDatabaseSnapshot

type CreateDatabaseSnapshot struct {
	Context *middleware.Context
	Handler CreateDatabaseSnapshotHandler
}

CreateDatabaseSnapshot swagger:route POST /database/snapshot Database createDatabaseSnapshot

Create a new database snapshot

Create a new database snapshot. Requires admin access.

func NewCreateDatabaseSnapshot

func NewCreateDatabaseSnapshot(ctx *middleware.Context, handler CreateDatabaseSnapshotHandler) *CreateDatabaseSnapshot

NewCreateDatabaseSnapshot creates a new http.Handler for the create database snapshot operation

func (*CreateDatabaseSnapshot) ServeHTTP

func (o *CreateDatabaseSnapshot) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateDatabaseSnapshotHandler

type CreateDatabaseSnapshotHandler interface {
	Handle(CreateDatabaseSnapshotParams, interface{}) middleware.Responder
}

CreateDatabaseSnapshotHandler interface for that can handle valid create database snapshot params

type CreateDatabaseSnapshotHandlerFunc

type CreateDatabaseSnapshotHandlerFunc func(CreateDatabaseSnapshotParams, interface{}) middleware.Responder

CreateDatabaseSnapshotHandlerFunc turns a function with the right signature into a create database snapshot handler

func (CreateDatabaseSnapshotHandlerFunc) Handle

Handle executing the request and returning a response

type CreateDatabaseSnapshotOK

type CreateDatabaseSnapshotOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

CreateDatabaseSnapshotOK Base empty response

swagger:response createDatabaseSnapshotOK

func NewCreateDatabaseSnapshotOK

func NewCreateDatabaseSnapshotOK() *CreateDatabaseSnapshotOK

NewCreateDatabaseSnapshotOK creates CreateDatabaseSnapshotOK with default headers values

func (*CreateDatabaseSnapshotOK) SetPayload

func (o *CreateDatabaseSnapshotOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the create database snapshot o k response

func (*CreateDatabaseSnapshotOK) WithPayload

WithPayload adds the payload to the create database snapshot o k response

func (*CreateDatabaseSnapshotOK) WriteResponse

func (o *CreateDatabaseSnapshotOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateDatabaseSnapshotParams

type CreateDatabaseSnapshotParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

CreateDatabaseSnapshotParams contains all the bound params for the create database snapshot operation typically these are obtained from a http.Request

swagger:parameters createDatabaseSnapshot

func NewCreateDatabaseSnapshotParams

func NewCreateDatabaseSnapshotParams() CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParams creates a new CreateDatabaseSnapshotParams object no default values defined in spec.

func (*CreateDatabaseSnapshotParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateDatabaseSnapshotParams() beforehand.

type CreateDatabaseSnapshotTooManyRequests

type CreateDatabaseSnapshotTooManyRequests struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response createDatabaseSnapshotTooManyRequests

func NewCreateDatabaseSnapshotTooManyRequests

func NewCreateDatabaseSnapshotTooManyRequests() *CreateDatabaseSnapshotTooManyRequests

NewCreateDatabaseSnapshotTooManyRequests creates CreateDatabaseSnapshotTooManyRequests with default headers values

func (*CreateDatabaseSnapshotTooManyRequests) SetPayload

SetPayload sets the payload to the create database snapshot too many requests response

func (*CreateDatabaseSnapshotTooManyRequests) WithPayload

WithPayload adds the payload to the create database snapshot too many requests response

func (*CreateDatabaseSnapshotTooManyRequests) WriteResponse

WriteResponse to the client

type CreateDatabaseSnapshotURL

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

CreateDatabaseSnapshotURL generates an URL for the create database snapshot operation

func (*CreateDatabaseSnapshotURL) Build

func (o *CreateDatabaseSnapshotURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateDatabaseSnapshotURL) BuildFull

func (o *CreateDatabaseSnapshotURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateDatabaseSnapshotURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*CreateDatabaseSnapshotURL) SetBasePath

func (o *CreateDatabaseSnapshotURL) 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 (*CreateDatabaseSnapshotURL) String

func (o *CreateDatabaseSnapshotURL) String() string

String returns the string representation of the path with query string

func (*CreateDatabaseSnapshotURL) StringFull

func (o *CreateDatabaseSnapshotURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateDatabaseSnapshotURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateDatabaseSnapshotUnauthorized

type CreateDatabaseSnapshotUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response createDatabaseSnapshotUnauthorized

func NewCreateDatabaseSnapshotUnauthorized

func NewCreateDatabaseSnapshotUnauthorized() *CreateDatabaseSnapshotUnauthorized

NewCreateDatabaseSnapshotUnauthorized creates CreateDatabaseSnapshotUnauthorized with default headers values

func (*CreateDatabaseSnapshotUnauthorized) SetPayload

SetPayload sets the payload to the create database snapshot unauthorized response

func (*CreateDatabaseSnapshotUnauthorized) WithPayload

WithPayload adds the payload to the create database snapshot unauthorized response

func (*CreateDatabaseSnapshotUnauthorized) WriteResponse

WriteResponse to the client

type FixDataIntegrity added in v0.15.28

type FixDataIntegrity struct {
	Context *middleware.Context
	Handler FixDataIntegrityHandler
}

FixDataIntegrity swagger:route POST /database/fix-data-integrity Database fixDataIntegrity

Runs an data integrity scan on the datastore, attempts to fix any issues it can and returns any found issues

Runs an data integrity scan on the datastore, attempts to fix any issues it can, and returns any found issues. Requires admin access.

func NewFixDataIntegrity added in v0.15.28

func NewFixDataIntegrity(ctx *middleware.Context, handler FixDataIntegrityHandler) *FixDataIntegrity

NewFixDataIntegrity creates a new http.Handler for the fix data integrity operation

func (*FixDataIntegrity) ServeHTTP added in v0.15.28

func (o *FixDataIntegrity) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type FixDataIntegrityHandler added in v0.15.28

type FixDataIntegrityHandler interface {
	Handle(FixDataIntegrityParams, interface{}) middleware.Responder
}

FixDataIntegrityHandler interface for that can handle valid fix data integrity params

type FixDataIntegrityHandlerFunc added in v0.15.28

type FixDataIntegrityHandlerFunc func(FixDataIntegrityParams, interface{}) middleware.Responder

FixDataIntegrityHandlerFunc turns a function with the right signature into a fix data integrity handler

func (FixDataIntegrityHandlerFunc) Handle added in v0.15.28

func (fn FixDataIntegrityHandlerFunc) Handle(params FixDataIntegrityParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type FixDataIntegrityOK added in v0.15.28

type FixDataIntegrityOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.DataIntegrityCheckResultEnvelope `json:"body,omitempty"`
}

FixDataIntegrityOK A list of data integrity issues found

swagger:response fixDataIntegrityOK

func NewFixDataIntegrityOK added in v0.15.28

func NewFixDataIntegrityOK() *FixDataIntegrityOK

NewFixDataIntegrityOK creates FixDataIntegrityOK with default headers values

func (*FixDataIntegrityOK) SetPayload added in v0.15.28

SetPayload sets the payload to the fix data integrity o k response

func (*FixDataIntegrityOK) WithPayload added in v0.15.28

WithPayload adds the payload to the fix data integrity o k response

func (*FixDataIntegrityOK) WriteResponse added in v0.15.28

func (o *FixDataIntegrityOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FixDataIntegrityParams added in v0.15.28

type FixDataIntegrityParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

FixDataIntegrityParams contains all the bound params for the fix data integrity operation typically these are obtained from a http.Request

swagger:parameters fixDataIntegrity

func NewFixDataIntegrityParams added in v0.15.28

func NewFixDataIntegrityParams() FixDataIntegrityParams

NewFixDataIntegrityParams creates a new FixDataIntegrityParams object no default values defined in spec.

func (*FixDataIntegrityParams) BindRequest added in v0.15.28

func (o *FixDataIntegrityParams) 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 NewFixDataIntegrityParams() beforehand.

type FixDataIntegrityURL added in v0.15.28

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

FixDataIntegrityURL generates an URL for the fix data integrity operation

func (*FixDataIntegrityURL) Build added in v0.15.28

func (o *FixDataIntegrityURL) Build() (*url.URL, error)

Build a url path and query string

func (*FixDataIntegrityURL) BuildFull added in v0.15.28

func (o *FixDataIntegrityURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*FixDataIntegrityURL) Must added in v0.15.28

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

Must is a helper function to panic when the url builder returns an error

func (*FixDataIntegrityURL) SetBasePath added in v0.15.28

func (o *FixDataIntegrityURL) 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 (*FixDataIntegrityURL) String added in v0.15.28

func (o *FixDataIntegrityURL) String() string

String returns the string representation of the path with query string

func (*FixDataIntegrityURL) StringFull added in v0.15.28

func (o *FixDataIntegrityURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*FixDataIntegrityURL) WithBasePath added in v0.15.28

func (o *FixDataIntegrityURL) WithBasePath(bp string) *FixDataIntegrityURL

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 FixDataIntegrityUnauthorized added in v0.15.28

type FixDataIntegrityUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response fixDataIntegrityUnauthorized

func NewFixDataIntegrityUnauthorized added in v0.15.28

func NewFixDataIntegrityUnauthorized() *FixDataIntegrityUnauthorized

NewFixDataIntegrityUnauthorized creates FixDataIntegrityUnauthorized with default headers values

func (*FixDataIntegrityUnauthorized) SetPayload added in v0.15.28

SetPayload sets the payload to the fix data integrity unauthorized response

func (*FixDataIntegrityUnauthorized) WithPayload added in v0.15.28

WithPayload adds the payload to the fix data integrity unauthorized response

func (*FixDataIntegrityUnauthorized) WriteResponse added in v0.15.28

func (o *FixDataIntegrityUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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