exception_notifications

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

Code gets the status code for the add exception notification default response

func (*AddExceptionNotificationDefault) Error

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

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

WithContext adds the context to the add exception notification params

func (*AddExceptionNotificationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the add exception notification params

func (*AddExceptionNotificationParams) WithTimeout

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

WithXRequestID adds the xRequestID to the add exception notification params

func (*AddExceptionNotificationParams) WriteToRequest

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL