Documentation ¶
Index ¶
- type AddExceptionNotificationDefault
- type AddExceptionNotificationOK
- type AddExceptionNotificationParams
- func NewAddExceptionNotificationParams() *AddExceptionNotificationParams
- func NewAddExceptionNotificationParamsWithContext(ctx context.Context) *AddExceptionNotificationParams
- func NewAddExceptionNotificationParamsWithHTTPClient(client *http.Client) *AddExceptionNotificationParams
- func NewAddExceptionNotificationParamsWithTimeout(timeout time.Duration) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) SetBody(body interface{})
- func (o *AddExceptionNotificationParams) SetContext(ctx context.Context)
- func (o *AddExceptionNotificationParams) SetHTTPClient(client *http.Client)
- func (o *AddExceptionNotificationParams) SetTimeout(timeout time.Duration)
- func (o *AddExceptionNotificationParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *AddExceptionNotificationParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *AddExceptionNotificationParams) SetXRequestID(xRequestID *string)
- func (o *AddExceptionNotificationParams) WithBody(body interface{}) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) WithContext(ctx context.Context) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) WithHTTPClient(client *http.Client) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) WithTimeout(timeout time.Duration) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) WithXRequestID(xRequestID *string) *AddExceptionNotificationParams
- func (o *AddExceptionNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddExceptionNotificationReader
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddExceptionNotificationDefault ¶
type AddExceptionNotificationDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
AddExceptionNotificationDefault handles this case with default header values.
error
func NewAddExceptionNotificationDefault ¶
func NewAddExceptionNotificationDefault(code int) *AddExceptionNotificationDefault
NewAddExceptionNotificationDefault creates a AddExceptionNotificationDefault with default headers values
func (*AddExceptionNotificationDefault) Code ¶
func (o *AddExceptionNotificationDefault) Code() int
Code gets the status code for the add exception notification default response
func (*AddExceptionNotificationDefault) Error ¶
func (o *AddExceptionNotificationDefault) Error() string
type AddExceptionNotificationOK ¶
type AddExceptionNotificationOK struct {
Payload *models.V4GenericResponse
}
AddExceptionNotificationOK handles this case with default header values.
Exception notification created
func NewAddExceptionNotificationOK ¶
func NewAddExceptionNotificationOK() *AddExceptionNotificationOK
NewAddExceptionNotificationOK creates a AddExceptionNotificationOK with default headers values
func (*AddExceptionNotificationOK) Error ¶
func (o *AddExceptionNotificationOK) Error() string
type AddExceptionNotificationParams ¶
type AddExceptionNotificationParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body*/ Body interface{} Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddExceptionNotificationParams contains all the parameters to send to the API endpoint for the add exception notification operation typically these are written to a http.Request
func NewAddExceptionNotificationParams ¶
func NewAddExceptionNotificationParams() *AddExceptionNotificationParams
NewAddExceptionNotificationParams creates a new AddExceptionNotificationParams object with the default values initialized.
func NewAddExceptionNotificationParamsWithContext ¶
func NewAddExceptionNotificationParamsWithContext(ctx context.Context) *AddExceptionNotificationParams
NewAddExceptionNotificationParamsWithContext creates a new AddExceptionNotificationParams object with the default values initialized, and the ability to set a context for a request
func NewAddExceptionNotificationParamsWithHTTPClient ¶
func NewAddExceptionNotificationParamsWithHTTPClient(client *http.Client) *AddExceptionNotificationParams
NewAddExceptionNotificationParamsWithHTTPClient creates a new AddExceptionNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddExceptionNotificationParamsWithTimeout ¶
func NewAddExceptionNotificationParamsWithTimeout(timeout time.Duration) *AddExceptionNotificationParams
NewAddExceptionNotificationParamsWithTimeout creates a new AddExceptionNotificationParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddExceptionNotificationParams) SetBody ¶
func (o *AddExceptionNotificationParams) SetBody(body interface{})
SetBody adds the body to the add exception notification params
func (*AddExceptionNotificationParams) SetContext ¶
func (o *AddExceptionNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the add exception notification params
func (*AddExceptionNotificationParams) SetHTTPClient ¶
func (o *AddExceptionNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add exception notification params
func (*AddExceptionNotificationParams) SetTimeout ¶
func (o *AddExceptionNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add exception notification params
func (*AddExceptionNotificationParams) SetXGiantSwarmActivity ¶
func (o *AddExceptionNotificationParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the add exception notification params
func (*AddExceptionNotificationParams) SetXGiantSwarmCmdLine ¶
func (o *AddExceptionNotificationParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add exception notification params
func (*AddExceptionNotificationParams) SetXRequestID ¶
func (o *AddExceptionNotificationParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the add exception notification params
func (*AddExceptionNotificationParams) WithBody ¶
func (o *AddExceptionNotificationParams) WithBody(body interface{}) *AddExceptionNotificationParams
WithBody adds the body to the add exception notification params
func (*AddExceptionNotificationParams) WithContext ¶
func (o *AddExceptionNotificationParams) WithContext(ctx context.Context) *AddExceptionNotificationParams
WithContext adds the context to the add exception notification params
func (*AddExceptionNotificationParams) WithHTTPClient ¶
func (o *AddExceptionNotificationParams) WithHTTPClient(client *http.Client) *AddExceptionNotificationParams
WithHTTPClient adds the HTTPClient to the add exception notification params
func (*AddExceptionNotificationParams) WithTimeout ¶
func (o *AddExceptionNotificationParams) WithTimeout(timeout time.Duration) *AddExceptionNotificationParams
WithTimeout adds the timeout to the add exception notification params
func (*AddExceptionNotificationParams) WithXGiantSwarmActivity ¶
func (o *AddExceptionNotificationParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *AddExceptionNotificationParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the add exception notification params
func (*AddExceptionNotificationParams) WithXGiantSwarmCmdLine ¶
func (o *AddExceptionNotificationParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *AddExceptionNotificationParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add exception notification params
func (*AddExceptionNotificationParams) WithXRequestID ¶
func (o *AddExceptionNotificationParams) WithXRequestID(xRequestID *string) *AddExceptionNotificationParams
WithXRequestID adds the xRequestID to the add exception notification params
func (*AddExceptionNotificationParams) WriteToRequest ¶
func (o *AddExceptionNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddExceptionNotificationReader ¶
type AddExceptionNotificationReader struct {
// contains filtered or unexported fields
}
AddExceptionNotificationReader is a Reader for the AddExceptionNotification structure.
func (*AddExceptionNotificationReader) ReadResponse ¶
func (o *AddExceptionNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for exception notifications API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new exception notifications API client.
func (*Client) AddExceptionNotification ¶
func (a *Client) AddExceptionNotification(params *AddExceptionNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*AddExceptionNotificationOK, error)
AddExceptionNotification notifies giant swarm that an error has occured in one of our clients
This endpoint is used to notify Giant Swarm that an error has occured in one of our clients (like our Web UI or gsctl). It is not intended to be called manually, our clients are configured to report errors when they occur.
Find us in your Slack support channel if you want to contact us about any immediate issues.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client