Documentation ¶
Index ¶
- type Client
- func (a *Client) GetHostsToTrace(params *GetHostsToTraceParams, opts ...ClientOption) (*GetHostsToTraceOK, error)
- func (a *Client) PostControlNewDiscoveredAPIs(params *PostControlNewDiscoveredAPIsParams, opts ...ClientOption) (*PostControlNewDiscoveredAPIsOK, error)
- func (a *Client) PostTelemetry(params *PostTelemetryParams, opts ...ClientOption) (*PostTelemetryOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetHostsToTraceDefault
- type GetHostsToTraceOK
- type GetHostsToTraceParams
- func NewGetHostsToTraceParams() *GetHostsToTraceParams
- func NewGetHostsToTraceParamsWithContext(ctx context.Context) *GetHostsToTraceParams
- func NewGetHostsToTraceParamsWithHTTPClient(client *http.Client) *GetHostsToTraceParams
- func NewGetHostsToTraceParamsWithTimeout(timeout time.Duration) *GetHostsToTraceParams
- func (o *GetHostsToTraceParams) SetContext(ctx context.Context)
- func (o *GetHostsToTraceParams) SetDefaults()
- func (o *GetHostsToTraceParams) SetHTTPClient(client *http.Client)
- func (o *GetHostsToTraceParams) SetTimeout(timeout time.Duration)
- func (o *GetHostsToTraceParams) SetXTraceSourceToken(xTraceSourceToken *string)
- func (o *GetHostsToTraceParams) WithContext(ctx context.Context) *GetHostsToTraceParams
- func (o *GetHostsToTraceParams) WithDefaults() *GetHostsToTraceParams
- func (o *GetHostsToTraceParams) WithHTTPClient(client *http.Client) *GetHostsToTraceParams
- func (o *GetHostsToTraceParams) WithTimeout(timeout time.Duration) *GetHostsToTraceParams
- func (o *GetHostsToTraceParams) WithXTraceSourceToken(xTraceSourceToken *string) *GetHostsToTraceParams
- func (o *GetHostsToTraceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHostsToTraceReader
- type PostControlNewDiscoveredAPIsBody
- func (o *PostControlNewDiscoveredAPIsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostControlNewDiscoveredAPIsBody) MarshalBinary() ([]byte, error)
- func (o *PostControlNewDiscoveredAPIsBody) UnmarshalBinary(b []byte) error
- func (o *PostControlNewDiscoveredAPIsBody) Validate(formats strfmt.Registry) error
- type PostControlNewDiscoveredAPIsDefault
- type PostControlNewDiscoveredAPIsOK
- type PostControlNewDiscoveredAPIsParams
- func NewPostControlNewDiscoveredAPIsParams() *PostControlNewDiscoveredAPIsParams
- func NewPostControlNewDiscoveredAPIsParamsWithContext(ctx context.Context) *PostControlNewDiscoveredAPIsParams
- func NewPostControlNewDiscoveredAPIsParamsWithHTTPClient(client *http.Client) *PostControlNewDiscoveredAPIsParams
- func NewPostControlNewDiscoveredAPIsParamsWithTimeout(timeout time.Duration) *PostControlNewDiscoveredAPIsParams
- func (o *PostControlNewDiscoveredAPIsParams) SetBody(body PostControlNewDiscoveredAPIsBody)
- func (o *PostControlNewDiscoveredAPIsParams) SetContext(ctx context.Context)
- func (o *PostControlNewDiscoveredAPIsParams) SetDefaults()
- func (o *PostControlNewDiscoveredAPIsParams) SetHTTPClient(client *http.Client)
- func (o *PostControlNewDiscoveredAPIsParams) SetTimeout(timeout time.Duration)
- func (o *PostControlNewDiscoveredAPIsParams) SetXTraceSourceToken(xTraceSourceToken *string)
- func (o *PostControlNewDiscoveredAPIsParams) WithBody(body PostControlNewDiscoveredAPIsBody) *PostControlNewDiscoveredAPIsParams
- func (o *PostControlNewDiscoveredAPIsParams) WithContext(ctx context.Context) *PostControlNewDiscoveredAPIsParams
- func (o *PostControlNewDiscoveredAPIsParams) WithDefaults() *PostControlNewDiscoveredAPIsParams
- func (o *PostControlNewDiscoveredAPIsParams) WithHTTPClient(client *http.Client) *PostControlNewDiscoveredAPIsParams
- func (o *PostControlNewDiscoveredAPIsParams) WithTimeout(timeout time.Duration) *PostControlNewDiscoveredAPIsParams
- func (o *PostControlNewDiscoveredAPIsParams) WithXTraceSourceToken(xTraceSourceToken *string) *PostControlNewDiscoveredAPIsParams
- func (o *PostControlNewDiscoveredAPIsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostControlNewDiscoveredAPIsReader
- type PostTelemetryDefault
- type PostTelemetryOK
- type PostTelemetryParams
- func (o *PostTelemetryParams) SetBody(body *models.Telemetry)
- func (o *PostTelemetryParams) SetContext(ctx context.Context)
- func (o *PostTelemetryParams) SetDefaults()
- func (o *PostTelemetryParams) SetHTTPClient(client *http.Client)
- func (o *PostTelemetryParams) SetTimeout(timeout time.Duration)
- func (o *PostTelemetryParams) SetXTraceSourceToken(xTraceSourceToken *string)
- func (o *PostTelemetryParams) WithBody(body *models.Telemetry) *PostTelemetryParams
- func (o *PostTelemetryParams) WithContext(ctx context.Context) *PostTelemetryParams
- func (o *PostTelemetryParams) WithDefaults() *PostTelemetryParams
- func (o *PostTelemetryParams) WithHTTPClient(client *http.Client) *PostTelemetryParams
- func (o *PostTelemetryParams) WithTimeout(timeout time.Duration) *PostTelemetryParams
- func (o *PostTelemetryParams) WithXTraceSourceToken(xTraceSourceToken *string) *PostTelemetryParams
- func (o *PostTelemetryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostTelemetryReader
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 operations API
func (*Client) GetHostsToTrace ¶
func (a *Client) GetHostsToTrace(params *GetHostsToTraceParams, opts ...ClientOption) (*GetHostsToTraceOK, error)
GetHostsToTrace gets a list of hosts to trace
func (*Client) PostControlNewDiscoveredAPIs ¶
func (a *Client) PostControlNewDiscoveredAPIs(params *PostControlNewDiscoveredAPIsParams, opts ...ClientOption) (*PostControlNewDiscoveredAPIsOK, error)
PostControlNewDiscoveredAPIs allows a client to notify API clarity about new a p is
This allows a client (a gateway for example) to notify APIclarity about newly discovered APIs. If one of the APIs already exists, it is ignored.
func (*Client) PostTelemetry ¶
func (a *Client) PostTelemetry(params *PostTelemetryParams, opts ...ClientOption) (*PostTelemetryOK, error)
PostTelemetry posts an http telemetry
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 { GetHostsToTrace(params *GetHostsToTraceParams, opts ...ClientOption) (*GetHostsToTraceOK, error) PostControlNewDiscoveredAPIs(params *PostControlNewDiscoveredAPIsParams, opts ...ClientOption) (*PostControlNewDiscoveredAPIsOK, error) PostTelemetry(params *PostTelemetryParams, opts ...ClientOption) (*PostTelemetryOK, 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 operations API client.
type GetHostsToTraceDefault ¶
type GetHostsToTraceDefault struct { Payload *models.APIResponse // contains filtered or unexported fields }
GetHostsToTraceDefault describes a response with status code -1, with default header values.
unknown error
func NewGetHostsToTraceDefault ¶
func NewGetHostsToTraceDefault(code int) *GetHostsToTraceDefault
NewGetHostsToTraceDefault creates a GetHostsToTraceDefault with default headers values
func (*GetHostsToTraceDefault) Code ¶
func (o *GetHostsToTraceDefault) Code() int
Code gets the status code for the get hosts to trace default response
func (*GetHostsToTraceDefault) Error ¶
func (o *GetHostsToTraceDefault) Error() string
func (*GetHostsToTraceDefault) GetPayload ¶
func (o *GetHostsToTraceDefault) GetPayload() *models.APIResponse
type GetHostsToTraceOK ¶
type GetHostsToTraceOK struct {
Payload *models.HostsToTrace
}
GetHostsToTraceOK describes a response with status code 200, with default header values.
Success
func NewGetHostsToTraceOK ¶
func NewGetHostsToTraceOK() *GetHostsToTraceOK
NewGetHostsToTraceOK creates a GetHostsToTraceOK with default headers values
func (*GetHostsToTraceOK) Error ¶
func (o *GetHostsToTraceOK) Error() string
func (*GetHostsToTraceOK) GetPayload ¶
func (o *GetHostsToTraceOK) GetPayload() *models.HostsToTrace
type GetHostsToTraceParams ¶
type GetHostsToTraceParams struct { /* XTraceSourceToken. Optional header to authenticate the trace source */ XTraceSourceToken *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHostsToTraceParams contains all the parameters to send to the API endpoint
for the get hosts to trace operation. Typically these are written to a http.Request.
func NewGetHostsToTraceParams ¶
func NewGetHostsToTraceParams() *GetHostsToTraceParams
NewGetHostsToTraceParams creates a new GetHostsToTraceParams 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 NewGetHostsToTraceParamsWithContext ¶
func NewGetHostsToTraceParamsWithContext(ctx context.Context) *GetHostsToTraceParams
NewGetHostsToTraceParamsWithContext creates a new GetHostsToTraceParams object with the ability to set a context for a request.
func NewGetHostsToTraceParamsWithHTTPClient ¶
func NewGetHostsToTraceParamsWithHTTPClient(client *http.Client) *GetHostsToTraceParams
NewGetHostsToTraceParamsWithHTTPClient creates a new GetHostsToTraceParams object with the ability to set a custom HTTPClient for a request.
func NewGetHostsToTraceParamsWithTimeout ¶
func NewGetHostsToTraceParamsWithTimeout(timeout time.Duration) *GetHostsToTraceParams
NewGetHostsToTraceParamsWithTimeout creates a new GetHostsToTraceParams object with the ability to set a timeout on a request.
func (*GetHostsToTraceParams) SetContext ¶
func (o *GetHostsToTraceParams) SetContext(ctx context.Context)
SetContext adds the context to the get hosts to trace params
func (*GetHostsToTraceParams) SetDefaults ¶
func (o *GetHostsToTraceParams) SetDefaults()
SetDefaults hydrates default values in the get hosts to trace params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsToTraceParams) SetHTTPClient ¶
func (o *GetHostsToTraceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get hosts to trace params
func (*GetHostsToTraceParams) SetTimeout ¶
func (o *GetHostsToTraceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get hosts to trace params
func (*GetHostsToTraceParams) SetXTraceSourceToken ¶
func (o *GetHostsToTraceParams) SetXTraceSourceToken(xTraceSourceToken *string)
SetXTraceSourceToken adds the xTraceSourceToken to the get hosts to trace params
func (*GetHostsToTraceParams) WithContext ¶
func (o *GetHostsToTraceParams) WithContext(ctx context.Context) *GetHostsToTraceParams
WithContext adds the context to the get hosts to trace params
func (*GetHostsToTraceParams) WithDefaults ¶
func (o *GetHostsToTraceParams) WithDefaults() *GetHostsToTraceParams
WithDefaults hydrates default values in the get hosts to trace params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsToTraceParams) WithHTTPClient ¶
func (o *GetHostsToTraceParams) WithHTTPClient(client *http.Client) *GetHostsToTraceParams
WithHTTPClient adds the HTTPClient to the get hosts to trace params
func (*GetHostsToTraceParams) WithTimeout ¶
func (o *GetHostsToTraceParams) WithTimeout(timeout time.Duration) *GetHostsToTraceParams
WithTimeout adds the timeout to the get hosts to trace params
func (*GetHostsToTraceParams) WithXTraceSourceToken ¶
func (o *GetHostsToTraceParams) WithXTraceSourceToken(xTraceSourceToken *string) *GetHostsToTraceParams
WithXTraceSourceToken adds the xTraceSourceToken to the get hosts to trace params
func (*GetHostsToTraceParams) WriteToRequest ¶
func (o *GetHostsToTraceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHostsToTraceReader ¶
type GetHostsToTraceReader struct {
// contains filtered or unexported fields
}
GetHostsToTraceReader is a Reader for the GetHostsToTrace structure.
func (*GetHostsToTraceReader) ReadResponse ¶
func (o *GetHostsToTraceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostControlNewDiscoveredAPIsBody ¶
type PostControlNewDiscoveredAPIsBody struct { // List of discovered APIs, format of hostname:port // Required: true Hosts []string `json:"hosts"` }
PostControlNewDiscoveredAPIsBody post control new discovered a p is body swagger:model PostControlNewDiscoveredAPIsBody
func (*PostControlNewDiscoveredAPIsBody) ContextValidate ¶
func (o *PostControlNewDiscoveredAPIsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post control new discovered a p is body based on context it is used
func (*PostControlNewDiscoveredAPIsBody) MarshalBinary ¶
func (o *PostControlNewDiscoveredAPIsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostControlNewDiscoveredAPIsBody) UnmarshalBinary ¶
func (o *PostControlNewDiscoveredAPIsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostControlNewDiscoveredAPIsDefault ¶
type PostControlNewDiscoveredAPIsDefault struct { Payload *models.APIResponse // contains filtered or unexported fields }
PostControlNewDiscoveredAPIsDefault describes a response with status code -1, with default header values.
unknown error
func NewPostControlNewDiscoveredAPIsDefault ¶
func NewPostControlNewDiscoveredAPIsDefault(code int) *PostControlNewDiscoveredAPIsDefault
NewPostControlNewDiscoveredAPIsDefault creates a PostControlNewDiscoveredAPIsDefault with default headers values
func (*PostControlNewDiscoveredAPIsDefault) Code ¶
func (o *PostControlNewDiscoveredAPIsDefault) Code() int
Code gets the status code for the post control new discovered a p is default response
func (*PostControlNewDiscoveredAPIsDefault) Error ¶
func (o *PostControlNewDiscoveredAPIsDefault) Error() string
func (*PostControlNewDiscoveredAPIsDefault) GetPayload ¶
func (o *PostControlNewDiscoveredAPIsDefault) GetPayload() *models.APIResponse
type PostControlNewDiscoveredAPIsOK ¶
type PostControlNewDiscoveredAPIsOK struct {
Payload interface{}
}
PostControlNewDiscoveredAPIsOK describes a response with status code 200, with default header values.
Success
func NewPostControlNewDiscoveredAPIsOK ¶
func NewPostControlNewDiscoveredAPIsOK() *PostControlNewDiscoveredAPIsOK
NewPostControlNewDiscoveredAPIsOK creates a PostControlNewDiscoveredAPIsOK with default headers values
func (*PostControlNewDiscoveredAPIsOK) Error ¶
func (o *PostControlNewDiscoveredAPIsOK) Error() string
func (*PostControlNewDiscoveredAPIsOK) GetPayload ¶
func (o *PostControlNewDiscoveredAPIsOK) GetPayload() interface{}
type PostControlNewDiscoveredAPIsParams ¶
type PostControlNewDiscoveredAPIsParams struct { /* XTraceSourceToken. Optional header to authenticate the trace source */ XTraceSourceToken *string /* Body. List of new discovered APIs */ Body PostControlNewDiscoveredAPIsBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostControlNewDiscoveredAPIsParams contains all the parameters to send to the API endpoint
for the post control new discovered a p is operation. Typically these are written to a http.Request.
func NewPostControlNewDiscoveredAPIsParams ¶
func NewPostControlNewDiscoveredAPIsParams() *PostControlNewDiscoveredAPIsParams
NewPostControlNewDiscoveredAPIsParams creates a new PostControlNewDiscoveredAPIsParams 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 NewPostControlNewDiscoveredAPIsParamsWithContext ¶
func NewPostControlNewDiscoveredAPIsParamsWithContext(ctx context.Context) *PostControlNewDiscoveredAPIsParams
NewPostControlNewDiscoveredAPIsParamsWithContext creates a new PostControlNewDiscoveredAPIsParams object with the ability to set a context for a request.
func NewPostControlNewDiscoveredAPIsParamsWithHTTPClient ¶
func NewPostControlNewDiscoveredAPIsParamsWithHTTPClient(client *http.Client) *PostControlNewDiscoveredAPIsParams
NewPostControlNewDiscoveredAPIsParamsWithHTTPClient creates a new PostControlNewDiscoveredAPIsParams object with the ability to set a custom HTTPClient for a request.
func NewPostControlNewDiscoveredAPIsParamsWithTimeout ¶
func NewPostControlNewDiscoveredAPIsParamsWithTimeout(timeout time.Duration) *PostControlNewDiscoveredAPIsParams
NewPostControlNewDiscoveredAPIsParamsWithTimeout creates a new PostControlNewDiscoveredAPIsParams object with the ability to set a timeout on a request.
func (*PostControlNewDiscoveredAPIsParams) SetBody ¶
func (o *PostControlNewDiscoveredAPIsParams) SetBody(body PostControlNewDiscoveredAPIsBody)
SetBody adds the body to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) SetContext ¶
func (o *PostControlNewDiscoveredAPIsParams) SetContext(ctx context.Context)
SetContext adds the context to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) SetDefaults ¶
func (o *PostControlNewDiscoveredAPIsParams) SetDefaults()
SetDefaults hydrates default values in the post control new discovered a p is params (not the query body).
All values with no default are reset to their zero value.
func (*PostControlNewDiscoveredAPIsParams) SetHTTPClient ¶
func (o *PostControlNewDiscoveredAPIsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) SetTimeout ¶
func (o *PostControlNewDiscoveredAPIsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) SetXTraceSourceToken ¶
func (o *PostControlNewDiscoveredAPIsParams) SetXTraceSourceToken(xTraceSourceToken *string)
SetXTraceSourceToken adds the xTraceSourceToken to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) WithBody ¶
func (o *PostControlNewDiscoveredAPIsParams) WithBody(body PostControlNewDiscoveredAPIsBody) *PostControlNewDiscoveredAPIsParams
WithBody adds the body to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) WithContext ¶
func (o *PostControlNewDiscoveredAPIsParams) WithContext(ctx context.Context) *PostControlNewDiscoveredAPIsParams
WithContext adds the context to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) WithDefaults ¶
func (o *PostControlNewDiscoveredAPIsParams) WithDefaults() *PostControlNewDiscoveredAPIsParams
WithDefaults hydrates default values in the post control new discovered a p is params (not the query body).
All values with no default are reset to their zero value.
func (*PostControlNewDiscoveredAPIsParams) WithHTTPClient ¶
func (o *PostControlNewDiscoveredAPIsParams) WithHTTPClient(client *http.Client) *PostControlNewDiscoveredAPIsParams
WithHTTPClient adds the HTTPClient to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) WithTimeout ¶
func (o *PostControlNewDiscoveredAPIsParams) WithTimeout(timeout time.Duration) *PostControlNewDiscoveredAPIsParams
WithTimeout adds the timeout to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) WithXTraceSourceToken ¶
func (o *PostControlNewDiscoveredAPIsParams) WithXTraceSourceToken(xTraceSourceToken *string) *PostControlNewDiscoveredAPIsParams
WithXTraceSourceToken adds the xTraceSourceToken to the post control new discovered a p is params
func (*PostControlNewDiscoveredAPIsParams) WriteToRequest ¶
func (o *PostControlNewDiscoveredAPIsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostControlNewDiscoveredAPIsReader ¶
type PostControlNewDiscoveredAPIsReader struct {
// contains filtered or unexported fields
}
PostControlNewDiscoveredAPIsReader is a Reader for the PostControlNewDiscoveredAPIs structure.
func (*PostControlNewDiscoveredAPIsReader) ReadResponse ¶
func (o *PostControlNewDiscoveredAPIsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostTelemetryDefault ¶
type PostTelemetryDefault struct { Payload *models.APIResponse // contains filtered or unexported fields }
PostTelemetryDefault describes a response with status code -1, with default header values.
unknown error
func NewPostTelemetryDefault ¶
func NewPostTelemetryDefault(code int) *PostTelemetryDefault
NewPostTelemetryDefault creates a PostTelemetryDefault with default headers values
func (*PostTelemetryDefault) Code ¶
func (o *PostTelemetryDefault) Code() int
Code gets the status code for the post telemetry default response
func (*PostTelemetryDefault) Error ¶
func (o *PostTelemetryDefault) Error() string
func (*PostTelemetryDefault) GetPayload ¶
func (o *PostTelemetryDefault) GetPayload() *models.APIResponse
type PostTelemetryOK ¶
type PostTelemetryOK struct {
Payload interface{}
}
PostTelemetryOK describes a response with status code 200, with default header values.
Success
func NewPostTelemetryOK ¶
func NewPostTelemetryOK() *PostTelemetryOK
NewPostTelemetryOK creates a PostTelemetryOK with default headers values
func (*PostTelemetryOK) Error ¶
func (o *PostTelemetryOK) Error() string
func (*PostTelemetryOK) GetPayload ¶
func (o *PostTelemetryOK) GetPayload() interface{}
type PostTelemetryParams ¶
type PostTelemetryParams struct { /* XTraceSourceToken. Optional header to authenticate the trace source */ XTraceSourceToken *string // Body. Body *models.Telemetry Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostTelemetryParams contains all the parameters to send to the API endpoint
for the post telemetry operation. Typically these are written to a http.Request.
func NewPostTelemetryParams ¶
func NewPostTelemetryParams() *PostTelemetryParams
NewPostTelemetryParams creates a new PostTelemetryParams 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 NewPostTelemetryParamsWithContext ¶
func NewPostTelemetryParamsWithContext(ctx context.Context) *PostTelemetryParams
NewPostTelemetryParamsWithContext creates a new PostTelemetryParams object with the ability to set a context for a request.
func NewPostTelemetryParamsWithHTTPClient ¶
func NewPostTelemetryParamsWithHTTPClient(client *http.Client) *PostTelemetryParams
NewPostTelemetryParamsWithHTTPClient creates a new PostTelemetryParams object with the ability to set a custom HTTPClient for a request.
func NewPostTelemetryParamsWithTimeout ¶
func NewPostTelemetryParamsWithTimeout(timeout time.Duration) *PostTelemetryParams
NewPostTelemetryParamsWithTimeout creates a new PostTelemetryParams object with the ability to set a timeout on a request.
func (*PostTelemetryParams) SetBody ¶
func (o *PostTelemetryParams) SetBody(body *models.Telemetry)
SetBody adds the body to the post telemetry params
func (*PostTelemetryParams) SetContext ¶
func (o *PostTelemetryParams) SetContext(ctx context.Context)
SetContext adds the context to the post telemetry params
func (*PostTelemetryParams) SetDefaults ¶
func (o *PostTelemetryParams) SetDefaults()
SetDefaults hydrates default values in the post telemetry params (not the query body).
All values with no default are reset to their zero value.
func (*PostTelemetryParams) SetHTTPClient ¶
func (o *PostTelemetryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post telemetry params
func (*PostTelemetryParams) SetTimeout ¶
func (o *PostTelemetryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post telemetry params
func (*PostTelemetryParams) SetXTraceSourceToken ¶
func (o *PostTelemetryParams) SetXTraceSourceToken(xTraceSourceToken *string)
SetXTraceSourceToken adds the xTraceSourceToken to the post telemetry params
func (*PostTelemetryParams) WithBody ¶
func (o *PostTelemetryParams) WithBody(body *models.Telemetry) *PostTelemetryParams
WithBody adds the body to the post telemetry params
func (*PostTelemetryParams) WithContext ¶
func (o *PostTelemetryParams) WithContext(ctx context.Context) *PostTelemetryParams
WithContext adds the context to the post telemetry params
func (*PostTelemetryParams) WithDefaults ¶
func (o *PostTelemetryParams) WithDefaults() *PostTelemetryParams
WithDefaults hydrates default values in the post telemetry params (not the query body).
All values with no default are reset to their zero value.
func (*PostTelemetryParams) WithHTTPClient ¶
func (o *PostTelemetryParams) WithHTTPClient(client *http.Client) *PostTelemetryParams
WithHTTPClient adds the HTTPClient to the post telemetry params
func (*PostTelemetryParams) WithTimeout ¶
func (o *PostTelemetryParams) WithTimeout(timeout time.Duration) *PostTelemetryParams
WithTimeout adds the timeout to the post telemetry params
func (*PostTelemetryParams) WithXTraceSourceToken ¶
func (o *PostTelemetryParams) WithXTraceSourceToken(xTraceSourceToken *string) *PostTelemetryParams
WithXTraceSourceToken adds the xTraceSourceToken to the post telemetry params
func (*PostTelemetryParams) WriteToRequest ¶
func (o *PostTelemetryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostTelemetryReader ¶
type PostTelemetryReader struct {
// contains filtered or unexported fields
}
PostTelemetryReader is a Reader for the PostTelemetry structure.
func (*PostTelemetryReader) ReadResponse ¶
func (o *PostTelemetryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.