statedb

package
v1.15.8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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 added in v1.15.0

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 added in v1.15.0

type GetStatedbQueryTableBadRequest struct {
	Payload models.Error
}

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

Invalid parameters

func NewGetStatedbQueryTableBadRequest added in v1.15.0

func NewGetStatedbQueryTableBadRequest() *GetStatedbQueryTableBadRequest

NewGetStatedbQueryTableBadRequest creates a GetStatedbQueryTableBadRequest with default headers values

func (*GetStatedbQueryTableBadRequest) Error added in v1.15.0

func (*GetStatedbQueryTableBadRequest) GetPayload added in v1.15.0

func (*GetStatedbQueryTableBadRequest) IsClientError added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

type GetStatedbQueryTableNotFound added in v1.15.0

type GetStatedbQueryTableNotFound struct {
}

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

Table or Index not found

func NewGetStatedbQueryTableNotFound added in v1.15.0

func NewGetStatedbQueryTableNotFound() *GetStatedbQueryTableNotFound

NewGetStatedbQueryTableNotFound creates a GetStatedbQueryTableNotFound with default headers values

func (*GetStatedbQueryTableNotFound) Error added in v1.15.0

func (*GetStatedbQueryTableNotFound) IsClientError added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

type GetStatedbQueryTableOK added in v1.15.0

type GetStatedbQueryTableOK struct {
	Payload io.Writer
}

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

Success

func NewGetStatedbQueryTableOK added in v1.15.0

func NewGetStatedbQueryTableOK(writer io.Writer) *GetStatedbQueryTableOK

NewGetStatedbQueryTableOK creates a GetStatedbQueryTableOK with default headers values

func (*GetStatedbQueryTableOK) Error added in v1.15.0

func (o *GetStatedbQueryTableOK) Error() string

func (*GetStatedbQueryTableOK) GetPayload added in v1.15.0

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

func (*GetStatedbQueryTableOK) IsClientError added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

func (o *GetStatedbQueryTableOK) String() string

type GetStatedbQueryTableParams added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

func NewGetStatedbQueryTableParamsWithContext(ctx context.Context) *GetStatedbQueryTableParams

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

func NewGetStatedbQueryTableParamsWithHTTPClient added in v1.15.0

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 added in v1.15.0

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 added in v1.15.0

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

SetContext adds the context to the get statedb query table params

func (*GetStatedbQueryTableParams) SetDefaults added in v1.15.0

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 added in v1.15.0

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

SetHTTPClient adds the HTTPClient to the get statedb query table params

func (*GetStatedbQueryTableParams) SetIndex added in v1.15.0

func (o *GetStatedbQueryTableParams) SetIndex(index string)

SetIndex adds the index to the get statedb query table params

func (*GetStatedbQueryTableParams) SetKey added in v1.15.0

func (o *GetStatedbQueryTableParams) SetKey(key string)

SetKey adds the key to the get statedb query table params

func (*GetStatedbQueryTableParams) SetLowerbound added in v1.15.0

func (o *GetStatedbQueryTableParams) SetLowerbound(lowerbound bool)

SetLowerbound adds the lowerbound to the get statedb query table params

func (*GetStatedbQueryTableParams) SetTable added in v1.15.0

func (o *GetStatedbQueryTableParams) SetTable(table string)

SetTable adds the table to the get statedb query table params

func (*GetStatedbQueryTableParams) SetTimeout added in v1.15.0

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

SetTimeout adds the timeout to the get statedb query table params

func (*GetStatedbQueryTableParams) WithContext added in v1.15.0

WithContext adds the context to the get statedb query table params

func (*GetStatedbQueryTableParams) WithDefaults added in v1.15.0

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 added in v1.15.0

WithHTTPClient adds the HTTPClient to the get statedb query table params

func (*GetStatedbQueryTableParams) WithIndex added in v1.15.0

WithIndex adds the index to the get statedb query table params

func (*GetStatedbQueryTableParams) WithKey added in v1.15.0

WithKey adds the key to the get statedb query table params

func (*GetStatedbQueryTableParams) WithLowerbound added in v1.15.0

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

WithLowerbound adds the lowerbound to the get statedb query table params

func (*GetStatedbQueryTableParams) WithTable added in v1.15.0

WithTable adds the table to the get statedb query table params

func (*GetStatedbQueryTableParams) WithTimeout added in v1.15.0

WithTimeout adds the timeout to the get statedb query table params

func (*GetStatedbQueryTableParams) WriteToRequest added in v1.15.0

WriteToRequest writes these params to a swagger request

type GetStatedbQueryTableReader added in v1.15.0

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

GetStatedbQueryTableReader is a Reader for the GetStatedbQueryTable structure.

func (*GetStatedbQueryTableReader) ReadResponse added in v1.15.0

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