statedb

package
v0.0.0-...-9514e8a Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 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 statedb API

func (*Client) GetStatedbDump

func (a *Client) GetStatedbDump(params *GetStatedbDumpParams, writer io.Writer, opts ...ClientOption) (*GetStatedbDumpOK, error)

GetStatedbDump dumps state d b contents

func (*Client) GetStatedbQueryTable

func (a *Client) GetStatedbQueryTable(params *GetStatedbQueryTableParams, writer io.Writer, opts ...ClientOption) (*GetStatedbQueryTableOK, error)

GetStatedbQueryTable performs a query against a state d b table

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 {
	GetStatedbDump(params *GetStatedbDumpParams, writer io.Writer, opts ...ClientOption) (*GetStatedbDumpOK, error)

	GetStatedbQueryTable(params *GetStatedbQueryTableParams, writer io.Writer, opts ...ClientOption) (*GetStatedbQueryTableOK, 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 statedb API client.

type GetStatedbDumpOK

type GetStatedbDumpOK struct {
	Payload io.Writer
}

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

Success

func NewGetStatedbDumpOK

func NewGetStatedbDumpOK(writer io.Writer) *GetStatedbDumpOK

NewGetStatedbDumpOK creates a GetStatedbDumpOK with default headers values

func (*GetStatedbDumpOK) Error

func (o *GetStatedbDumpOK) Error() string

func (*GetStatedbDumpOK) GetPayload

func (o *GetStatedbDumpOK) GetPayload() io.Writer

func (*GetStatedbDumpOK) IsClientError

func (o *GetStatedbDumpOK) IsClientError() bool

IsClientError returns true when this get statedb dump o k response has a 4xx status code

func (*GetStatedbDumpOK) IsCode

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

IsCode returns true when this get statedb dump o k response a status code equal to that given

func (*GetStatedbDumpOK) IsRedirect

func (o *GetStatedbDumpOK) IsRedirect() bool

IsRedirect returns true when this get statedb dump o k response has a 3xx status code

func (*GetStatedbDumpOK) IsServerError

func (o *GetStatedbDumpOK) IsServerError() bool

IsServerError returns true when this get statedb dump o k response has a 5xx status code

func (*GetStatedbDumpOK) IsSuccess

func (o *GetStatedbDumpOK) IsSuccess() bool

IsSuccess returns true when this get statedb dump o k response has a 2xx status code

func (*GetStatedbDumpOK) String

func (o *GetStatedbDumpOK) String() string

type GetStatedbDumpParams

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

GetStatedbDumpParams contains all the parameters to send to the API endpoint

for the get statedb dump operation.

Typically these are written to a http.Request.

func NewGetStatedbDumpParams

func NewGetStatedbDumpParams() *GetStatedbDumpParams

NewGetStatedbDumpParams creates a new GetStatedbDumpParams 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 NewGetStatedbDumpParamsWithContext

func NewGetStatedbDumpParamsWithContext(ctx context.Context) *GetStatedbDumpParams

NewGetStatedbDumpParamsWithContext creates a new GetStatedbDumpParams object with the ability to set a context for a request.

func NewGetStatedbDumpParamsWithHTTPClient

func NewGetStatedbDumpParamsWithHTTPClient(client *http.Client) *GetStatedbDumpParams

NewGetStatedbDumpParamsWithHTTPClient creates a new GetStatedbDumpParams object with the ability to set a custom HTTPClient for a request.

func NewGetStatedbDumpParamsWithTimeout

func NewGetStatedbDumpParamsWithTimeout(timeout time.Duration) *GetStatedbDumpParams

NewGetStatedbDumpParamsWithTimeout creates a new GetStatedbDumpParams object with the ability to set a timeout on a request.

func (*GetStatedbDumpParams) SetContext

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

SetContext adds the context to the get statedb dump params

func (*GetStatedbDumpParams) SetDefaults

func (o *GetStatedbDumpParams) SetDefaults()

SetDefaults hydrates default values in the get statedb dump params (not the query body).

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

func (*GetStatedbDumpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get statedb dump params

func (*GetStatedbDumpParams) SetTimeout

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

SetTimeout adds the timeout to the get statedb dump params

func (*GetStatedbDumpParams) WithContext

WithContext adds the context to the get statedb dump params

func (*GetStatedbDumpParams) WithDefaults

func (o *GetStatedbDumpParams) WithDefaults() *GetStatedbDumpParams

WithDefaults hydrates default values in the get statedb dump params (not the query body).

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

func (*GetStatedbDumpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get statedb dump params

func (*GetStatedbDumpParams) WithTimeout

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

WithTimeout adds the timeout to the get statedb dump params

func (*GetStatedbDumpParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStatedbDumpReader

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

GetStatedbDumpReader is a Reader for the GetStatedbDump structure.

func (*GetStatedbDumpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStatedbQueryTableBadRequest

type GetStatedbQueryTableBadRequest struct {
	Payload models.Error
}

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

Invalid parameters

func NewGetStatedbQueryTableBadRequest

func NewGetStatedbQueryTableBadRequest() *GetStatedbQueryTableBadRequest

NewGetStatedbQueryTableBadRequest creates a GetStatedbQueryTableBadRequest with default headers values

func (*GetStatedbQueryTableBadRequest) Error

func (*GetStatedbQueryTableBadRequest) GetPayload

func (*GetStatedbQueryTableBadRequest) IsClientError

func (o *GetStatedbQueryTableBadRequest) IsClientError() bool

IsClientError returns true when this get statedb query table bad request response has a 4xx status code

func (*GetStatedbQueryTableBadRequest) IsCode

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

IsCode returns true when this get statedb query table bad request response a status code equal to that given

func (*GetStatedbQueryTableBadRequest) IsRedirect

func (o *GetStatedbQueryTableBadRequest) IsRedirect() bool

IsRedirect returns true when this get statedb query table bad request response has a 3xx status code

func (*GetStatedbQueryTableBadRequest) IsServerError

func (o *GetStatedbQueryTableBadRequest) IsServerError() bool

IsServerError returns true when this get statedb query table bad request response has a 5xx status code

func (*GetStatedbQueryTableBadRequest) IsSuccess

func (o *GetStatedbQueryTableBadRequest) IsSuccess() bool

IsSuccess returns true when this get statedb query table bad request response has a 2xx status code

func (*GetStatedbQueryTableBadRequest) String

type GetStatedbQueryTableNotFound

type GetStatedbQueryTableNotFound struct {
}

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

Table or Index not found

func NewGetStatedbQueryTableNotFound

func NewGetStatedbQueryTableNotFound() *GetStatedbQueryTableNotFound

NewGetStatedbQueryTableNotFound creates a GetStatedbQueryTableNotFound with default headers values

func (*GetStatedbQueryTableNotFound) Error

func (*GetStatedbQueryTableNotFound) IsClientError

func (o *GetStatedbQueryTableNotFound) IsClientError() bool

IsClientError returns true when this get statedb query table not found response has a 4xx status code

func (*GetStatedbQueryTableNotFound) IsCode

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

IsCode returns true when this get statedb query table not found response a status code equal to that given

func (*GetStatedbQueryTableNotFound) IsRedirect

func (o *GetStatedbQueryTableNotFound) IsRedirect() bool

IsRedirect returns true when this get statedb query table not found response has a 3xx status code

func (*GetStatedbQueryTableNotFound) IsServerError

func (o *GetStatedbQueryTableNotFound) IsServerError() bool

IsServerError returns true when this get statedb query table not found response has a 5xx status code

func (*GetStatedbQueryTableNotFound) IsSuccess

func (o *GetStatedbQueryTableNotFound) IsSuccess() bool

IsSuccess returns true when this get statedb query table not found response has a 2xx status code

func (*GetStatedbQueryTableNotFound) String

type GetStatedbQueryTableOK

type GetStatedbQueryTableOK struct {
	Payload io.Writer
}

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

Success

func NewGetStatedbQueryTableOK

func NewGetStatedbQueryTableOK(writer io.Writer) *GetStatedbQueryTableOK

NewGetStatedbQueryTableOK creates a GetStatedbQueryTableOK with default headers values

func (*GetStatedbQueryTableOK) Error

func (o *GetStatedbQueryTableOK) Error() string

func (*GetStatedbQueryTableOK) GetPayload

func (o *GetStatedbQueryTableOK) GetPayload() io.Writer

func (*GetStatedbQueryTableOK) IsClientError

func (o *GetStatedbQueryTableOK) IsClientError() bool

IsClientError returns true when this get statedb query table o k response has a 4xx status code

func (*GetStatedbQueryTableOK) IsCode

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

IsCode returns true when this get statedb query table o k response a status code equal to that given

func (*GetStatedbQueryTableOK) IsRedirect

func (o *GetStatedbQueryTableOK) IsRedirect() bool

IsRedirect returns true when this get statedb query table o k response has a 3xx status code

func (*GetStatedbQueryTableOK) IsServerError

func (o *GetStatedbQueryTableOK) IsServerError() bool

IsServerError returns true when this get statedb query table o k response has a 5xx status code

func (*GetStatedbQueryTableOK) IsSuccess

func (o *GetStatedbQueryTableOK) IsSuccess() bool

IsSuccess returns true when this get statedb query table o k response has a 2xx status code

func (*GetStatedbQueryTableOK) String

func (o *GetStatedbQueryTableOK) String() string

type GetStatedbQueryTableParams

type GetStatedbQueryTableParams struct {

	/* Index.

	   StateDB index name
	*/
	Index string

	/* Key.

	   Query key (base64 encoded)
	*/
	Key string

	/* Lowerbound.

	   If true perform a LowerBound search
	*/
	Lowerbound bool

	/* Table.

	   StateDB table name
	*/
	Table string

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

GetStatedbQueryTableParams contains all the parameters to send to the API endpoint

for the get statedb query table operation.

Typically these are written to a http.Request.

func NewGetStatedbQueryTableParams

func NewGetStatedbQueryTableParams() *GetStatedbQueryTableParams

NewGetStatedbQueryTableParams creates a new GetStatedbQueryTableParams 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 NewGetStatedbQueryTableParamsWithContext

func NewGetStatedbQueryTableParamsWithContext(ctx context.Context) *GetStatedbQueryTableParams

NewGetStatedbQueryTableParamsWithContext creates a new GetStatedbQueryTableParams object with the ability to set a context for a request.

func NewGetStatedbQueryTableParamsWithHTTPClient

func NewGetStatedbQueryTableParamsWithHTTPClient(client *http.Client) *GetStatedbQueryTableParams

NewGetStatedbQueryTableParamsWithHTTPClient creates a new GetStatedbQueryTableParams object with the ability to set a custom HTTPClient for a request.

func NewGetStatedbQueryTableParamsWithTimeout

func NewGetStatedbQueryTableParamsWithTimeout(timeout time.Duration) *GetStatedbQueryTableParams

NewGetStatedbQueryTableParamsWithTimeout creates a new GetStatedbQueryTableParams object with the ability to set a timeout on a request.

func (*GetStatedbQueryTableParams) SetContext

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

SetContext adds the context to the get statedb query table params

func (*GetStatedbQueryTableParams) SetDefaults

func (o *GetStatedbQueryTableParams) SetDefaults()

SetDefaults hydrates default values in the get statedb query table params (not the query body).

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

func (*GetStatedbQueryTableParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get statedb query table params

func (*GetStatedbQueryTableParams) SetIndex

func (o *GetStatedbQueryTableParams) SetIndex(index string)

SetIndex adds the index to the get statedb query table params

func (*GetStatedbQueryTableParams) SetKey

func (o *GetStatedbQueryTableParams) SetKey(key string)

SetKey adds the key to the get statedb query table params

func (*GetStatedbQueryTableParams) SetLowerbound

func (o *GetStatedbQueryTableParams) SetLowerbound(lowerbound bool)

SetLowerbound adds the lowerbound to the get statedb query table params

func (*GetStatedbQueryTableParams) SetTable

func (o *GetStatedbQueryTableParams) SetTable(table string)

SetTable adds the table to the get statedb query table params

func (*GetStatedbQueryTableParams) SetTimeout

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

SetTimeout adds the timeout to the get statedb query table params

func (*GetStatedbQueryTableParams) WithContext

WithContext adds the context to the get statedb query table params

func (*GetStatedbQueryTableParams) WithDefaults

WithDefaults hydrates default values in the get statedb query table params (not the query body).

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

func (*GetStatedbQueryTableParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get statedb query table params

func (*GetStatedbQueryTableParams) WithIndex

WithIndex adds the index to the get statedb query table params

func (*GetStatedbQueryTableParams) WithKey

WithKey adds the key to the get statedb query table params

func (*GetStatedbQueryTableParams) WithLowerbound

func (o *GetStatedbQueryTableParams) WithLowerbound(lowerbound bool) *GetStatedbQueryTableParams

WithLowerbound adds the lowerbound to the get statedb query table params

func (*GetStatedbQueryTableParams) WithTable

WithTable adds the table to the get statedb query table params

func (*GetStatedbQueryTableParams) WithTimeout

WithTimeout adds the timeout to the get statedb query table params

func (*GetStatedbQueryTableParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetStatedbQueryTableReader

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

GetStatedbQueryTableReader is a Reader for the GetStatedbQueryTable structure.

func (*GetStatedbQueryTableReader) ReadResponse

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