debugsessions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 debugsessions API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new debugsessions API client.

func (*Client) PopDebugSession

func (a *Client) PopDebugSession(params *PopDebugSessionParams) (*PopDebugSessionOK, error)

PopDebugSession waits and for a debug session is available when it is available it is returned and deleted

Long-poll and wait for a debug session to arrive. The squash client will add a debug session to the debug config once a container associated with this debug config generated a debug event.

func (*Client) PutDebugSession

func (a *Client) PutDebugSession(params *PutDebugSessionParams) (*PutDebugSessionCreated, error)

PutDebugSession adds a new debug session this is used by the squash client

When a debugger is attached, it should create a new debug session object under the debug config that caused the debug session. Only one debug session is allowed per debug config. Once a session is added, The service will stop being watched, and new debug configs for the same service can be created again.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type PopDebugSessionBadRequest

type PopDebugSessionBadRequest struct {
}

PopDebugSessionBadRequest handles this case with default header values.

Invalid ID supplied

func NewPopDebugSessionBadRequest

func NewPopDebugSessionBadRequest() *PopDebugSessionBadRequest

NewPopDebugSessionBadRequest creates a PopDebugSessionBadRequest with default headers values

func (*PopDebugSessionBadRequest) Error

func (o *PopDebugSessionBadRequest) Error() string

type PopDebugSessionNotFound

type PopDebugSessionNotFound struct {
}

PopDebugSessionNotFound handles this case with default header values.

debug config not found

func NewPopDebugSessionNotFound

func NewPopDebugSessionNotFound() *PopDebugSessionNotFound

NewPopDebugSessionNotFound creates a PopDebugSessionNotFound with default headers values

func (*PopDebugSessionNotFound) Error

func (o *PopDebugSessionNotFound) Error() string

type PopDebugSessionOK

type PopDebugSessionOK struct {
	Payload *models.DebugSession
}

PopDebugSessionOK handles this case with default header values.

Debug session returned

func NewPopDebugSessionOK

func NewPopDebugSessionOK() *PopDebugSessionOK

NewPopDebugSessionOK creates a PopDebugSessionOK with default headers values

func (*PopDebugSessionOK) Error

func (o *PopDebugSessionOK) Error() string

type PopDebugSessionParams

type PopDebugSessionParams struct {

	/*XTimeout*/
	XTimeout *float64
	/*DebugConfigID
	  debug config id.

	*/
	DebugConfigID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PopDebugSessionParams contains all the parameters to send to the API endpoint for the pop debug session operation typically these are written to a http.Request

func NewPopDebugSessionParams

func NewPopDebugSessionParams() *PopDebugSessionParams

NewPopDebugSessionParams creates a new PopDebugSessionParams object with the default values initialized.

func NewPopDebugSessionParamsWithContext

func NewPopDebugSessionParamsWithContext(ctx context.Context) *PopDebugSessionParams

NewPopDebugSessionParamsWithContext creates a new PopDebugSessionParams object with the default values initialized, and the ability to set a context for a request

func NewPopDebugSessionParamsWithHTTPClient

func NewPopDebugSessionParamsWithHTTPClient(client *http.Client) *PopDebugSessionParams

NewPopDebugSessionParamsWithHTTPClient creates a new PopDebugSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPopDebugSessionParamsWithTimeout

func NewPopDebugSessionParamsWithTimeout(timeout time.Duration) *PopDebugSessionParams

NewPopDebugSessionParamsWithTimeout creates a new PopDebugSessionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PopDebugSessionParams) SetContext

func (o *PopDebugSessionParams) SetContext(ctx context.Context)

SetContext adds the context to the pop debug session params

func (*PopDebugSessionParams) SetDebugConfigID

func (o *PopDebugSessionParams) SetDebugConfigID(debugConfigID string)

SetDebugConfigID adds the debugConfigId to the pop debug session params

func (*PopDebugSessionParams) SetHTTPClient

func (o *PopDebugSessionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the pop debug session params

func (*PopDebugSessionParams) SetTimeout

func (o *PopDebugSessionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the pop debug session params

func (*PopDebugSessionParams) SetXTimeout

func (o *PopDebugSessionParams) SetXTimeout(xTimeout *float64)

SetXTimeout adds the xTimeout to the pop debug session params

func (*PopDebugSessionParams) WithContext

WithContext adds the context to the pop debug session params

func (*PopDebugSessionParams) WithDebugConfigID

func (o *PopDebugSessionParams) WithDebugConfigID(debugConfigID string) *PopDebugSessionParams

WithDebugConfigID adds the debugConfigID to the pop debug session params

func (*PopDebugSessionParams) WithHTTPClient

func (o *PopDebugSessionParams) WithHTTPClient(client *http.Client) *PopDebugSessionParams

WithHTTPClient adds the HTTPClient to the pop debug session params

func (*PopDebugSessionParams) WithTimeout

func (o *PopDebugSessionParams) WithTimeout(timeout time.Duration) *PopDebugSessionParams

WithTimeout adds the timeout to the pop debug session params

func (*PopDebugSessionParams) WithXTimeout

func (o *PopDebugSessionParams) WithXTimeout(xTimeout *float64) *PopDebugSessionParams

WithXTimeout adds the xTimeout to the pop debug session params

func (*PopDebugSessionParams) WriteToRequest

func (o *PopDebugSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PopDebugSessionReader

type PopDebugSessionReader struct {
	// contains filtered or unexported fields
}

PopDebugSessionReader is a Reader for the PopDebugSession structure.

func (*PopDebugSessionReader) ReadResponse

func (o *PopDebugSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PopDebugSessionRequestTimeout

type PopDebugSessionRequestTimeout struct {
}

PopDebugSessionRequestTimeout handles this case with default header values.

Timeout reached

func NewPopDebugSessionRequestTimeout

func NewPopDebugSessionRequestTimeout() *PopDebugSessionRequestTimeout

NewPopDebugSessionRequestTimeout creates a PopDebugSessionRequestTimeout with default headers values

func (*PopDebugSessionRequestTimeout) Error

type PutDebugSessionBadRequest

type PutDebugSessionBadRequest struct {
}

PutDebugSessionBadRequest handles this case with default header values.

Invalid ID supplied

func NewPutDebugSessionBadRequest

func NewPutDebugSessionBadRequest() *PutDebugSessionBadRequest

NewPutDebugSessionBadRequest creates a PutDebugSessionBadRequest with default headers values

func (*PutDebugSessionBadRequest) Error

func (o *PutDebugSessionBadRequest) Error() string

type PutDebugSessionCreated

type PutDebugSessionCreated struct {
	Payload *models.DebugSession
}

PutDebugSessionCreated handles this case with default header values.

Debug session created

func NewPutDebugSessionCreated

func NewPutDebugSessionCreated() *PutDebugSessionCreated

NewPutDebugSessionCreated creates a PutDebugSessionCreated with default headers values

func (*PutDebugSessionCreated) Error

func (o *PutDebugSessionCreated) Error() string

type PutDebugSessionNotFound

type PutDebugSessionNotFound struct {
}

PutDebugSessionNotFound handles this case with default header values.

debug config not found

func NewPutDebugSessionNotFound

func NewPutDebugSessionNotFound() *PutDebugSessionNotFound

NewPutDebugSessionNotFound creates a PutDebugSessionNotFound with default headers values

func (*PutDebugSessionNotFound) Error

func (o *PutDebugSessionNotFound) Error() string

type PutDebugSessionParams

type PutDebugSessionParams struct {

	/*Body
	  the debug session.

	*/
	Body *models.DebugSession
	/*DebugConfigID
	  debug config id.

	*/
	DebugConfigID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutDebugSessionParams contains all the parameters to send to the API endpoint for the put debug session operation typically these are written to a http.Request

func NewPutDebugSessionParams

func NewPutDebugSessionParams() *PutDebugSessionParams

NewPutDebugSessionParams creates a new PutDebugSessionParams object with the default values initialized.

func NewPutDebugSessionParamsWithContext

func NewPutDebugSessionParamsWithContext(ctx context.Context) *PutDebugSessionParams

NewPutDebugSessionParamsWithContext creates a new PutDebugSessionParams object with the default values initialized, and the ability to set a context for a request

func NewPutDebugSessionParamsWithHTTPClient

func NewPutDebugSessionParamsWithHTTPClient(client *http.Client) *PutDebugSessionParams

NewPutDebugSessionParamsWithHTTPClient creates a new PutDebugSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutDebugSessionParamsWithTimeout

func NewPutDebugSessionParamsWithTimeout(timeout time.Duration) *PutDebugSessionParams

NewPutDebugSessionParamsWithTimeout creates a new PutDebugSessionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutDebugSessionParams) SetBody

func (o *PutDebugSessionParams) SetBody(body *models.DebugSession)

SetBody adds the body to the put debug session params

func (*PutDebugSessionParams) SetContext

func (o *PutDebugSessionParams) SetContext(ctx context.Context)

SetContext adds the context to the put debug session params

func (*PutDebugSessionParams) SetDebugConfigID

func (o *PutDebugSessionParams) SetDebugConfigID(debugConfigID string)

SetDebugConfigID adds the debugConfigId to the put debug session params

func (*PutDebugSessionParams) SetHTTPClient

func (o *PutDebugSessionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put debug session params

func (*PutDebugSessionParams) SetTimeout

func (o *PutDebugSessionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put debug session params

func (*PutDebugSessionParams) WithBody

WithBody adds the body to the put debug session params

func (*PutDebugSessionParams) WithContext

WithContext adds the context to the put debug session params

func (*PutDebugSessionParams) WithDebugConfigID

func (o *PutDebugSessionParams) WithDebugConfigID(debugConfigID string) *PutDebugSessionParams

WithDebugConfigID adds the debugConfigID to the put debug session params

func (*PutDebugSessionParams) WithHTTPClient

func (o *PutDebugSessionParams) WithHTTPClient(client *http.Client) *PutDebugSessionParams

WithHTTPClient adds the HTTPClient to the put debug session params

func (*PutDebugSessionParams) WithTimeout

func (o *PutDebugSessionParams) WithTimeout(timeout time.Duration) *PutDebugSessionParams

WithTimeout adds the timeout to the put debug session params

func (*PutDebugSessionParams) WriteToRequest

func (o *PutDebugSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutDebugSessionPreconditionFailed

type PutDebugSessionPreconditionFailed struct {
}

PutDebugSessionPreconditionFailed handles this case with default header values.

Debug state currently exists

func NewPutDebugSessionPreconditionFailed

func NewPutDebugSessionPreconditionFailed() *PutDebugSessionPreconditionFailed

NewPutDebugSessionPreconditionFailed creates a PutDebugSessionPreconditionFailed with default headers values

func (*PutDebugSessionPreconditionFailed) Error

type PutDebugSessionReader

type PutDebugSessionReader struct {
	// contains filtered or unexported fields
}

PutDebugSessionReader is a Reader for the PutDebugSession structure.

func (*PutDebugSessionReader) ReadResponse

func (o *PutDebugSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutDebugSessionUnprocessableEntity

type PutDebugSessionUnprocessableEntity struct {
}

PutDebugSessionUnprocessableEntity handles this case with default header values.

Invalid input

func NewPutDebugSessionUnprocessableEntity

func NewPutDebugSessionUnprocessableEntity() *PutDebugSessionUnprocessableEntity

NewPutDebugSessionUnprocessableEntity creates a PutDebugSessionUnprocessableEntity with default headers values

func (*PutDebugSessionUnprocessableEntity) Error

Jump to

Keyboard shortcuts

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