witness

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: ISC Imports: 10 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 witness API

func (*Client) GetWitnesses

func (a *Client) GetWitnesses(params *GetWitnessesParams, opts ...ClientOption) (*GetWitnessesOK, error)

GetWitnesses get witnesses API

func (*Client) GetWitnessesConnection

func (a *Client) GetWitnessesConnection(params *GetWitnessesConnectionParams, opts ...ClientOption) (*GetWitnessesConnectionOK, error)

GetWitnessesConnection get witnesses connection API

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 {
	GetWitnesses(params *GetWitnessesParams, opts ...ClientOption) (*GetWitnessesOK, error)

	GetWitnessesConnection(params *GetWitnessesConnectionParams, opts ...ClientOption) (*GetWitnessesConnectionOK, 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 witness API client.

type GetWitnessesBadRequest

type GetWitnessesBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetWitnessesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetWitnessesBadRequest

func NewGetWitnessesBadRequest() *GetWitnessesBadRequest

NewGetWitnessesBadRequest creates a GetWitnessesBadRequest with default headers values

func (*GetWitnessesBadRequest) Error

func (o *GetWitnessesBadRequest) Error() string

func (*GetWitnessesBadRequest) GetPayload

func (o *GetWitnessesBadRequest) GetPayload() *models.ErrorBody

type GetWitnessesConnectionBadRequest

type GetWitnessesConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetWitnessesConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetWitnessesConnectionBadRequest

func NewGetWitnessesConnectionBadRequest() *GetWitnessesConnectionBadRequest

NewGetWitnessesConnectionBadRequest creates a GetWitnessesConnectionBadRequest with default headers values

func (*GetWitnessesConnectionBadRequest) Error

func (*GetWitnessesConnectionBadRequest) GetPayload

type GetWitnessesConnectionInternalServerError

type GetWitnessesConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetWitnessesConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetWitnessesConnectionInternalServerError

func NewGetWitnessesConnectionInternalServerError() *GetWitnessesConnectionInternalServerError

NewGetWitnessesConnectionInternalServerError creates a GetWitnessesConnectionInternalServerError with default headers values

func (*GetWitnessesConnectionInternalServerError) Error

func (*GetWitnessesConnectionInternalServerError) GetPayload

type GetWitnessesConnectionNotFound

type GetWitnessesConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetWitnessesConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetWitnessesConnectionNotFound

func NewGetWitnessesConnectionNotFound() *GetWitnessesConnectionNotFound

NewGetWitnessesConnectionNotFound creates a GetWitnessesConnectionNotFound with default headers values

func (*GetWitnessesConnectionNotFound) Error

func (*GetWitnessesConnectionNotFound) GetPayload

type GetWitnessesConnectionOK

type GetWitnessesConnectionOK struct {
	XTowerRequestID string

	Payload *models.WitnessConnection
}
GetWitnessesConnectionOK describes a response with status code 200, with default header values.

GetWitnessesConnectionOK get witnesses connection o k

func NewGetWitnessesConnectionOK

func NewGetWitnessesConnectionOK() *GetWitnessesConnectionOK

NewGetWitnessesConnectionOK creates a GetWitnessesConnectionOK with default headers values

func (*GetWitnessesConnectionOK) Error

func (o *GetWitnessesConnectionOK) Error() string

func (*GetWitnessesConnectionOK) GetPayload

type GetWitnessesConnectionParams

type GetWitnessesConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetWitnessesConnectionRequestBody

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

GetWitnessesConnectionParams contains all the parameters to send to the API endpoint

for the get witnesses connection operation.

Typically these are written to a http.Request.

func NewGetWitnessesConnectionParams

func NewGetWitnessesConnectionParams() *GetWitnessesConnectionParams

NewGetWitnessesConnectionParams creates a new GetWitnessesConnectionParams 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 NewGetWitnessesConnectionParamsWithContext

func NewGetWitnessesConnectionParamsWithContext(ctx context.Context) *GetWitnessesConnectionParams

NewGetWitnessesConnectionParamsWithContext creates a new GetWitnessesConnectionParams object with the ability to set a context for a request.

func NewGetWitnessesConnectionParamsWithHTTPClient

func NewGetWitnessesConnectionParamsWithHTTPClient(client *http.Client) *GetWitnessesConnectionParams

NewGetWitnessesConnectionParamsWithHTTPClient creates a new GetWitnessesConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetWitnessesConnectionParamsWithTimeout

func NewGetWitnessesConnectionParamsWithTimeout(timeout time.Duration) *GetWitnessesConnectionParams

NewGetWitnessesConnectionParamsWithTimeout creates a new GetWitnessesConnectionParams object with the ability to set a timeout on a request.

func (*GetWitnessesConnectionParams) SetContentLanguage

func (o *GetWitnessesConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get witnesses connection params

func (*GetWitnessesConnectionParams) SetContext

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

SetContext adds the context to the get witnesses connection params

func (*GetWitnessesConnectionParams) SetDefaults

func (o *GetWitnessesConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get witnesses connection params (not the query body).

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

func (*GetWitnessesConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get witnesses connection params

func (*GetWitnessesConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get witnesses connection params

func (*GetWitnessesConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get witnesses connection params

func (*GetWitnessesConnectionParams) WithContentLanguage

func (o *GetWitnessesConnectionParams) WithContentLanguage(contentLanguage *string) *GetWitnessesConnectionParams

WithContentLanguage adds the contentLanguage to the get witnesses connection params

func (*GetWitnessesConnectionParams) WithContext

WithContext adds the context to the get witnesses connection params

func (*GetWitnessesConnectionParams) WithDefaults

WithDefaults hydrates default values in the get witnesses connection params (not the query body).

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

func (*GetWitnessesConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get witnesses connection params

func (*GetWitnessesConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get witnesses connection params

func (*GetWitnessesConnectionParams) WithTimeout

WithTimeout adds the timeout to the get witnesses connection params

func (*GetWitnessesConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWitnessesConnectionReader

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

GetWitnessesConnectionReader is a Reader for the GetWitnessesConnection structure.

func (*GetWitnessesConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWitnessesInternalServerError

type GetWitnessesInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetWitnessesInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetWitnessesInternalServerError

func NewGetWitnessesInternalServerError() *GetWitnessesInternalServerError

NewGetWitnessesInternalServerError creates a GetWitnessesInternalServerError with default headers values

func (*GetWitnessesInternalServerError) Error

func (*GetWitnessesInternalServerError) GetPayload

type GetWitnessesNotFound

type GetWitnessesNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetWitnessesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetWitnessesNotFound

func NewGetWitnessesNotFound() *GetWitnessesNotFound

NewGetWitnessesNotFound creates a GetWitnessesNotFound with default headers values

func (*GetWitnessesNotFound) Error

func (o *GetWitnessesNotFound) Error() string

func (*GetWitnessesNotFound) GetPayload

func (o *GetWitnessesNotFound) GetPayload() *models.ErrorBody

type GetWitnessesOK

type GetWitnessesOK struct {
	XTowerRequestID string

	Payload []*models.Witness
}
GetWitnessesOK describes a response with status code 200, with default header values.

GetWitnessesOK get witnesses o k

func NewGetWitnessesOK

func NewGetWitnessesOK() *GetWitnessesOK

NewGetWitnessesOK creates a GetWitnessesOK with default headers values

func (*GetWitnessesOK) Error

func (o *GetWitnessesOK) Error() string

func (*GetWitnessesOK) GetPayload

func (o *GetWitnessesOK) GetPayload() []*models.Witness

type GetWitnessesParams

type GetWitnessesParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetWitnessesRequestBody

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

GetWitnessesParams contains all the parameters to send to the API endpoint

for the get witnesses operation.

Typically these are written to a http.Request.

func NewGetWitnessesParams

func NewGetWitnessesParams() *GetWitnessesParams

NewGetWitnessesParams creates a new GetWitnessesParams 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 NewGetWitnessesParamsWithContext

func NewGetWitnessesParamsWithContext(ctx context.Context) *GetWitnessesParams

NewGetWitnessesParamsWithContext creates a new GetWitnessesParams object with the ability to set a context for a request.

func NewGetWitnessesParamsWithHTTPClient

func NewGetWitnessesParamsWithHTTPClient(client *http.Client) *GetWitnessesParams

NewGetWitnessesParamsWithHTTPClient creates a new GetWitnessesParams object with the ability to set a custom HTTPClient for a request.

func NewGetWitnessesParamsWithTimeout

func NewGetWitnessesParamsWithTimeout(timeout time.Duration) *GetWitnessesParams

NewGetWitnessesParamsWithTimeout creates a new GetWitnessesParams object with the ability to set a timeout on a request.

func (*GetWitnessesParams) SetContentLanguage

func (o *GetWitnessesParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get witnesses params

func (*GetWitnessesParams) SetContext

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

SetContext adds the context to the get witnesses params

func (*GetWitnessesParams) SetDefaults

func (o *GetWitnessesParams) SetDefaults()

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

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

func (*GetWitnessesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get witnesses params

func (*GetWitnessesParams) SetRequestBody

func (o *GetWitnessesParams) SetRequestBody(requestBody *models.GetWitnessesRequestBody)

SetRequestBody adds the requestBody to the get witnesses params

func (*GetWitnessesParams) SetTimeout

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

SetTimeout adds the timeout to the get witnesses params

func (*GetWitnessesParams) WithContentLanguage

func (o *GetWitnessesParams) WithContentLanguage(contentLanguage *string) *GetWitnessesParams

WithContentLanguage adds the contentLanguage to the get witnesses params

func (*GetWitnessesParams) WithContext

WithContext adds the context to the get witnesses params

func (*GetWitnessesParams) WithDefaults

func (o *GetWitnessesParams) WithDefaults() *GetWitnessesParams

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

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

func (*GetWitnessesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get witnesses params

func (*GetWitnessesParams) WithRequestBody

func (o *GetWitnessesParams) WithRequestBody(requestBody *models.GetWitnessesRequestBody) *GetWitnessesParams

WithRequestBody adds the requestBody to the get witnesses params

func (*GetWitnessesParams) WithTimeout

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

WithTimeout adds the timeout to the get witnesses params

func (*GetWitnessesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetWitnessesReader

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

GetWitnessesReader is a Reader for the GetWitnesses structure.

func (*GetWitnessesReader) ReadResponse

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