wallet

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0, MIT Imports: 10 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 wallet API

func (*Client) ImportWallet added in v0.4.1

func (a *Client) ImportWallet(params *ImportWalletParams, opts ...ClientOption) (*ImportWalletOK, error)

ImportWallet imports a private key

func (*Client) ListWallets added in v0.4.1

func (a *Client) ListWallets(params *ListWalletsParams, opts ...ClientOption) (*ListWalletsOK, error)

ListWallets lists all imported wallets

func (*Client) RemoveWallet added in v0.4.1

func (a *Client) RemoveWallet(params *RemoveWalletParams, opts ...ClientOption) (*RemoveWalletNoContent, error)

RemoveWallet removes a wallet

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 {
	ImportWallet(params *ImportWalletParams, opts ...ClientOption) (*ImportWalletOK, error)

	ListWallets(params *ListWalletsParams, opts ...ClientOption) (*ListWalletsOK, error)

	RemoveWallet(params *RemoveWalletParams, opts ...ClientOption) (*RemoveWalletNoContent, 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 wallet API client.

type ImportWalletBadRequest added in v0.4.1

type ImportWalletBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewImportWalletBadRequest added in v0.4.1

func NewImportWalletBadRequest() *ImportWalletBadRequest

NewImportWalletBadRequest creates a ImportWalletBadRequest with default headers values

func (*ImportWalletBadRequest) Code added in v0.4.1

func (o *ImportWalletBadRequest) Code() int

Code gets the status code for the import wallet bad request response

func (*ImportWalletBadRequest) Error added in v0.4.1

func (o *ImportWalletBadRequest) Error() string

func (*ImportWalletBadRequest) GetPayload added in v0.4.1

func (o *ImportWalletBadRequest) GetPayload() *models.APIHTTPError

func (*ImportWalletBadRequest) IsClientError added in v0.4.1

func (o *ImportWalletBadRequest) IsClientError() bool

IsClientError returns true when this import wallet bad request response has a 4xx status code

func (*ImportWalletBadRequest) IsCode added in v0.4.1

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

IsCode returns true when this import wallet bad request response a status code equal to that given

func (*ImportWalletBadRequest) IsRedirect added in v0.4.1

func (o *ImportWalletBadRequest) IsRedirect() bool

IsRedirect returns true when this import wallet bad request response has a 3xx status code

func (*ImportWalletBadRequest) IsServerError added in v0.4.1

func (o *ImportWalletBadRequest) IsServerError() bool

IsServerError returns true when this import wallet bad request response has a 5xx status code

func (*ImportWalletBadRequest) IsSuccess added in v0.4.1

func (o *ImportWalletBadRequest) IsSuccess() bool

IsSuccess returns true when this import wallet bad request response has a 2xx status code

func (*ImportWalletBadRequest) String added in v0.4.1

func (o *ImportWalletBadRequest) String() string

type ImportWalletInternalServerError added in v0.4.1

type ImportWalletInternalServerError struct {
	Payload *models.APIHTTPError
}

ImportWalletInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewImportWalletInternalServerError added in v0.4.1

func NewImportWalletInternalServerError() *ImportWalletInternalServerError

NewImportWalletInternalServerError creates a ImportWalletInternalServerError with default headers values

func (*ImportWalletInternalServerError) Code added in v0.4.1

Code gets the status code for the import wallet internal server error response

func (*ImportWalletInternalServerError) Error added in v0.4.1

func (*ImportWalletInternalServerError) GetPayload added in v0.4.1

func (*ImportWalletInternalServerError) IsClientError added in v0.4.1

func (o *ImportWalletInternalServerError) IsClientError() bool

IsClientError returns true when this import wallet internal server error response has a 4xx status code

func (*ImportWalletInternalServerError) IsCode added in v0.4.1

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

IsCode returns true when this import wallet internal server error response a status code equal to that given

func (*ImportWalletInternalServerError) IsRedirect added in v0.4.1

func (o *ImportWalletInternalServerError) IsRedirect() bool

IsRedirect returns true when this import wallet internal server error response has a 3xx status code

func (*ImportWalletInternalServerError) IsServerError added in v0.4.1

func (o *ImportWalletInternalServerError) IsServerError() bool

IsServerError returns true when this import wallet internal server error response has a 5xx status code

func (*ImportWalletInternalServerError) IsSuccess added in v0.4.1

func (o *ImportWalletInternalServerError) IsSuccess() bool

IsSuccess returns true when this import wallet internal server error response has a 2xx status code

func (*ImportWalletInternalServerError) String added in v0.4.1

type ImportWalletOK added in v0.4.1

type ImportWalletOK struct {
	Payload *models.ModelWallet
}

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

OK

func NewImportWalletOK added in v0.4.1

func NewImportWalletOK() *ImportWalletOK

NewImportWalletOK creates a ImportWalletOK with default headers values

func (*ImportWalletOK) Code added in v0.4.1

func (o *ImportWalletOK) Code() int

Code gets the status code for the import wallet o k response

func (*ImportWalletOK) Error added in v0.4.1

func (o *ImportWalletOK) Error() string

func (*ImportWalletOK) GetPayload added in v0.4.1

func (o *ImportWalletOK) GetPayload() *models.ModelWallet

func (*ImportWalletOK) IsClientError added in v0.4.1

func (o *ImportWalletOK) IsClientError() bool

IsClientError returns true when this import wallet o k response has a 4xx status code

func (*ImportWalletOK) IsCode added in v0.4.1

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

IsCode returns true when this import wallet o k response a status code equal to that given

func (*ImportWalletOK) IsRedirect added in v0.4.1

func (o *ImportWalletOK) IsRedirect() bool

IsRedirect returns true when this import wallet o k response has a 3xx status code

func (*ImportWalletOK) IsServerError added in v0.4.1

func (o *ImportWalletOK) IsServerError() bool

IsServerError returns true when this import wallet o k response has a 5xx status code

func (*ImportWalletOK) IsSuccess added in v0.4.1

func (o *ImportWalletOK) IsSuccess() bool

IsSuccess returns true when this import wallet o k response has a 2xx status code

func (*ImportWalletOK) String added in v0.4.1

func (o *ImportWalletOK) String() string

type ImportWalletParams added in v0.4.1

type ImportWalletParams struct {

	/* Request.

	   Request body
	*/
	Request *models.WalletImportRequest

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

ImportWalletParams contains all the parameters to send to the API endpoint

for the import wallet operation.

Typically these are written to a http.Request.

func NewImportWalletParams added in v0.4.1

func NewImportWalletParams() *ImportWalletParams

NewImportWalletParams creates a new ImportWalletParams 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 NewImportWalletParamsWithContext added in v0.4.1

func NewImportWalletParamsWithContext(ctx context.Context) *ImportWalletParams

NewImportWalletParamsWithContext creates a new ImportWalletParams object with the ability to set a context for a request.

func NewImportWalletParamsWithHTTPClient added in v0.4.1

func NewImportWalletParamsWithHTTPClient(client *http.Client) *ImportWalletParams

NewImportWalletParamsWithHTTPClient creates a new ImportWalletParams object with the ability to set a custom HTTPClient for a request.

func NewImportWalletParamsWithTimeout added in v0.4.1

func NewImportWalletParamsWithTimeout(timeout time.Duration) *ImportWalletParams

NewImportWalletParamsWithTimeout creates a new ImportWalletParams object with the ability to set a timeout on a request.

func (*ImportWalletParams) SetContext added in v0.4.1

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

SetContext adds the context to the import wallet params

func (*ImportWalletParams) SetDefaults added in v0.4.1

func (o *ImportWalletParams) SetDefaults()

SetDefaults hydrates default values in the import wallet params (not the query body).

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

func (*ImportWalletParams) SetHTTPClient added in v0.4.1

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

SetHTTPClient adds the HTTPClient to the import wallet params

func (*ImportWalletParams) SetRequest added in v0.4.1

func (o *ImportWalletParams) SetRequest(request *models.WalletImportRequest)

SetRequest adds the request to the import wallet params

func (*ImportWalletParams) SetTimeout added in v0.4.1

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

SetTimeout adds the timeout to the import wallet params

func (*ImportWalletParams) WithContext added in v0.4.1

WithContext adds the context to the import wallet params

func (*ImportWalletParams) WithDefaults added in v0.4.1

func (o *ImportWalletParams) WithDefaults() *ImportWalletParams

WithDefaults hydrates default values in the import wallet params (not the query body).

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

func (*ImportWalletParams) WithHTTPClient added in v0.4.1

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

WithHTTPClient adds the HTTPClient to the import wallet params

func (*ImportWalletParams) WithRequest added in v0.4.1

WithRequest adds the request to the import wallet params

func (*ImportWalletParams) WithTimeout added in v0.4.1

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

WithTimeout adds the timeout to the import wallet params

func (*ImportWalletParams) WriteToRequest added in v0.4.1

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

WriteToRequest writes these params to a swagger request

type ImportWalletReader added in v0.4.1

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

ImportWalletReader is a Reader for the ImportWallet structure.

func (*ImportWalletReader) ReadResponse added in v0.4.1

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

ReadResponse reads a server response into the received o.

type ListWalletsBadRequest added in v0.4.1

type ListWalletsBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewListWalletsBadRequest added in v0.4.1

func NewListWalletsBadRequest() *ListWalletsBadRequest

NewListWalletsBadRequest creates a ListWalletsBadRequest with default headers values

func (*ListWalletsBadRequest) Code added in v0.4.1

func (o *ListWalletsBadRequest) Code() int

Code gets the status code for the list wallets bad request response

func (*ListWalletsBadRequest) Error added in v0.4.1

func (o *ListWalletsBadRequest) Error() string

func (*ListWalletsBadRequest) GetPayload added in v0.4.1

func (o *ListWalletsBadRequest) GetPayload() *models.APIHTTPError

func (*ListWalletsBadRequest) IsClientError added in v0.4.1

func (o *ListWalletsBadRequest) IsClientError() bool

IsClientError returns true when this list wallets bad request response has a 4xx status code

func (*ListWalletsBadRequest) IsCode added in v0.4.1

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

IsCode returns true when this list wallets bad request response a status code equal to that given

func (*ListWalletsBadRequest) IsRedirect added in v0.4.1

func (o *ListWalletsBadRequest) IsRedirect() bool

IsRedirect returns true when this list wallets bad request response has a 3xx status code

func (*ListWalletsBadRequest) IsServerError added in v0.4.1

func (o *ListWalletsBadRequest) IsServerError() bool

IsServerError returns true when this list wallets bad request response has a 5xx status code

func (*ListWalletsBadRequest) IsSuccess added in v0.4.1

func (o *ListWalletsBadRequest) IsSuccess() bool

IsSuccess returns true when this list wallets bad request response has a 2xx status code

func (*ListWalletsBadRequest) String added in v0.4.1

func (o *ListWalletsBadRequest) String() string

type ListWalletsInternalServerError added in v0.4.1

type ListWalletsInternalServerError struct {
	Payload *models.APIHTTPError
}

ListWalletsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewListWalletsInternalServerError added in v0.4.1

func NewListWalletsInternalServerError() *ListWalletsInternalServerError

NewListWalletsInternalServerError creates a ListWalletsInternalServerError with default headers values

func (*ListWalletsInternalServerError) Code added in v0.4.1

Code gets the status code for the list wallets internal server error response

func (*ListWalletsInternalServerError) Error added in v0.4.1

func (*ListWalletsInternalServerError) GetPayload added in v0.4.1

func (*ListWalletsInternalServerError) IsClientError added in v0.4.1

func (o *ListWalletsInternalServerError) IsClientError() bool

IsClientError returns true when this list wallets internal server error response has a 4xx status code

func (*ListWalletsInternalServerError) IsCode added in v0.4.1

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

IsCode returns true when this list wallets internal server error response a status code equal to that given

func (*ListWalletsInternalServerError) IsRedirect added in v0.4.1

func (o *ListWalletsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list wallets internal server error response has a 3xx status code

func (*ListWalletsInternalServerError) IsServerError added in v0.4.1

func (o *ListWalletsInternalServerError) IsServerError() bool

IsServerError returns true when this list wallets internal server error response has a 5xx status code

func (*ListWalletsInternalServerError) IsSuccess added in v0.4.1

func (o *ListWalletsInternalServerError) IsSuccess() bool

IsSuccess returns true when this list wallets internal server error response has a 2xx status code

func (*ListWalletsInternalServerError) String added in v0.4.1

type ListWalletsOK added in v0.4.1

type ListWalletsOK struct {
	Payload []*models.ModelWallet
}

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

OK

func NewListWalletsOK added in v0.4.1

func NewListWalletsOK() *ListWalletsOK

NewListWalletsOK creates a ListWalletsOK with default headers values

func (*ListWalletsOK) Code added in v0.4.1

func (o *ListWalletsOK) Code() int

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

func (*ListWalletsOK) Error added in v0.4.1

func (o *ListWalletsOK) Error() string

func (*ListWalletsOK) GetPayload added in v0.4.1

func (o *ListWalletsOK) GetPayload() []*models.ModelWallet

func (*ListWalletsOK) IsClientError added in v0.4.1

func (o *ListWalletsOK) IsClientError() bool

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

func (*ListWalletsOK) IsCode added in v0.4.1

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

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

func (*ListWalletsOK) IsRedirect added in v0.4.1

func (o *ListWalletsOK) IsRedirect() bool

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

func (*ListWalletsOK) IsServerError added in v0.4.1

func (o *ListWalletsOK) IsServerError() bool

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

func (*ListWalletsOK) IsSuccess added in v0.4.1

func (o *ListWalletsOK) IsSuccess() bool

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

func (*ListWalletsOK) String added in v0.4.1

func (o *ListWalletsOK) String() string

type ListWalletsParams added in v0.4.1

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

ListWalletsParams contains all the parameters to send to the API endpoint

for the list wallets operation.

Typically these are written to a http.Request.

func NewListWalletsParams added in v0.4.1

func NewListWalletsParams() *ListWalletsParams

NewListWalletsParams creates a new ListWalletsParams 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 NewListWalletsParamsWithContext added in v0.4.1

func NewListWalletsParamsWithContext(ctx context.Context) *ListWalletsParams

NewListWalletsParamsWithContext creates a new ListWalletsParams object with the ability to set a context for a request.

func NewListWalletsParamsWithHTTPClient added in v0.4.1

func NewListWalletsParamsWithHTTPClient(client *http.Client) *ListWalletsParams

NewListWalletsParamsWithHTTPClient creates a new ListWalletsParams object with the ability to set a custom HTTPClient for a request.

func NewListWalletsParamsWithTimeout added in v0.4.1

func NewListWalletsParamsWithTimeout(timeout time.Duration) *ListWalletsParams

NewListWalletsParamsWithTimeout creates a new ListWalletsParams object with the ability to set a timeout on a request.

func (*ListWalletsParams) SetContext added in v0.4.1

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

SetContext adds the context to the list wallets params

func (*ListWalletsParams) SetDefaults added in v0.4.1

func (o *ListWalletsParams) SetDefaults()

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

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

func (*ListWalletsParams) SetHTTPClient added in v0.4.1

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

SetHTTPClient adds the HTTPClient to the list wallets params

func (*ListWalletsParams) SetTimeout added in v0.4.1

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

SetTimeout adds the timeout to the list wallets params

func (*ListWalletsParams) WithContext added in v0.4.1

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

WithContext adds the context to the list wallets params

func (*ListWalletsParams) WithDefaults added in v0.4.1

func (o *ListWalletsParams) WithDefaults() *ListWalletsParams

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

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

func (*ListWalletsParams) WithHTTPClient added in v0.4.1

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

WithHTTPClient adds the HTTPClient to the list wallets params

func (*ListWalletsParams) WithTimeout added in v0.4.1

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

WithTimeout adds the timeout to the list wallets params

func (*ListWalletsParams) WriteToRequest added in v0.4.1

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

WriteToRequest writes these params to a swagger request

type ListWalletsReader added in v0.4.1

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

ListWalletsReader is a Reader for the ListWallets structure.

func (*ListWalletsReader) ReadResponse added in v0.4.1

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

ReadResponse reads a server response into the received o.

type RemoveWalletBadRequest added in v0.4.1

type RemoveWalletBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewRemoveWalletBadRequest added in v0.4.1

func NewRemoveWalletBadRequest() *RemoveWalletBadRequest

NewRemoveWalletBadRequest creates a RemoveWalletBadRequest with default headers values

func (*RemoveWalletBadRequest) Code added in v0.4.1

func (o *RemoveWalletBadRequest) Code() int

Code gets the status code for the remove wallet bad request response

func (*RemoveWalletBadRequest) Error added in v0.4.1

func (o *RemoveWalletBadRequest) Error() string

func (*RemoveWalletBadRequest) GetPayload added in v0.4.1

func (o *RemoveWalletBadRequest) GetPayload() *models.APIHTTPError

func (*RemoveWalletBadRequest) IsClientError added in v0.4.1

func (o *RemoveWalletBadRequest) IsClientError() bool

IsClientError returns true when this remove wallet bad request response has a 4xx status code

func (*RemoveWalletBadRequest) IsCode added in v0.4.1

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

IsCode returns true when this remove wallet bad request response a status code equal to that given

func (*RemoveWalletBadRequest) IsRedirect added in v0.4.1

func (o *RemoveWalletBadRequest) IsRedirect() bool

IsRedirect returns true when this remove wallet bad request response has a 3xx status code

func (*RemoveWalletBadRequest) IsServerError added in v0.4.1

func (o *RemoveWalletBadRequest) IsServerError() bool

IsServerError returns true when this remove wallet bad request response has a 5xx status code

func (*RemoveWalletBadRequest) IsSuccess added in v0.4.1

func (o *RemoveWalletBadRequest) IsSuccess() bool

IsSuccess returns true when this remove wallet bad request response has a 2xx status code

func (*RemoveWalletBadRequest) String added in v0.4.1

func (o *RemoveWalletBadRequest) String() string

type RemoveWalletInternalServerError added in v0.4.1

type RemoveWalletInternalServerError struct {
	Payload *models.APIHTTPError
}

RemoveWalletInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewRemoveWalletInternalServerError added in v0.4.1

func NewRemoveWalletInternalServerError() *RemoveWalletInternalServerError

NewRemoveWalletInternalServerError creates a RemoveWalletInternalServerError with default headers values

func (*RemoveWalletInternalServerError) Code added in v0.4.1

Code gets the status code for the remove wallet internal server error response

func (*RemoveWalletInternalServerError) Error added in v0.4.1

func (*RemoveWalletInternalServerError) GetPayload added in v0.4.1

func (*RemoveWalletInternalServerError) IsClientError added in v0.4.1

func (o *RemoveWalletInternalServerError) IsClientError() bool

IsClientError returns true when this remove wallet internal server error response has a 4xx status code

func (*RemoveWalletInternalServerError) IsCode added in v0.4.1

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

IsCode returns true when this remove wallet internal server error response a status code equal to that given

func (*RemoveWalletInternalServerError) IsRedirect added in v0.4.1

func (o *RemoveWalletInternalServerError) IsRedirect() bool

IsRedirect returns true when this remove wallet internal server error response has a 3xx status code

func (*RemoveWalletInternalServerError) IsServerError added in v0.4.1

func (o *RemoveWalletInternalServerError) IsServerError() bool

IsServerError returns true when this remove wallet internal server error response has a 5xx status code

func (*RemoveWalletInternalServerError) IsSuccess added in v0.4.1

func (o *RemoveWalletInternalServerError) IsSuccess() bool

IsSuccess returns true when this remove wallet internal server error response has a 2xx status code

func (*RemoveWalletInternalServerError) String added in v0.4.1

type RemoveWalletNoContent added in v0.4.1

type RemoveWalletNoContent struct {
}

RemoveWalletNoContent describes a response with status code 204, with default header values.

No Content

func NewRemoveWalletNoContent added in v0.4.1

func NewRemoveWalletNoContent() *RemoveWalletNoContent

NewRemoveWalletNoContent creates a RemoveWalletNoContent with default headers values

func (*RemoveWalletNoContent) Code added in v0.4.1

func (o *RemoveWalletNoContent) Code() int

Code gets the status code for the remove wallet no content response

func (*RemoveWalletNoContent) Error added in v0.4.1

func (o *RemoveWalletNoContent) Error() string

func (*RemoveWalletNoContent) IsClientError added in v0.4.1

func (o *RemoveWalletNoContent) IsClientError() bool

IsClientError returns true when this remove wallet no content response has a 4xx status code

func (*RemoveWalletNoContent) IsCode added in v0.4.1

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

IsCode returns true when this remove wallet no content response a status code equal to that given

func (*RemoveWalletNoContent) IsRedirect added in v0.4.1

func (o *RemoveWalletNoContent) IsRedirect() bool

IsRedirect returns true when this remove wallet no content response has a 3xx status code

func (*RemoveWalletNoContent) IsServerError added in v0.4.1

func (o *RemoveWalletNoContent) IsServerError() bool

IsServerError returns true when this remove wallet no content response has a 5xx status code

func (*RemoveWalletNoContent) IsSuccess added in v0.4.1

func (o *RemoveWalletNoContent) IsSuccess() bool

IsSuccess returns true when this remove wallet no content response has a 2xx status code

func (*RemoveWalletNoContent) String added in v0.4.1

func (o *RemoveWalletNoContent) String() string

type RemoveWalletParams added in v0.4.1

type RemoveWalletParams struct {

	/* Address.

	   Address
	*/
	Address string

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

RemoveWalletParams contains all the parameters to send to the API endpoint

for the remove wallet operation.

Typically these are written to a http.Request.

func NewRemoveWalletParams added in v0.4.1

func NewRemoveWalletParams() *RemoveWalletParams

NewRemoveWalletParams creates a new RemoveWalletParams 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 NewRemoveWalletParamsWithContext added in v0.4.1

func NewRemoveWalletParamsWithContext(ctx context.Context) *RemoveWalletParams

NewRemoveWalletParamsWithContext creates a new RemoveWalletParams object with the ability to set a context for a request.

func NewRemoveWalletParamsWithHTTPClient added in v0.4.1

func NewRemoveWalletParamsWithHTTPClient(client *http.Client) *RemoveWalletParams

NewRemoveWalletParamsWithHTTPClient creates a new RemoveWalletParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveWalletParamsWithTimeout added in v0.4.1

func NewRemoveWalletParamsWithTimeout(timeout time.Duration) *RemoveWalletParams

NewRemoveWalletParamsWithTimeout creates a new RemoveWalletParams object with the ability to set a timeout on a request.

func (*RemoveWalletParams) SetAddress added in v0.4.1

func (o *RemoveWalletParams) SetAddress(address string)

SetAddress adds the address to the remove wallet params

func (*RemoveWalletParams) SetContext added in v0.4.1

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

SetContext adds the context to the remove wallet params

func (*RemoveWalletParams) SetDefaults added in v0.4.1

func (o *RemoveWalletParams) SetDefaults()

SetDefaults hydrates default values in the remove wallet params (not the query body).

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

func (*RemoveWalletParams) SetHTTPClient added in v0.4.1

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

SetHTTPClient adds the HTTPClient to the remove wallet params

func (*RemoveWalletParams) SetTimeout added in v0.4.1

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

SetTimeout adds the timeout to the remove wallet params

func (*RemoveWalletParams) WithAddress added in v0.4.1

func (o *RemoveWalletParams) WithAddress(address string) *RemoveWalletParams

WithAddress adds the address to the remove wallet params

func (*RemoveWalletParams) WithContext added in v0.4.1

WithContext adds the context to the remove wallet params

func (*RemoveWalletParams) WithDefaults added in v0.4.1

func (o *RemoveWalletParams) WithDefaults() *RemoveWalletParams

WithDefaults hydrates default values in the remove wallet params (not the query body).

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

func (*RemoveWalletParams) WithHTTPClient added in v0.4.1

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

WithHTTPClient adds the HTTPClient to the remove wallet params

func (*RemoveWalletParams) WithTimeout added in v0.4.1

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

WithTimeout adds the timeout to the remove wallet params

func (*RemoveWalletParams) WriteToRequest added in v0.4.1

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

WriteToRequest writes these params to a swagger request

type RemoveWalletReader added in v0.4.1

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

RemoveWalletReader is a Reader for the RemoveWallet structure.

func (*RemoveWalletReader) ReadResponse added in v0.4.1

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