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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PopDebugSessionBadRequestCode int = 400

PopDebugSessionBadRequestCode is the HTTP code returned for type PopDebugSessionBadRequest

View Source
const PopDebugSessionNotFoundCode int = 404

PopDebugSessionNotFoundCode is the HTTP code returned for type PopDebugSessionNotFound

View Source
const PopDebugSessionOKCode int = 200

PopDebugSessionOKCode is the HTTP code returned for type PopDebugSessionOK

View Source
const PopDebugSessionRequestTimeoutCode int = 408

PopDebugSessionRequestTimeoutCode is the HTTP code returned for type PopDebugSessionRequestTimeout

View Source
const PutDebugSessionBadRequestCode int = 400

PutDebugSessionBadRequestCode is the HTTP code returned for type PutDebugSessionBadRequest

View Source
const PutDebugSessionCreatedCode int = 201

PutDebugSessionCreatedCode is the HTTP code returned for type PutDebugSessionCreated

View Source
const PutDebugSessionNotFoundCode int = 404

PutDebugSessionNotFoundCode is the HTTP code returned for type PutDebugSessionNotFound

View Source
const PutDebugSessionPreconditionFailedCode int = 412

PutDebugSessionPreconditionFailedCode is the HTTP code returned for type PutDebugSessionPreconditionFailed

View Source
const PutDebugSessionUnprocessableEntityCode int = 422

PutDebugSessionUnprocessableEntityCode is the HTTP code returned for type PutDebugSessionUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type PopDebugSession

type PopDebugSession struct {
	Context *middleware.Context
	Handler PopDebugSessionHandler
}

PopDebugSession swagger:route DELETE /debugconfig/{debugConfigId}/session debugsessions popDebugSession

Wait 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 NewPopDebugSession

func NewPopDebugSession(ctx *middleware.Context, handler PopDebugSessionHandler) *PopDebugSession

NewPopDebugSession creates a new http.Handler for the pop debug session operation

func (*PopDebugSession) ServeHTTP

func (o *PopDebugSession) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PopDebugSessionBadRequest

type PopDebugSessionBadRequest struct {
}

PopDebugSessionBadRequest Invalid ID supplied

swagger:response popDebugSessionBadRequest

func NewPopDebugSessionBadRequest

func NewPopDebugSessionBadRequest() *PopDebugSessionBadRequest

NewPopDebugSessionBadRequest creates PopDebugSessionBadRequest with default headers values

func (*PopDebugSessionBadRequest) WriteResponse

func (o *PopDebugSessionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PopDebugSessionHandler

type PopDebugSessionHandler interface {
	Handle(PopDebugSessionParams) middleware.Responder
}

PopDebugSessionHandler interface for that can handle valid pop debug session params

type PopDebugSessionHandlerFunc

type PopDebugSessionHandlerFunc func(PopDebugSessionParams) middleware.Responder

PopDebugSessionHandlerFunc turns a function with the right signature into a pop debug session handler

func (PopDebugSessionHandlerFunc) Handle

Handle executing the request and returning a response

type PopDebugSessionNotFound

type PopDebugSessionNotFound struct {
}

PopDebugSessionNotFound debug config not found

swagger:response popDebugSessionNotFound

func NewPopDebugSessionNotFound

func NewPopDebugSessionNotFound() *PopDebugSessionNotFound

NewPopDebugSessionNotFound creates PopDebugSessionNotFound with default headers values

func (*PopDebugSessionNotFound) WriteResponse

func (o *PopDebugSessionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PopDebugSessionOK

type PopDebugSessionOK struct {

	/*
	  In: Body
	*/
	Payload *models.DebugSession `json:"body,omitempty"`
}

PopDebugSessionOK Debug session returned

swagger:response popDebugSessionOK

func NewPopDebugSessionOK

func NewPopDebugSessionOK() *PopDebugSessionOK

NewPopDebugSessionOK creates PopDebugSessionOK with default headers values

func (*PopDebugSessionOK) SetPayload

func (o *PopDebugSessionOK) SetPayload(payload *models.DebugSession)

SetPayload sets the payload to the pop debug session o k response

func (*PopDebugSessionOK) WithPayload

func (o *PopDebugSessionOK) WithPayload(payload *models.DebugSession) *PopDebugSessionOK

WithPayload adds the payload to the pop debug session o k response

func (*PopDebugSessionOK) WriteResponse

func (o *PopDebugSessionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PopDebugSessionParams

type PopDebugSessionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  In: header
	*/
	XTimeout *float64
	/*debug config id.
	  Required: true
	  In: path
	*/
	DebugConfigID string
}

PopDebugSessionParams contains all the bound params for the pop debug session operation typically these are obtained from a http.Request

swagger:parameters popDebugSession

func NewPopDebugSessionParams

func NewPopDebugSessionParams() PopDebugSessionParams

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

func (*PopDebugSessionParams) BindRequest

func (o *PopDebugSessionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type PopDebugSessionRequestTimeout

type PopDebugSessionRequestTimeout struct {
}

PopDebugSessionRequestTimeout Timeout reached

swagger:response popDebugSessionRequestTimeout

func NewPopDebugSessionRequestTimeout

func NewPopDebugSessionRequestTimeout() *PopDebugSessionRequestTimeout

NewPopDebugSessionRequestTimeout creates PopDebugSessionRequestTimeout with default headers values

func (*PopDebugSessionRequestTimeout) WriteResponse

func (o *PopDebugSessionRequestTimeout) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PopDebugSessionURL

type PopDebugSessionURL struct {
	DebugConfigID string
	// contains filtered or unexported fields
}

PopDebugSessionURL generates an URL for the pop debug session operation

func (*PopDebugSessionURL) Build

func (o *PopDebugSessionURL) Build() (*url.URL, error)

Build a url path and query string

func (*PopDebugSessionURL) BuildFull

func (o *PopDebugSessionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PopDebugSessionURL) Must

func (o *PopDebugSessionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PopDebugSessionURL) SetBasePath

func (o *PopDebugSessionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PopDebugSessionURL) String

func (o *PopDebugSessionURL) String() string

String returns the string representation of the path with query string

func (*PopDebugSessionURL) StringFull

func (o *PopDebugSessionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PopDebugSessionURL) WithBasePath

func (o *PopDebugSessionURL) WithBasePath(bp string) *PopDebugSessionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PutDebugSession

type PutDebugSession struct {
	Context *middleware.Context
	Handler PutDebugSessionHandler
}

PutDebugSession swagger:route PUT /debugconfig/{debugConfigId}/session debugsessions putDebugSession

Add 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 NewPutDebugSession

func NewPutDebugSession(ctx *middleware.Context, handler PutDebugSessionHandler) *PutDebugSession

NewPutDebugSession creates a new http.Handler for the put debug session operation

func (*PutDebugSession) ServeHTTP

func (o *PutDebugSession) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PutDebugSessionBadRequest

type PutDebugSessionBadRequest struct {
}

PutDebugSessionBadRequest Invalid ID supplied

swagger:response putDebugSessionBadRequest

func NewPutDebugSessionBadRequest

func NewPutDebugSessionBadRequest() *PutDebugSessionBadRequest

NewPutDebugSessionBadRequest creates PutDebugSessionBadRequest with default headers values

func (*PutDebugSessionBadRequest) WriteResponse

func (o *PutDebugSessionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutDebugSessionCreated

type PutDebugSessionCreated struct {

	/*
	  In: Body
	*/
	Payload *models.DebugSession `json:"body,omitempty"`
}

PutDebugSessionCreated Debug session created

swagger:response putDebugSessionCreated

func NewPutDebugSessionCreated

func NewPutDebugSessionCreated() *PutDebugSessionCreated

NewPutDebugSessionCreated creates PutDebugSessionCreated with default headers values

func (*PutDebugSessionCreated) SetPayload

func (o *PutDebugSessionCreated) SetPayload(payload *models.DebugSession)

SetPayload sets the payload to the put debug session created response

func (*PutDebugSessionCreated) WithPayload

WithPayload adds the payload to the put debug session created response

func (*PutDebugSessionCreated) WriteResponse

func (o *PutDebugSessionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutDebugSessionHandler

type PutDebugSessionHandler interface {
	Handle(PutDebugSessionParams) middleware.Responder
}

PutDebugSessionHandler interface for that can handle valid put debug session params

type PutDebugSessionHandlerFunc

type PutDebugSessionHandlerFunc func(PutDebugSessionParams) middleware.Responder

PutDebugSessionHandlerFunc turns a function with the right signature into a put debug session handler

func (PutDebugSessionHandlerFunc) Handle

Handle executing the request and returning a response

type PutDebugSessionNotFound

type PutDebugSessionNotFound struct {
}

PutDebugSessionNotFound debug config not found

swagger:response putDebugSessionNotFound

func NewPutDebugSessionNotFound

func NewPutDebugSessionNotFound() *PutDebugSessionNotFound

NewPutDebugSessionNotFound creates PutDebugSessionNotFound with default headers values

func (*PutDebugSessionNotFound) WriteResponse

func (o *PutDebugSessionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutDebugSessionParams

type PutDebugSessionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*the debug session.
	  Required: true
	  In: body
	*/
	Body *models.DebugSession
	/*debug config id.
	  Required: true
	  In: path
	*/
	DebugConfigID string
}

PutDebugSessionParams contains all the bound params for the put debug session operation typically these are obtained from a http.Request

swagger:parameters putDebugSession

func NewPutDebugSessionParams

func NewPutDebugSessionParams() PutDebugSessionParams

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

func (*PutDebugSessionParams) BindRequest

func (o *PutDebugSessionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type PutDebugSessionPreconditionFailed

type PutDebugSessionPreconditionFailed struct {
}

PutDebugSessionPreconditionFailed Debug state currently exists

swagger:response putDebugSessionPreconditionFailed

func NewPutDebugSessionPreconditionFailed

func NewPutDebugSessionPreconditionFailed() *PutDebugSessionPreconditionFailed

NewPutDebugSessionPreconditionFailed creates PutDebugSessionPreconditionFailed with default headers values

func (*PutDebugSessionPreconditionFailed) WriteResponse

func (o *PutDebugSessionPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutDebugSessionURL

type PutDebugSessionURL struct {
	DebugConfigID string
	// contains filtered or unexported fields
}

PutDebugSessionURL generates an URL for the put debug session operation

func (*PutDebugSessionURL) Build

func (o *PutDebugSessionURL) Build() (*url.URL, error)

Build a url path and query string

func (*PutDebugSessionURL) BuildFull

func (o *PutDebugSessionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PutDebugSessionURL) Must

func (o *PutDebugSessionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PutDebugSessionURL) SetBasePath

func (o *PutDebugSessionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PutDebugSessionURL) String

func (o *PutDebugSessionURL) String() string

String returns the string representation of the path with query string

func (*PutDebugSessionURL) StringFull

func (o *PutDebugSessionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PutDebugSessionURL) WithBasePath

func (o *PutDebugSessionURL) WithBasePath(bp string) *PutDebugSessionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PutDebugSessionUnprocessableEntity

type PutDebugSessionUnprocessableEntity struct {
}

PutDebugSessionUnprocessableEntity Invalid input

swagger:response putDebugSessionUnprocessableEntity

func NewPutDebugSessionUnprocessableEntity

func NewPutDebugSessionUnprocessableEntity() *PutDebugSessionUnprocessableEntity

NewPutDebugSessionUnprocessableEntity creates PutDebugSessionUnprocessableEntity with default headers values

func (*PutDebugSessionUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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