Documentation ¶
Index ¶
- type Client
- type PostLogBadRequest
- type PostLogOK
- type PostLogParams
- func (o *PostLogParams) SetContext(ctx context.Context)
- func (o *PostLogParams) SetHTTPClient(client *http.Client)
- func (o *PostLogParams) SetLog(log *models.Log)
- func (o *PostLogParams) SetTimeout(timeout time.Duration)
- func (o *PostLogParams) WithContext(ctx context.Context) *PostLogParams
- func (o *PostLogParams) WithHTTPClient(client *http.Client) *PostLogParams
- func (o *PostLogParams) WithLog(log *models.Log) *PostLogParams
- func (o *PostLogParams) WithTimeout(timeout time.Duration) *PostLogParams
- func (o *PostLogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostLogReader
- type PostLogUnauthorized
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 phone home API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new phone home API client.
func (*Client) PostLog ¶
func (a *Client) PostLog(params *PostLogParams, authInfo runtime.ClientAuthInfoWriter) (*PostLogOK, error)
PostLog useds to report back to server a logged event
Returns 200 ok if successfully persisted
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type PostLogBadRequest ¶
type PostLogBadRequest struct { }
PostLogBadRequest handles this case with default header values.
Log event unsuccessfully ingested
func NewPostLogBadRequest ¶
func NewPostLogBadRequest() *PostLogBadRequest
NewPostLogBadRequest creates a PostLogBadRequest with default headers values
func (*PostLogBadRequest) Error ¶
func (o *PostLogBadRequest) Error() string
type PostLogOK ¶
type PostLogOK struct { }
PostLogOK handles this case with default header values.
Log event successfully ingested
func NewPostLogOK ¶
func NewPostLogOK() *PostLogOK
NewPostLogOK creates a PostLogOK with default headers values
type PostLogParams ¶
type PostLogParams struct { /*Log*/ Log *models.Log Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostLogParams contains all the parameters to send to the API endpoint for the post log operation typically these are written to a http.Request
func NewPostLogParams ¶
func NewPostLogParams() *PostLogParams
NewPostLogParams creates a new PostLogParams object with the default values initialized.
func NewPostLogParamsWithContext ¶
func NewPostLogParamsWithContext(ctx context.Context) *PostLogParams
NewPostLogParamsWithContext creates a new PostLogParams object with the default values initialized, and the ability to set a context for a request
func NewPostLogParamsWithHTTPClient ¶
func NewPostLogParamsWithHTTPClient(client *http.Client) *PostLogParams
NewPostLogParamsWithHTTPClient creates a new PostLogParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostLogParamsWithTimeout ¶
func NewPostLogParamsWithTimeout(timeout time.Duration) *PostLogParams
NewPostLogParamsWithTimeout creates a new PostLogParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostLogParams) SetContext ¶
func (o *PostLogParams) SetContext(ctx context.Context)
SetContext adds the context to the post log params
func (*PostLogParams) SetHTTPClient ¶
func (o *PostLogParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post log params
func (*PostLogParams) SetLog ¶
func (o *PostLogParams) SetLog(log *models.Log)
SetLog adds the log to the post log params
func (*PostLogParams) SetTimeout ¶
func (o *PostLogParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post log params
func (*PostLogParams) WithContext ¶
func (o *PostLogParams) WithContext(ctx context.Context) *PostLogParams
WithContext adds the context to the post log params
func (*PostLogParams) WithHTTPClient ¶
func (o *PostLogParams) WithHTTPClient(client *http.Client) *PostLogParams
WithHTTPClient adds the HTTPClient to the post log params
func (*PostLogParams) WithLog ¶
func (o *PostLogParams) WithLog(log *models.Log) *PostLogParams
WithLog adds the log to the post log params
func (*PostLogParams) WithTimeout ¶
func (o *PostLogParams) WithTimeout(timeout time.Duration) *PostLogParams
WithTimeout adds the timeout to the post log params
func (*PostLogParams) WriteToRequest ¶
func (o *PostLogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostLogReader ¶
type PostLogReader struct {
// contains filtered or unexported fields
}
PostLogReader is a Reader for the PostLog structure.
func (*PostLogReader) ReadResponse ¶
func (o *PostLogReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostLogUnauthorized ¶
type PostLogUnauthorized struct { }
PostLogUnauthorized handles this case with default header values.
Unauthorized request
func NewPostLogUnauthorized ¶
func NewPostLogUnauthorized() *PostLogUnauthorized
NewPostLogUnauthorized creates a PostLogUnauthorized with default headers values
func (*PostLogUnauthorized) Error ¶
func (o *PostLogUnauthorized) Error() string