Documentation
¶
Index ¶
- Constants
- type CheckPodTicket
- type CheckPodTicketForbidden
- type CheckPodTicketHandler
- type CheckPodTicketHandlerFunc
- type CheckPodTicketInternalServerError
- func (o *CheckPodTicketInternalServerError) SetPayload(payload *models.Error)
- func (o *CheckPodTicketInternalServerError) WithPayload(payload *models.Error) *CheckPodTicketInternalServerError
- func (o *CheckPodTicketInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CheckPodTicketOK
- type CheckPodTicketParams
- type CheckPodTicketURL
- func (o *CheckPodTicketURL) Build() (*url.URL, error)
- func (o *CheckPodTicketURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CheckPodTicketURL) Must(u *url.URL, err error) *url.URL
- func (o *CheckPodTicketURL) SetBasePath(bp string)
- func (o *CheckPodTicketURL) String() string
- func (o *CheckPodTicketURL) StringFull(scheme, host string) string
- func (o *CheckPodTicketURL) WithBasePath(bp string) *CheckPodTicketURL
- type CreatePodTicket
- type CreatePodTicketCreated
- type CreatePodTicketForbidden
- type CreatePodTicketHandler
- type CreatePodTicketHandlerFunc
- type CreatePodTicketInternalServerError
- func (o *CreatePodTicketInternalServerError) SetPayload(payload *models.Error)
- func (o *CreatePodTicketInternalServerError) WithPayload(payload *models.Error) *CreatePodTicketInternalServerError
- func (o *CreatePodTicketInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreatePodTicketParams
- type CreatePodTicketURL
- func (o *CreatePodTicketURL) Build() (*url.URL, error)
- func (o *CreatePodTicketURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreatePodTicketURL) Must(u *url.URL, err error) *url.URL
- func (o *CreatePodTicketURL) SetBasePath(bp string)
- func (o *CreatePodTicketURL) String() string
- func (o *CreatePodTicketURL) StringFull(scheme, host string) string
- func (o *CreatePodTicketURL) WithBasePath(bp string) *CreatePodTicketURL
Constants ¶
const CheckPodTicketForbiddenCode int = 403
CheckPodTicketForbiddenCode is the HTTP code returned for type CheckPodTicketForbidden
const CheckPodTicketInternalServerErrorCode int = 500
CheckPodTicketInternalServerErrorCode is the HTTP code returned for type CheckPodTicketInternalServerError
const CheckPodTicketOKCode int = 200
CheckPodTicketOKCode is the HTTP code returned for type CheckPodTicketOK
const CreatePodTicketCreatedCode int = 201
CreatePodTicketCreatedCode is the HTTP code returned for type CreatePodTicketCreated
const CreatePodTicketForbiddenCode int = 403
CreatePodTicketForbiddenCode is the HTTP code returned for type CreatePodTicketForbidden
const CreatePodTicketInternalServerErrorCode int = 500
CreatePodTicketInternalServerErrorCode is the HTTP code returned for type CreatePodTicketInternalServerError
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckPodTicket ¶
type CheckPodTicket struct { Context *middleware.Context Handler CheckPodTicketHandler }
CheckPodTicket swagger:route GET /visit/pod/ticket/check Pod checkPodTicket
Check Pod Ticket, and delete it
func NewCheckPodTicket ¶
func NewCheckPodTicket(ctx *middleware.Context, handler CheckPodTicketHandler) *CheckPodTicket
NewCheckPodTicket creates a new http.Handler for the check pod ticket operation
func (*CheckPodTicket) ServeHTTP ¶
func (o *CheckPodTicket) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CheckPodTicketForbidden ¶
type CheckPodTicketForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CheckPodTicketForbidden Check Pod Ticket Failed, cause do not have permisssion
swagger:response checkPodTicketForbidden
func NewCheckPodTicketForbidden ¶
func NewCheckPodTicketForbidden() *CheckPodTicketForbidden
NewCheckPodTicketForbidden creates CheckPodTicketForbidden with default headers values
func (*CheckPodTicketForbidden) SetPayload ¶
func (o *CheckPodTicketForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the check pod ticket forbidden response
func (*CheckPodTicketForbidden) WithPayload ¶
func (o *CheckPodTicketForbidden) WithPayload(payload *models.Error) *CheckPodTicketForbidden
WithPayload adds the payload to the check pod ticket forbidden response
func (*CheckPodTicketForbidden) WriteResponse ¶
func (o *CheckPodTicketForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckPodTicketHandler ¶
type CheckPodTicketHandler interface {
Handle(CheckPodTicketParams) middleware.Responder
}
CheckPodTicketHandler interface for that can handle valid check pod ticket params
type CheckPodTicketHandlerFunc ¶
type CheckPodTicketHandlerFunc func(CheckPodTicketParams) middleware.Responder
CheckPodTicketHandlerFunc turns a function with the right signature into a check pod ticket handler
func (CheckPodTicketHandlerFunc) Handle ¶
func (fn CheckPodTicketHandlerFunc) Handle(params CheckPodTicketParams) middleware.Responder
Handle executing the request and returning a response
type CheckPodTicketInternalServerError ¶
type CheckPodTicketInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CheckPodTicketInternalServerError Server Error
swagger:response checkPodTicketInternalServerError
func NewCheckPodTicketInternalServerError ¶
func NewCheckPodTicketInternalServerError() *CheckPodTicketInternalServerError
NewCheckPodTicketInternalServerError creates CheckPodTicketInternalServerError with default headers values
func (*CheckPodTicketInternalServerError) SetPayload ¶
func (o *CheckPodTicketInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the check pod ticket internal server error response
func (*CheckPodTicketInternalServerError) WithPayload ¶
func (o *CheckPodTicketInternalServerError) WithPayload(payload *models.Error) *CheckPodTicketInternalServerError
WithPayload adds the payload to the check pod ticket internal server error response
func (*CheckPodTicketInternalServerError) WriteResponse ¶
func (o *CheckPodTicketInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckPodTicketOK ¶
type CheckPodTicketOK struct { /* In: Body */ Payload *models.SSHPodTicket `json:"body,omitempty"` }
CheckPodTicketOK Check Pod Ticket Success, return pod ticket info.
swagger:response checkPodTicketOK
func NewCheckPodTicketOK ¶
func NewCheckPodTicketOK() *CheckPodTicketOK
NewCheckPodTicketOK creates CheckPodTicketOK with default headers values
func (*CheckPodTicketOK) SetPayload ¶
func (o *CheckPodTicketOK) SetPayload(payload *models.SSHPodTicket)
SetPayload sets the payload to the check pod ticket o k response
func (*CheckPodTicketOK) WithPayload ¶
func (o *CheckPodTicketOK) WithPayload(payload *models.SSHPodTicket) *CheckPodTicketOK
WithPayload adds the payload to the check pod ticket o k response
func (*CheckPodTicketOK) WriteResponse ¶
func (o *CheckPodTicketOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckPodTicketParams ¶
type CheckPodTicketParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: query */ TicketValue string }
CheckPodTicketParams contains all the bound params for the check pod ticket operation typically these are obtained from a http.Request
swagger:parameters CheckPodTicket
func NewCheckPodTicketParams ¶
func NewCheckPodTicketParams() CheckPodTicketParams
NewCheckPodTicketParams creates a new CheckPodTicketParams object
There are no default values defined in the spec.
func (*CheckPodTicketParams) BindRequest ¶
func (o *CheckPodTicketParams) 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.
To ensure default values, the struct must have been initialized with NewCheckPodTicketParams() beforehand.
type CheckPodTicketURL ¶
type CheckPodTicketURL struct { TicketValue string // contains filtered or unexported fields }
CheckPodTicketURL generates an URL for the check pod ticket operation
func (*CheckPodTicketURL) Build ¶
func (o *CheckPodTicketURL) Build() (*url.URL, error)
Build a url path and query string
func (*CheckPodTicketURL) BuildFull ¶
func (o *CheckPodTicketURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CheckPodTicketURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CheckPodTicketURL) SetBasePath ¶
func (o *CheckPodTicketURL) 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 (*CheckPodTicketURL) String ¶
func (o *CheckPodTicketURL) String() string
String returns the string representation of the path with query string
func (*CheckPodTicketURL) StringFull ¶
func (o *CheckPodTicketURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CheckPodTicketURL) WithBasePath ¶
func (o *CheckPodTicketURL) WithBasePath(bp string) *CheckPodTicketURL
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 CreatePodTicket ¶
type CreatePodTicket struct { Context *middleware.Context Handler CreatePodTicketHandler }
CreatePodTicket swagger:route POST /visit/pod/ticket/create Pod createPodTicket
Create Visit Pod Once Ticket
func NewCreatePodTicket ¶
func NewCreatePodTicket(ctx *middleware.Context, handler CreatePodTicketHandler) *CreatePodTicket
NewCreatePodTicket creates a new http.Handler for the create pod ticket operation
func (*CreatePodTicket) ServeHTTP ¶
func (o *CreatePodTicket) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreatePodTicketCreated ¶
type CreatePodTicketCreated struct { /* In: Body */ Payload *models.SSHPodTicket `json:"body,omitempty"` }
CreatePodTicketCreated Create Pod Ticket Success, return pod ticket info.
swagger:response createPodTicketCreated
func NewCreatePodTicketCreated ¶
func NewCreatePodTicketCreated() *CreatePodTicketCreated
NewCreatePodTicketCreated creates CreatePodTicketCreated with default headers values
func (*CreatePodTicketCreated) SetPayload ¶
func (o *CreatePodTicketCreated) SetPayload(payload *models.SSHPodTicket)
SetPayload sets the payload to the create pod ticket created response
func (*CreatePodTicketCreated) WithPayload ¶
func (o *CreatePodTicketCreated) WithPayload(payload *models.SSHPodTicket) *CreatePodTicketCreated
WithPayload adds the payload to the create pod ticket created response
func (*CreatePodTicketCreated) WriteResponse ¶
func (o *CreatePodTicketCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePodTicketForbidden ¶
type CreatePodTicketForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreatePodTicketForbidden Create Pod Ticket Failed, cause do not have permisssion
swagger:response createPodTicketForbidden
func NewCreatePodTicketForbidden ¶
func NewCreatePodTicketForbidden() *CreatePodTicketForbidden
NewCreatePodTicketForbidden creates CreatePodTicketForbidden with default headers values
func (*CreatePodTicketForbidden) SetPayload ¶
func (o *CreatePodTicketForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the create pod ticket forbidden response
func (*CreatePodTicketForbidden) WithPayload ¶
func (o *CreatePodTicketForbidden) WithPayload(payload *models.Error) *CreatePodTicketForbidden
WithPayload adds the payload to the create pod ticket forbidden response
func (*CreatePodTicketForbidden) WriteResponse ¶
func (o *CreatePodTicketForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePodTicketHandler ¶
type CreatePodTicketHandler interface {
Handle(CreatePodTicketParams, *models.AuthInfo) middleware.Responder
}
CreatePodTicketHandler interface for that can handle valid create pod ticket params
type CreatePodTicketHandlerFunc ¶
type CreatePodTicketHandlerFunc func(CreatePodTicketParams, *models.AuthInfo) middleware.Responder
CreatePodTicketHandlerFunc turns a function with the right signature into a create pod ticket handler
func (CreatePodTicketHandlerFunc) Handle ¶
func (fn CreatePodTicketHandlerFunc) Handle(params CreatePodTicketParams, principal *models.AuthInfo) middleware.Responder
Handle executing the request and returning a response
type CreatePodTicketInternalServerError ¶
type CreatePodTicketInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreatePodTicketInternalServerError Server Error
swagger:response createPodTicketInternalServerError
func NewCreatePodTicketInternalServerError ¶
func NewCreatePodTicketInternalServerError() *CreatePodTicketInternalServerError
NewCreatePodTicketInternalServerError creates CreatePodTicketInternalServerError with default headers values
func (*CreatePodTicketInternalServerError) SetPayload ¶
func (o *CreatePodTicketInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create pod ticket internal server error response
func (*CreatePodTicketInternalServerError) WithPayload ¶
func (o *CreatePodTicketInternalServerError) WithPayload(payload *models.Error) *CreatePodTicketInternalServerError
WithPayload adds the payload to the create pod ticket internal server error response
func (*CreatePodTicketInternalServerError) WriteResponse ¶
func (o *CreatePodTicketInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePodTicketParams ¶
type CreatePodTicketParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.GetTicketReq }
CreatePodTicketParams contains all the bound params for the create pod ticket operation typically these are obtained from a http.Request
swagger:parameters CreatePodTicket
func NewCreatePodTicketParams ¶
func NewCreatePodTicketParams() CreatePodTicketParams
NewCreatePodTicketParams creates a new CreatePodTicketParams object
There are no default values defined in the spec.
func (*CreatePodTicketParams) BindRequest ¶
func (o *CreatePodTicketParams) 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.
To ensure default values, the struct must have been initialized with NewCreatePodTicketParams() beforehand.
type CreatePodTicketURL ¶
type CreatePodTicketURL struct {
// contains filtered or unexported fields
}
CreatePodTicketURL generates an URL for the create pod ticket operation
func (*CreatePodTicketURL) Build ¶
func (o *CreatePodTicketURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreatePodTicketURL) BuildFull ¶
func (o *CreatePodTicketURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreatePodTicketURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreatePodTicketURL) SetBasePath ¶
func (o *CreatePodTicketURL) 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 (*CreatePodTicketURL) String ¶
func (o *CreatePodTicketURL) String() string
String returns the string representation of the path with query string
func (*CreatePodTicketURL) StringFull ¶
func (o *CreatePodTicketURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreatePodTicketURL) WithBasePath ¶
func (o *CreatePodTicketURL) WithBasePath(bp string) *CreatePodTicketURL
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