Documentation
¶
Index ¶
- type Client
- func (a *Client) GetStatedbDump(params *GetStatedbDumpParams, writer io.Writer, opts ...ClientOption) (*GetStatedbDumpOK, error)
- func (a *Client) GetStatedbQueryTable(params *GetStatedbQueryTableParams, writer io.Writer, opts ...ClientOption) (*GetStatedbQueryTableOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetStatedbDumpOK
- func (o *GetStatedbDumpOK) Error() string
- func (o *GetStatedbDumpOK) GetPayload() io.Writer
- func (o *GetStatedbDumpOK) IsClientError() bool
- func (o *GetStatedbDumpOK) IsCode(code int) bool
- func (o *GetStatedbDumpOK) IsRedirect() bool
- func (o *GetStatedbDumpOK) IsServerError() bool
- func (o *GetStatedbDumpOK) IsSuccess() bool
- func (o *GetStatedbDumpOK) String() string
- type GetStatedbDumpParams
- func NewGetStatedbDumpParams() *GetStatedbDumpParams
- func NewGetStatedbDumpParamsWithContext(ctx context.Context) *GetStatedbDumpParams
- func NewGetStatedbDumpParamsWithHTTPClient(client *http.Client) *GetStatedbDumpParams
- func NewGetStatedbDumpParamsWithTimeout(timeout time.Duration) *GetStatedbDumpParams
- func (o *GetStatedbDumpParams) SetContext(ctx context.Context)
- func (o *GetStatedbDumpParams) SetDefaults()
- func (o *GetStatedbDumpParams) SetHTTPClient(client *http.Client)
- func (o *GetStatedbDumpParams) SetTimeout(timeout time.Duration)
- func (o *GetStatedbDumpParams) WithContext(ctx context.Context) *GetStatedbDumpParams
- func (o *GetStatedbDumpParams) WithDefaults() *GetStatedbDumpParams
- func (o *GetStatedbDumpParams) WithHTTPClient(client *http.Client) *GetStatedbDumpParams
- func (o *GetStatedbDumpParams) WithTimeout(timeout time.Duration) *GetStatedbDumpParams
- func (o *GetStatedbDumpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStatedbDumpReader
- type GetStatedbQueryTableBadRequest
- func (o *GetStatedbQueryTableBadRequest) Error() string
- func (o *GetStatedbQueryTableBadRequest) GetPayload() models.Error
- func (o *GetStatedbQueryTableBadRequest) IsClientError() bool
- func (o *GetStatedbQueryTableBadRequest) IsCode(code int) bool
- func (o *GetStatedbQueryTableBadRequest) IsRedirect() bool
- func (o *GetStatedbQueryTableBadRequest) IsServerError() bool
- func (o *GetStatedbQueryTableBadRequest) IsSuccess() bool
- func (o *GetStatedbQueryTableBadRequest) String() string
- type GetStatedbQueryTableNotFound
- func (o *GetStatedbQueryTableNotFound) Error() string
- func (o *GetStatedbQueryTableNotFound) IsClientError() bool
- func (o *GetStatedbQueryTableNotFound) IsCode(code int) bool
- func (o *GetStatedbQueryTableNotFound) IsRedirect() bool
- func (o *GetStatedbQueryTableNotFound) IsServerError() bool
- func (o *GetStatedbQueryTableNotFound) IsSuccess() bool
- func (o *GetStatedbQueryTableNotFound) String() string
- type GetStatedbQueryTableOK
- func (o *GetStatedbQueryTableOK) Error() string
- func (o *GetStatedbQueryTableOK) GetPayload() io.Writer
- func (o *GetStatedbQueryTableOK) IsClientError() bool
- func (o *GetStatedbQueryTableOK) IsCode(code int) bool
- func (o *GetStatedbQueryTableOK) IsRedirect() bool
- func (o *GetStatedbQueryTableOK) IsServerError() bool
- func (o *GetStatedbQueryTableOK) IsSuccess() bool
- func (o *GetStatedbQueryTableOK) String() string
- type GetStatedbQueryTableParams
- func NewGetStatedbQueryTableParams() *GetStatedbQueryTableParams
- func NewGetStatedbQueryTableParamsWithContext(ctx context.Context) *GetStatedbQueryTableParams
- func NewGetStatedbQueryTableParamsWithHTTPClient(client *http.Client) *GetStatedbQueryTableParams
- func NewGetStatedbQueryTableParamsWithTimeout(timeout time.Duration) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) SetContext(ctx context.Context)
- func (o *GetStatedbQueryTableParams) SetDefaults()
- func (o *GetStatedbQueryTableParams) SetHTTPClient(client *http.Client)
- func (o *GetStatedbQueryTableParams) SetIndex(index string)
- func (o *GetStatedbQueryTableParams) SetKey(key string)
- func (o *GetStatedbQueryTableParams) SetLowerbound(lowerbound bool)
- func (o *GetStatedbQueryTableParams) SetTable(table string)
- func (o *GetStatedbQueryTableParams) SetTimeout(timeout time.Duration)
- func (o *GetStatedbQueryTableParams) WithContext(ctx context.Context) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WithDefaults() *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WithHTTPClient(client *http.Client) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WithIndex(index string) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WithKey(key string) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WithLowerbound(lowerbound bool) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WithTable(table string) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WithTimeout(timeout time.Duration) *GetStatedbQueryTableParams
- func (o *GetStatedbQueryTableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStatedbQueryTableReader
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 ¶
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 ¶
func (o *GetStatedbDumpParams) WithContext(ctx context.Context) *GetStatedbDumpParams
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 ¶
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 (o *GetStatedbQueryTableBadRequest) Error() string
func (*GetStatedbQueryTableBadRequest) GetPayload ¶
func (o *GetStatedbQueryTableBadRequest) GetPayload() models.Error
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 ¶
func (o *GetStatedbQueryTableBadRequest) String() 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 (o *GetStatedbQueryTableNotFound) Error() string
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 ¶
func (o *GetStatedbQueryTableNotFound) String() string
type GetStatedbQueryTableOK ¶
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 ¶
func (o *GetStatedbQueryTableParams) WithContext(ctx context.Context) *GetStatedbQueryTableParams
WithContext adds the context to the get statedb query table params
func (*GetStatedbQueryTableParams) WithDefaults ¶
func (o *GetStatedbQueryTableParams) WithDefaults() *GetStatedbQueryTableParams
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 ¶
func (o *GetStatedbQueryTableParams) WithHTTPClient(client *http.Client) *GetStatedbQueryTableParams
WithHTTPClient adds the HTTPClient to the get statedb query table params
func (*GetStatedbQueryTableParams) WithIndex ¶
func (o *GetStatedbQueryTableParams) WithIndex(index string) *GetStatedbQueryTableParams
WithIndex adds the index to the get statedb query table params
func (*GetStatedbQueryTableParams) WithKey ¶
func (o *GetStatedbQueryTableParams) WithKey(key string) *GetStatedbQueryTableParams
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 ¶
func (o *GetStatedbQueryTableParams) WithTable(table string) *GetStatedbQueryTableParams
WithTable adds the table to the get statedb query table params
func (*GetStatedbQueryTableParams) WithTimeout ¶
func (o *GetStatedbQueryTableParams) WithTimeout(timeout time.Duration) *GetStatedbQueryTableParams
WithTimeout adds the timeout to the get statedb query table params
func (*GetStatedbQueryTableParams) WriteToRequest ¶
func (o *GetStatedbQueryTableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.