witness_service

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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 service API

func (*Client) GetWitnessServices

func (a *Client) GetWitnessServices(params *GetWitnessServicesParams, opts ...ClientOption) (*GetWitnessServicesOK, error)

GetWitnessServices get witness services 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 {
	GetWitnessServices(params *GetWitnessServicesParams, opts ...ClientOption) (*GetWitnessServicesOK, 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 service API client.

type GetWitnessServicesBadRequest

type GetWitnessServicesBadRequest struct {
	XTowerRequestID string

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

Bad request

func NewGetWitnessServicesBadRequest

func NewGetWitnessServicesBadRequest() *GetWitnessServicesBadRequest

NewGetWitnessServicesBadRequest creates a GetWitnessServicesBadRequest with default headers values

func (*GetWitnessServicesBadRequest) Error

func (*GetWitnessServicesBadRequest) GetPayload

type GetWitnessServicesInternalServerError

type GetWitnessServicesInternalServerError struct {
	XTowerRequestID string

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

Server error

func NewGetWitnessServicesInternalServerError

func NewGetWitnessServicesInternalServerError() *GetWitnessServicesInternalServerError

NewGetWitnessServicesInternalServerError creates a GetWitnessServicesInternalServerError with default headers values

func (*GetWitnessServicesInternalServerError) Error

func (*GetWitnessServicesInternalServerError) GetPayload

type GetWitnessServicesNotFound

type GetWitnessServicesNotFound struct {
	XTowerRequestID string

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

Not found

func NewGetWitnessServicesNotFound

func NewGetWitnessServicesNotFound() *GetWitnessServicesNotFound

NewGetWitnessServicesNotFound creates a GetWitnessServicesNotFound with default headers values

func (*GetWitnessServicesNotFound) Error

func (*GetWitnessServicesNotFound) GetPayload

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

type GetWitnessServicesOK

type GetWitnessServicesOK struct {
	XTowerRequestID string

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

GetWitnessServicesOK get witness services o k

func NewGetWitnessServicesOK

func NewGetWitnessServicesOK() *GetWitnessServicesOK

NewGetWitnessServicesOK creates a GetWitnessServicesOK with default headers values

func (*GetWitnessServicesOK) Error

func (o *GetWitnessServicesOK) Error() string

func (*GetWitnessServicesOK) GetPayload

func (o *GetWitnessServicesOK) GetPayload() []*models.WitnessService

type GetWitnessServicesParams

type GetWitnessServicesParams struct {

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

	// RequestBody.
	RequestBody *models.GetWitnessServicesRequestBody

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

GetWitnessServicesParams contains all the parameters to send to the API endpoint

for the get witness services operation.

Typically these are written to a http.Request.

func NewGetWitnessServicesParams

func NewGetWitnessServicesParams() *GetWitnessServicesParams

NewGetWitnessServicesParams creates a new GetWitnessServicesParams 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 NewGetWitnessServicesParamsWithContext

func NewGetWitnessServicesParamsWithContext(ctx context.Context) *GetWitnessServicesParams

NewGetWitnessServicesParamsWithContext creates a new GetWitnessServicesParams object with the ability to set a context for a request.

func NewGetWitnessServicesParamsWithHTTPClient

func NewGetWitnessServicesParamsWithHTTPClient(client *http.Client) *GetWitnessServicesParams

NewGetWitnessServicesParamsWithHTTPClient creates a new GetWitnessServicesParams object with the ability to set a custom HTTPClient for a request.

func NewGetWitnessServicesParamsWithTimeout

func NewGetWitnessServicesParamsWithTimeout(timeout time.Duration) *GetWitnessServicesParams

NewGetWitnessServicesParamsWithTimeout creates a new GetWitnessServicesParams object with the ability to set a timeout on a request.

func (*GetWitnessServicesParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get witness services params

func (*GetWitnessServicesParams) SetContext

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

SetContext adds the context to the get witness services params

func (*GetWitnessServicesParams) SetDefaults

func (o *GetWitnessServicesParams) SetDefaults()

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

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

func (*GetWitnessServicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get witness services params

func (*GetWitnessServicesParams) SetRequestBody

func (o *GetWitnessServicesParams) SetRequestBody(requestBody *models.GetWitnessServicesRequestBody)

SetRequestBody adds the requestBody to the get witness services params

func (*GetWitnessServicesParams) SetTimeout

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

SetTimeout adds the timeout to the get witness services params

func (*GetWitnessServicesParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get witness services params

func (*GetWitnessServicesParams) WithContext

WithContext adds the context to the get witness services params

func (*GetWitnessServicesParams) WithDefaults

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

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

func (*GetWitnessServicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get witness services params

func (*GetWitnessServicesParams) WithRequestBody

WithRequestBody adds the requestBody to the get witness services params

func (*GetWitnessServicesParams) WithTimeout

WithTimeout adds the timeout to the get witness services params

func (*GetWitnessServicesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWitnessServicesReader

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

GetWitnessServicesReader is a Reader for the GetWitnessServices structure.

func (*GetWitnessServicesReader) ReadResponse

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