Documentation ¶
Index ¶
- type API
- type Client
- type ListEventsForbidden
- type ListEventsInternalServerError
- type ListEventsMethodNotAllowed
- type ListEventsNotFound
- type ListEventsOK
- type ListEventsParams
- func (o *ListEventsParams) SetClusterID(clusterID strfmt.UUID)
- func (o *ListEventsParams) SetContext(ctx context.Context)
- func (o *ListEventsParams) SetHTTPClient(client *http.Client)
- func (o *ListEventsParams) SetHostID(hostID *strfmt.UUID)
- func (o *ListEventsParams) SetTimeout(timeout time.Duration)
- func (o *ListEventsParams) WithClusterID(clusterID strfmt.UUID) *ListEventsParams
- func (o *ListEventsParams) WithContext(ctx context.Context) *ListEventsParams
- func (o *ListEventsParams) WithHTTPClient(client *http.Client) *ListEventsParams
- func (o *ListEventsParams) WithHostID(hostID *strfmt.UUID) *ListEventsParams
- func (o *ListEventsParams) WithTimeout(timeout time.Duration) *ListEventsParams
- func (o *ListEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListEventsReader
- type ListEventsUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* ListEvents lists events for a cluster*/ ListEvents(ctx context.Context, params *ListEventsParams) (*ListEventsOK, error) }
API is the interface of the events client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for events API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new events API client.
func (*Client) ListEvents ¶
func (a *Client) ListEvents(ctx context.Context, params *ListEventsParams) (*ListEventsOK, error)
ListEvents lists events for a cluster
type ListEventsForbidden ¶
type ListEventsForbidden struct {
Payload *models.InfraError
}
ListEventsForbidden handles this case with default header values.
Forbidden.
func NewListEventsForbidden ¶
func NewListEventsForbidden() *ListEventsForbidden
NewListEventsForbidden creates a ListEventsForbidden with default headers values
func (*ListEventsForbidden) Error ¶
func (o *ListEventsForbidden) Error() string
func (*ListEventsForbidden) GetPayload ¶
func (o *ListEventsForbidden) GetPayload() *models.InfraError
type ListEventsInternalServerError ¶
ListEventsInternalServerError handles this case with default header values.
Error.
func NewListEventsInternalServerError ¶
func NewListEventsInternalServerError() *ListEventsInternalServerError
NewListEventsInternalServerError creates a ListEventsInternalServerError with default headers values
func (*ListEventsInternalServerError) Error ¶
func (o *ListEventsInternalServerError) Error() string
func (*ListEventsInternalServerError) GetPayload ¶
func (o *ListEventsInternalServerError) GetPayload() *models.Error
type ListEventsMethodNotAllowed ¶
ListEventsMethodNotAllowed handles this case with default header values.
Method Not Allowed.
func NewListEventsMethodNotAllowed ¶
func NewListEventsMethodNotAllowed() *ListEventsMethodNotAllowed
NewListEventsMethodNotAllowed creates a ListEventsMethodNotAllowed with default headers values
func (*ListEventsMethodNotAllowed) Error ¶
func (o *ListEventsMethodNotAllowed) Error() string
func (*ListEventsMethodNotAllowed) GetPayload ¶
func (o *ListEventsMethodNotAllowed) GetPayload() *models.Error
type ListEventsNotFound ¶
ListEventsNotFound handles this case with default header values.
Error.
func NewListEventsNotFound ¶
func NewListEventsNotFound() *ListEventsNotFound
NewListEventsNotFound creates a ListEventsNotFound with default headers values
func (*ListEventsNotFound) Error ¶
func (o *ListEventsNotFound) Error() string
func (*ListEventsNotFound) GetPayload ¶
func (o *ListEventsNotFound) GetPayload() *models.Error
type ListEventsOK ¶
ListEventsOK handles this case with default header values.
Success.
func NewListEventsOK ¶
func NewListEventsOK() *ListEventsOK
NewListEventsOK creates a ListEventsOK with default headers values
func (*ListEventsOK) Error ¶
func (o *ListEventsOK) Error() string
func (*ListEventsOK) GetPayload ¶
func (o *ListEventsOK) GetPayload() models.EventList
type ListEventsParams ¶
type ListEventsParams struct { /*ClusterID*/ ClusterID strfmt.UUID /*HostID*/ HostID *strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListEventsParams contains all the parameters to send to the API endpoint for the list events operation typically these are written to a http.Request
func NewListEventsParams ¶
func NewListEventsParams() *ListEventsParams
NewListEventsParams creates a new ListEventsParams object with the default values initialized.
func NewListEventsParamsWithContext ¶
func NewListEventsParamsWithContext(ctx context.Context) *ListEventsParams
NewListEventsParamsWithContext creates a new ListEventsParams object with the default values initialized, and the ability to set a context for a request
func NewListEventsParamsWithHTTPClient ¶
func NewListEventsParamsWithHTTPClient(client *http.Client) *ListEventsParams
NewListEventsParamsWithHTTPClient creates a new ListEventsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListEventsParamsWithTimeout ¶
func NewListEventsParamsWithTimeout(timeout time.Duration) *ListEventsParams
NewListEventsParamsWithTimeout creates a new ListEventsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListEventsParams) SetClusterID ¶
func (o *ListEventsParams) SetClusterID(clusterID strfmt.UUID)
SetClusterID adds the clusterId to the list events params
func (*ListEventsParams) SetContext ¶
func (o *ListEventsParams) SetContext(ctx context.Context)
SetContext adds the context to the list events params
func (*ListEventsParams) SetHTTPClient ¶
func (o *ListEventsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list events params
func (*ListEventsParams) SetHostID ¶
func (o *ListEventsParams) SetHostID(hostID *strfmt.UUID)
SetHostID adds the hostId to the list events params
func (*ListEventsParams) SetTimeout ¶
func (o *ListEventsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list events params
func (*ListEventsParams) WithClusterID ¶
func (o *ListEventsParams) WithClusterID(clusterID strfmt.UUID) *ListEventsParams
WithClusterID adds the clusterID to the list events params
func (*ListEventsParams) WithContext ¶
func (o *ListEventsParams) WithContext(ctx context.Context) *ListEventsParams
WithContext adds the context to the list events params
func (*ListEventsParams) WithHTTPClient ¶
func (o *ListEventsParams) WithHTTPClient(client *http.Client) *ListEventsParams
WithHTTPClient adds the HTTPClient to the list events params
func (*ListEventsParams) WithHostID ¶
func (o *ListEventsParams) WithHostID(hostID *strfmt.UUID) *ListEventsParams
WithHostID adds the hostID to the list events params
func (*ListEventsParams) WithTimeout ¶
func (o *ListEventsParams) WithTimeout(timeout time.Duration) *ListEventsParams
WithTimeout adds the timeout to the list events params
func (*ListEventsParams) WriteToRequest ¶
func (o *ListEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListEventsReader ¶
type ListEventsReader struct {
// contains filtered or unexported fields
}
ListEventsReader is a Reader for the ListEvents structure.
func (*ListEventsReader) ReadResponse ¶
func (o *ListEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListEventsUnauthorized ¶
type ListEventsUnauthorized struct {
}ListEventsUnauthorized handles this case with default header values.
Unauthorized.
func NewListEventsUnauthorized ¶
func NewListEventsUnauthorized() *ListEventsUnauthorized
NewListEventsUnauthorized creates a ListEventsUnauthorized with default headers values
func (*ListEventsUnauthorized) Error ¶
func (o *ListEventsUnauthorized) Error() string
func (*ListEventsUnauthorized) GetPayload ¶
func (o *ListEventsUnauthorized) GetPayload() *models.InfraError