Documentation ¶
Index ¶
- type Client
- func (a *Client) GetWitnesses(params *GetWitnessesParams, opts ...ClientOption) (*GetWitnessesOK, error)
- func (a *Client) GetWitnessesConnection(params *GetWitnessesConnectionParams, opts ...ClientOption) (*GetWitnessesConnectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetWitnessesBadRequest
- type GetWitnessesConnectionBadRequest
- type GetWitnessesConnectionInternalServerError
- type GetWitnessesConnectionNotFound
- type GetWitnessesConnectionOK
- type GetWitnessesConnectionParams
- func NewGetWitnessesConnectionParams() *GetWitnessesConnectionParams
- func NewGetWitnessesConnectionParamsWithContext(ctx context.Context) *GetWitnessesConnectionParams
- func NewGetWitnessesConnectionParamsWithHTTPClient(client *http.Client) *GetWitnessesConnectionParams
- func NewGetWitnessesConnectionParamsWithTimeout(timeout time.Duration) *GetWitnessesConnectionParams
- func (o *GetWitnessesConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetWitnessesConnectionParams) SetContext(ctx context.Context)
- func (o *GetWitnessesConnectionParams) SetDefaults()
- func (o *GetWitnessesConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetWitnessesConnectionParams) SetRequestBody(requestBody *models.GetWitnessesConnectionRequestBody)
- func (o *GetWitnessesConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetWitnessesConnectionParams) WithContentLanguage(contentLanguage *string) *GetWitnessesConnectionParams
- func (o *GetWitnessesConnectionParams) WithContext(ctx context.Context) *GetWitnessesConnectionParams
- func (o *GetWitnessesConnectionParams) WithDefaults() *GetWitnessesConnectionParams
- func (o *GetWitnessesConnectionParams) WithHTTPClient(client *http.Client) *GetWitnessesConnectionParams
- func (o *GetWitnessesConnectionParams) WithRequestBody(requestBody *models.GetWitnessesConnectionRequestBody) *GetWitnessesConnectionParams
- func (o *GetWitnessesConnectionParams) WithTimeout(timeout time.Duration) *GetWitnessesConnectionParams
- func (o *GetWitnessesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWitnessesConnectionReader
- type GetWitnessesInternalServerError
- type GetWitnessesNotFound
- type GetWitnessesOK
- type GetWitnessesParams
- func (o *GetWitnessesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetWitnessesParams) SetContext(ctx context.Context)
- func (o *GetWitnessesParams) SetDefaults()
- func (o *GetWitnessesParams) SetHTTPClient(client *http.Client)
- func (o *GetWitnessesParams) SetRequestBody(requestBody *models.GetWitnessesRequestBody)
- func (o *GetWitnessesParams) SetTimeout(timeout time.Duration)
- func (o *GetWitnessesParams) WithContentLanguage(contentLanguage *string) *GetWitnessesParams
- func (o *GetWitnessesParams) WithContext(ctx context.Context) *GetWitnessesParams
- func (o *GetWitnessesParams) WithDefaults() *GetWitnessesParams
- func (o *GetWitnessesParams) WithHTTPClient(client *http.Client) *GetWitnessesParams
- func (o *GetWitnessesParams) WithRequestBody(requestBody *models.GetWitnessesRequestBody) *GetWitnessesParams
- func (o *GetWitnessesParams) WithTimeout(timeout time.Duration) *GetWitnessesParams
- func (o *GetWitnessesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWitnessesReader
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 ¶
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 ¶
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 (o *GetWitnessesConnectionBadRequest) Error() string
func (*GetWitnessesConnectionBadRequest) GetPayload ¶
func (o *GetWitnessesConnectionBadRequest) GetPayload() *models.ErrorBody
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 (o *GetWitnessesConnectionInternalServerError) Error() string
func (*GetWitnessesConnectionInternalServerError) GetPayload ¶
func (o *GetWitnessesConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetWitnessesConnectionNotFound ¶
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 (o *GetWitnessesConnectionNotFound) Error() string
func (*GetWitnessesConnectionNotFound) GetPayload ¶
func (o *GetWitnessesConnectionNotFound) GetPayload() *models.ErrorBody
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 ¶
func (o *GetWitnessesConnectionOK) GetPayload() *models.WitnessConnection
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 ¶
func (o *GetWitnessesConnectionParams) SetRequestBody(requestBody *models.GetWitnessesConnectionRequestBody)
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 ¶
func (o *GetWitnessesConnectionParams) WithContext(ctx context.Context) *GetWitnessesConnectionParams
WithContext adds the context to the get witnesses connection params
func (*GetWitnessesConnectionParams) WithDefaults ¶
func (o *GetWitnessesConnectionParams) WithDefaults() *GetWitnessesConnectionParams
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 ¶
func (o *GetWitnessesConnectionParams) WithHTTPClient(client *http.Client) *GetWitnessesConnectionParams
WithHTTPClient adds the HTTPClient to the get witnesses connection params
func (*GetWitnessesConnectionParams) WithRequestBody ¶
func (o *GetWitnessesConnectionParams) WithRequestBody(requestBody *models.GetWitnessesConnectionRequestBody) *GetWitnessesConnectionParams
WithRequestBody adds the requestBody to the get witnesses connection params
func (*GetWitnessesConnectionParams) WithTimeout ¶
func (o *GetWitnessesConnectionParams) WithTimeout(timeout time.Duration) *GetWitnessesConnectionParams
WithTimeout adds the timeout to the get witnesses connection params
func (*GetWitnessesConnectionParams) WriteToRequest ¶
func (o *GetWitnessesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *GetWitnessesInternalServerError) Error() string
func (*GetWitnessesInternalServerError) GetPayload ¶
func (o *GetWitnessesInternalServerError) GetPayload() *models.ErrorBody
type GetWitnessesNotFound ¶
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 ¶
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 ¶
func (o *GetWitnessesParams) WithContext(ctx context.Context) *GetWitnessesParams
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.