statedb

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

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) 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)

	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.

Jump to

Keyboard shortcuts

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