db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for db API

func (*Client) CreateNewDatabase

func (a *Client) CreateNewDatabase(params *CreateNewDatabaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNewDatabaseCreated, error)

CreateNewDatabase creates database

Add a new database to the server, optionally with RDF bulk-loaded

func (*Client) DropDatabase

func (a *Client) DropDatabase(params *DropDatabaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DropDatabaseOK, error)

DropDatabase drops database

Delete the database

func (*Client) GetDBSize

func (a *Client) GetDBSize(params *GetDBSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDBSizeOK, error)

GetDBSize gets d b size

Retrieve the size of the db. Size is approximate unless the exact parameter is set to true

func (*Client) ListDatabases

func (a *Client) ListDatabases(params *ListDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDatabasesOK, error)

ListDatabases lists databases

List all the databases in the server

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 {
	CreateNewDatabase(params *CreateNewDatabaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNewDatabaseCreated, error)

	DropDatabase(params *DropDatabaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DropDatabaseOK, error)

	GetDBSize(params *GetDBSizeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDBSizeOK, error)

	ListDatabases(params *ListDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDatabasesOK, 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 db API client.

type CreateNewDatabaseBadRequest

type CreateNewDatabaseBadRequest struct {
}

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

Invalid or malformed request body

func NewCreateNewDatabaseBadRequest

func NewCreateNewDatabaseBadRequest() *CreateNewDatabaseBadRequest

NewCreateNewDatabaseBadRequest creates a CreateNewDatabaseBadRequest with default headers values

func (*CreateNewDatabaseBadRequest) Code

func (o *CreateNewDatabaseBadRequest) Code() int

Code gets the status code for the create new database bad request response

func (*CreateNewDatabaseBadRequest) Error

func (*CreateNewDatabaseBadRequest) IsClientError

func (o *CreateNewDatabaseBadRequest) IsClientError() bool

IsClientError returns true when this create new database bad request response has a 4xx status code

func (*CreateNewDatabaseBadRequest) IsCode

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

IsCode returns true when this create new database bad request response a status code equal to that given

func (*CreateNewDatabaseBadRequest) IsRedirect

func (o *CreateNewDatabaseBadRequest) IsRedirect() bool

IsRedirect returns true when this create new database bad request response has a 3xx status code

func (*CreateNewDatabaseBadRequest) IsServerError

func (o *CreateNewDatabaseBadRequest) IsServerError() bool

IsServerError returns true when this create new database bad request response has a 5xx status code

func (*CreateNewDatabaseBadRequest) IsSuccess

func (o *CreateNewDatabaseBadRequest) IsSuccess() bool

IsSuccess returns true when this create new database bad request response has a 2xx status code

func (*CreateNewDatabaseBadRequest) String

func (o *CreateNewDatabaseBadRequest) String() string

type CreateNewDatabaseCreated

type CreateNewDatabaseCreated struct {
}

CreateNewDatabaseCreated describes a response with status code 201, with default header values.

Database created

func NewCreateNewDatabaseCreated

func NewCreateNewDatabaseCreated() *CreateNewDatabaseCreated

NewCreateNewDatabaseCreated creates a CreateNewDatabaseCreated with default headers values

func (*CreateNewDatabaseCreated) Code

func (o *CreateNewDatabaseCreated) Code() int

Code gets the status code for the create new database created response

func (*CreateNewDatabaseCreated) Error

func (o *CreateNewDatabaseCreated) Error() string

func (*CreateNewDatabaseCreated) IsClientError

func (o *CreateNewDatabaseCreated) IsClientError() bool

IsClientError returns true when this create new database created response has a 4xx status code

func (*CreateNewDatabaseCreated) IsCode

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

IsCode returns true when this create new database created response a status code equal to that given

func (*CreateNewDatabaseCreated) IsRedirect

func (o *CreateNewDatabaseCreated) IsRedirect() bool

IsRedirect returns true when this create new database created response has a 3xx status code

func (*CreateNewDatabaseCreated) IsServerError

func (o *CreateNewDatabaseCreated) IsServerError() bool

IsServerError returns true when this create new database created response has a 5xx status code

func (*CreateNewDatabaseCreated) IsSuccess

func (o *CreateNewDatabaseCreated) IsSuccess() bool

IsSuccess returns true when this create new database created response has a 2xx status code

func (*CreateNewDatabaseCreated) String

func (o *CreateNewDatabaseCreated) String() string

type CreateNewDatabaseParams

type CreateNewDatabaseParams struct {

	/* Root.

	   The database to create.
	*/
	Root string

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

CreateNewDatabaseParams contains all the parameters to send to the API endpoint

for the create new database operation.

Typically these are written to a http.Request.

func NewCreateNewDatabaseParams

func NewCreateNewDatabaseParams() *CreateNewDatabaseParams

NewCreateNewDatabaseParams creates a new CreateNewDatabaseParams 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 NewCreateNewDatabaseParamsWithContext

func NewCreateNewDatabaseParamsWithContext(ctx context.Context) *CreateNewDatabaseParams

NewCreateNewDatabaseParamsWithContext creates a new CreateNewDatabaseParams object with the ability to set a context for a request.

func NewCreateNewDatabaseParamsWithHTTPClient

func NewCreateNewDatabaseParamsWithHTTPClient(client *http.Client) *CreateNewDatabaseParams

NewCreateNewDatabaseParamsWithHTTPClient creates a new CreateNewDatabaseParams object with the ability to set a custom HTTPClient for a request.

func NewCreateNewDatabaseParamsWithTimeout

func NewCreateNewDatabaseParamsWithTimeout(timeout time.Duration) *CreateNewDatabaseParams

NewCreateNewDatabaseParamsWithTimeout creates a new CreateNewDatabaseParams object with the ability to set a timeout on a request.

func (*CreateNewDatabaseParams) SetContext

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

SetContext adds the context to the create new database params

func (*CreateNewDatabaseParams) SetDefaults

func (o *CreateNewDatabaseParams) SetDefaults()

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

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

func (*CreateNewDatabaseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create new database params

func (*CreateNewDatabaseParams) SetRoot

func (o *CreateNewDatabaseParams) SetRoot(root string)

SetRoot adds the root to the create new database params

func (*CreateNewDatabaseParams) SetTimeout

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

SetTimeout adds the timeout to the create new database params

func (*CreateNewDatabaseParams) WithContext

WithContext adds the context to the create new database params

func (*CreateNewDatabaseParams) WithDefaults

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

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

func (*CreateNewDatabaseParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create new database params

func (*CreateNewDatabaseParams) WithRoot

WithRoot adds the root to the create new database params

func (*CreateNewDatabaseParams) WithTimeout

WithTimeout adds the timeout to the create new database params

func (*CreateNewDatabaseParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateNewDatabaseReader

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

CreateNewDatabaseReader is a Reader for the CreateNewDatabase structure.

func (*CreateNewDatabaseReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DropDatabaseDefault

type DropDatabaseDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DropDatabaseDefault describes a response with status code -1, with default header values.

unexpected error

func NewDropDatabaseDefault

func NewDropDatabaseDefault(code int) *DropDatabaseDefault

NewDropDatabaseDefault creates a DropDatabaseDefault with default headers values

func (*DropDatabaseDefault) Code

func (o *DropDatabaseDefault) Code() int

Code gets the status code for the drop database default response

func (*DropDatabaseDefault) Error

func (o *DropDatabaseDefault) Error() string

func (*DropDatabaseDefault) GetPayload

func (o *DropDatabaseDefault) GetPayload() *models.Error

func (*DropDatabaseDefault) IsClientError

func (o *DropDatabaseDefault) IsClientError() bool

IsClientError returns true when this drop database default response has a 4xx status code

func (*DropDatabaseDefault) IsCode

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

IsCode returns true when this drop database default response a status code equal to that given

func (*DropDatabaseDefault) IsRedirect

func (o *DropDatabaseDefault) IsRedirect() bool

IsRedirect returns true when this drop database default response has a 3xx status code

func (*DropDatabaseDefault) IsServerError

func (o *DropDatabaseDefault) IsServerError() bool

IsServerError returns true when this drop database default response has a 5xx status code

func (*DropDatabaseDefault) IsSuccess

func (o *DropDatabaseDefault) IsSuccess() bool

IsSuccess returns true when this drop database default response has a 2xx status code

func (*DropDatabaseDefault) String

func (o *DropDatabaseDefault) String() string

type DropDatabaseNotFound

type DropDatabaseNotFound struct {
	Payload *models.NotExists
}

DropDatabaseNotFound describes a response with status code 404, with default header values.

Database does not exist

func NewDropDatabaseNotFound

func NewDropDatabaseNotFound() *DropDatabaseNotFound

NewDropDatabaseNotFound creates a DropDatabaseNotFound with default headers values

func (*DropDatabaseNotFound) Code

func (o *DropDatabaseNotFound) Code() int

Code gets the status code for the drop database not found response

func (*DropDatabaseNotFound) Error

func (o *DropDatabaseNotFound) Error() string

func (*DropDatabaseNotFound) GetPayload

func (o *DropDatabaseNotFound) GetPayload() *models.NotExists

func (*DropDatabaseNotFound) IsClientError

func (o *DropDatabaseNotFound) IsClientError() bool

IsClientError returns true when this drop database not found response has a 4xx status code

func (*DropDatabaseNotFound) IsCode

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

IsCode returns true when this drop database not found response a status code equal to that given

func (*DropDatabaseNotFound) IsRedirect

func (o *DropDatabaseNotFound) IsRedirect() bool

IsRedirect returns true when this drop database not found response has a 3xx status code

func (*DropDatabaseNotFound) IsServerError

func (o *DropDatabaseNotFound) IsServerError() bool

IsServerError returns true when this drop database not found response has a 5xx status code

func (*DropDatabaseNotFound) IsSuccess

func (o *DropDatabaseNotFound) IsSuccess() bool

IsSuccess returns true when this drop database not found response has a 2xx status code

func (*DropDatabaseNotFound) String

func (o *DropDatabaseNotFound) String() string

type DropDatabaseOK

type DropDatabaseOK struct {
	Payload *models.Generic
}

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

A dict containing an array of usernames

func NewDropDatabaseOK

func NewDropDatabaseOK() *DropDatabaseOK

NewDropDatabaseOK creates a DropDatabaseOK with default headers values

func (*DropDatabaseOK) Code

func (o *DropDatabaseOK) Code() int

Code gets the status code for the drop database o k response

func (*DropDatabaseOK) Error

func (o *DropDatabaseOK) Error() string

func (*DropDatabaseOK) GetPayload

func (o *DropDatabaseOK) GetPayload() *models.Generic

func (*DropDatabaseOK) IsClientError

func (o *DropDatabaseOK) IsClientError() bool

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

func (*DropDatabaseOK) IsCode

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

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

func (*DropDatabaseOK) IsRedirect

func (o *DropDatabaseOK) IsRedirect() bool

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

func (*DropDatabaseOK) IsServerError

func (o *DropDatabaseOK) IsServerError() bool

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

func (*DropDatabaseOK) IsSuccess

func (o *DropDatabaseOK) IsSuccess() bool

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

func (*DropDatabaseOK) String

func (o *DropDatabaseOK) String() string

type DropDatabaseParams

type DropDatabaseParams struct {

	/* Db.

	   Database name
	*/
	Db string

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

DropDatabaseParams contains all the parameters to send to the API endpoint

for the drop database operation.

Typically these are written to a http.Request.

func NewDropDatabaseParams

func NewDropDatabaseParams() *DropDatabaseParams

NewDropDatabaseParams creates a new DropDatabaseParams 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 NewDropDatabaseParamsWithContext

func NewDropDatabaseParamsWithContext(ctx context.Context) *DropDatabaseParams

NewDropDatabaseParamsWithContext creates a new DropDatabaseParams object with the ability to set a context for a request.

func NewDropDatabaseParamsWithHTTPClient

func NewDropDatabaseParamsWithHTTPClient(client *http.Client) *DropDatabaseParams

NewDropDatabaseParamsWithHTTPClient creates a new DropDatabaseParams object with the ability to set a custom HTTPClient for a request.

func NewDropDatabaseParamsWithTimeout

func NewDropDatabaseParamsWithTimeout(timeout time.Duration) *DropDatabaseParams

NewDropDatabaseParamsWithTimeout creates a new DropDatabaseParams object with the ability to set a timeout on a request.

func (*DropDatabaseParams) SetContext

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

SetContext adds the context to the drop database params

func (*DropDatabaseParams) SetDb

func (o *DropDatabaseParams) SetDb(db string)

SetDb adds the db to the drop database params

func (*DropDatabaseParams) SetDefaults

func (o *DropDatabaseParams) SetDefaults()

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

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

func (*DropDatabaseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the drop database params

func (*DropDatabaseParams) SetTimeout

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

SetTimeout adds the timeout to the drop database params

func (*DropDatabaseParams) WithContext

WithContext adds the context to the drop database params

func (*DropDatabaseParams) WithDb

WithDb adds the db to the drop database params

func (*DropDatabaseParams) WithDefaults

func (o *DropDatabaseParams) WithDefaults() *DropDatabaseParams

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

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

func (*DropDatabaseParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the drop database params

func (*DropDatabaseParams) WithTimeout

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

WithTimeout adds the timeout to the drop database params

func (*DropDatabaseParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DropDatabaseReader

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

DropDatabaseReader is a Reader for the DropDatabase structure.

func (*DropDatabaseReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDBSizeNotFound

type GetDBSizeNotFound struct {
	Payload *models.NotExists
}

GetDBSizeNotFound describes a response with status code 404, with default header values.

Database does not exist

func NewGetDBSizeNotFound

func NewGetDBSizeNotFound() *GetDBSizeNotFound

NewGetDBSizeNotFound creates a GetDBSizeNotFound with default headers values

func (*GetDBSizeNotFound) Code

func (o *GetDBSizeNotFound) Code() int

Code gets the status code for the get d b size not found response

func (*GetDBSizeNotFound) Error

func (o *GetDBSizeNotFound) Error() string

func (*GetDBSizeNotFound) GetPayload

func (o *GetDBSizeNotFound) GetPayload() *models.NotExists

func (*GetDBSizeNotFound) IsClientError

func (o *GetDBSizeNotFound) IsClientError() bool

IsClientError returns true when this get d b size not found response has a 4xx status code

func (*GetDBSizeNotFound) IsCode

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

IsCode returns true when this get d b size not found response a status code equal to that given

func (*GetDBSizeNotFound) IsRedirect

func (o *GetDBSizeNotFound) IsRedirect() bool

IsRedirect returns true when this get d b size not found response has a 3xx status code

func (*GetDBSizeNotFound) IsServerError

func (o *GetDBSizeNotFound) IsServerError() bool

IsServerError returns true when this get d b size not found response has a 5xx status code

func (*GetDBSizeNotFound) IsSuccess

func (o *GetDBSizeNotFound) IsSuccess() bool

IsSuccess returns true when this get d b size not found response has a 2xx status code

func (*GetDBSizeNotFound) String

func (o *GetDBSizeNotFound) String() string

type GetDBSizeOK

type GetDBSizeOK struct {
	Payload string
}

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

The size (in triples) of the database

func NewGetDBSizeOK

func NewGetDBSizeOK() *GetDBSizeOK

NewGetDBSizeOK creates a GetDBSizeOK with default headers values

func (*GetDBSizeOK) Code

func (o *GetDBSizeOK) Code() int

Code gets the status code for the get d b size o k response

func (*GetDBSizeOK) Error

func (o *GetDBSizeOK) Error() string

func (*GetDBSizeOK) GetPayload

func (o *GetDBSizeOK) GetPayload() string

func (*GetDBSizeOK) IsClientError

func (o *GetDBSizeOK) IsClientError() bool

IsClientError returns true when this get d b size o k response has a 4xx status code

func (*GetDBSizeOK) IsCode

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

IsCode returns true when this get d b size o k response a status code equal to that given

func (*GetDBSizeOK) IsRedirect

func (o *GetDBSizeOK) IsRedirect() bool

IsRedirect returns true when this get d b size o k response has a 3xx status code

func (*GetDBSizeOK) IsServerError

func (o *GetDBSizeOK) IsServerError() bool

IsServerError returns true when this get d b size o k response has a 5xx status code

func (*GetDBSizeOK) IsSuccess

func (o *GetDBSizeOK) IsSuccess() bool

IsSuccess returns true when this get d b size o k response has a 2xx status code

func (*GetDBSizeOK) String

func (o *GetDBSizeOK) String() string

type GetDBSizeParams

type GetDBSizeParams struct {

	/* Db.

	   Database name
	*/
	Db string

	/* Exact.

	   Whether to request that the database size be exact instead of approximate
	*/
	Exact *bool

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

GetDBSizeParams contains all the parameters to send to the API endpoint

for the get d b size operation.

Typically these are written to a http.Request.

func NewGetDBSizeParams

func NewGetDBSizeParams() *GetDBSizeParams

NewGetDBSizeParams creates a new GetDBSizeParams 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 NewGetDBSizeParamsWithContext

func NewGetDBSizeParamsWithContext(ctx context.Context) *GetDBSizeParams

NewGetDBSizeParamsWithContext creates a new GetDBSizeParams object with the ability to set a context for a request.

func NewGetDBSizeParamsWithHTTPClient

func NewGetDBSizeParamsWithHTTPClient(client *http.Client) *GetDBSizeParams

NewGetDBSizeParamsWithHTTPClient creates a new GetDBSizeParams object with the ability to set a custom HTTPClient for a request.

func NewGetDBSizeParamsWithTimeout

func NewGetDBSizeParamsWithTimeout(timeout time.Duration) *GetDBSizeParams

NewGetDBSizeParamsWithTimeout creates a new GetDBSizeParams object with the ability to set a timeout on a request.

func (*GetDBSizeParams) SetContext

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

SetContext adds the context to the get d b size params

func (*GetDBSizeParams) SetDb

func (o *GetDBSizeParams) SetDb(db string)

SetDb adds the db to the get d b size params

func (*GetDBSizeParams) SetDefaults

func (o *GetDBSizeParams) SetDefaults()

SetDefaults hydrates default values in the get d b size params (not the query body).

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

func (*GetDBSizeParams) SetExact

func (o *GetDBSizeParams) SetExact(exact *bool)

SetExact adds the exact to the get d b size params

func (*GetDBSizeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get d b size params

func (*GetDBSizeParams) SetTimeout

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

SetTimeout adds the timeout to the get d b size params

func (*GetDBSizeParams) WithContext

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

WithContext adds the context to the get d b size params

func (*GetDBSizeParams) WithDb

func (o *GetDBSizeParams) WithDb(db string) *GetDBSizeParams

WithDb adds the db to the get d b size params

func (*GetDBSizeParams) WithDefaults

func (o *GetDBSizeParams) WithDefaults() *GetDBSizeParams

WithDefaults hydrates default values in the get d b size params (not the query body).

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

func (*GetDBSizeParams) WithExact

func (o *GetDBSizeParams) WithExact(exact *bool) *GetDBSizeParams

WithExact adds the exact to the get d b size params

func (*GetDBSizeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get d b size params

func (*GetDBSizeParams) WithTimeout

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

WithTimeout adds the timeout to the get d b size params

func (*GetDBSizeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDBSizeReader

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

GetDBSizeReader is a Reader for the GetDBSize structure.

func (*GetDBSizeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDatabasesOK

type ListDatabasesOK struct {
	Payload *models.Databases
}

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

Operation successful

func NewListDatabasesOK

func NewListDatabasesOK() *ListDatabasesOK

NewListDatabasesOK creates a ListDatabasesOK with default headers values

func (*ListDatabasesOK) Code

func (o *ListDatabasesOK) Code() int

Code gets the status code for the list databases o k response

func (*ListDatabasesOK) Error

func (o *ListDatabasesOK) Error() string

func (*ListDatabasesOK) GetPayload

func (o *ListDatabasesOK) GetPayload() *models.Databases

func (*ListDatabasesOK) IsClientError

func (o *ListDatabasesOK) IsClientError() bool

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

func (*ListDatabasesOK) IsCode

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

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

func (*ListDatabasesOK) IsRedirect

func (o *ListDatabasesOK) IsRedirect() bool

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

func (*ListDatabasesOK) IsServerError

func (o *ListDatabasesOK) IsServerError() bool

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

func (*ListDatabasesOK) IsSuccess

func (o *ListDatabasesOK) IsSuccess() bool

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

func (*ListDatabasesOK) String

func (o *ListDatabasesOK) String() string

type ListDatabasesParams

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

ListDatabasesParams contains all the parameters to send to the API endpoint

for the list databases operation.

Typically these are written to a http.Request.

func NewListDatabasesParams

func NewListDatabasesParams() *ListDatabasesParams

NewListDatabasesParams creates a new ListDatabasesParams 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 NewListDatabasesParamsWithContext

func NewListDatabasesParamsWithContext(ctx context.Context) *ListDatabasesParams

NewListDatabasesParamsWithContext creates a new ListDatabasesParams object with the ability to set a context for a request.

func NewListDatabasesParamsWithHTTPClient

func NewListDatabasesParamsWithHTTPClient(client *http.Client) *ListDatabasesParams

NewListDatabasesParamsWithHTTPClient creates a new ListDatabasesParams object with the ability to set a custom HTTPClient for a request.

func NewListDatabasesParamsWithTimeout

func NewListDatabasesParamsWithTimeout(timeout time.Duration) *ListDatabasesParams

NewListDatabasesParamsWithTimeout creates a new ListDatabasesParams object with the ability to set a timeout on a request.

func (*ListDatabasesParams) SetContext

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

SetContext adds the context to the list databases params

func (*ListDatabasesParams) SetDefaults

func (o *ListDatabasesParams) SetDefaults()

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

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

func (*ListDatabasesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list databases params

func (*ListDatabasesParams) SetTimeout

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

SetTimeout adds the timeout to the list databases params

func (*ListDatabasesParams) WithContext

WithContext adds the context to the list databases params

func (*ListDatabasesParams) WithDefaults

func (o *ListDatabasesParams) WithDefaults() *ListDatabasesParams

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

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

func (*ListDatabasesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list databases params

func (*ListDatabasesParams) WithTimeout

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

WithTimeout adds the timeout to the list databases params

func (*ListDatabasesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListDatabasesReader

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

ListDatabasesReader is a Reader for the ListDatabases structure.

func (*ListDatabasesReader) ReadResponse

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