Documentation ¶
Index ¶
- Constants
- type CreateSession
- type CreateSessionBadRequest
- type CreateSessionCreated
- type CreateSessionHandler
- type CreateSessionHandlerFunc
- type CreateSessionNotFound
- type CreateSessionParams
- type CreateSessionTooManyRequests
- func (o *CreateSessionTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateSessionTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateSessionTooManyRequests
- func (o *CreateSessionTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSessionURL
- func (o *CreateSessionURL) Build() (*url.URL, error)
- func (o *CreateSessionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSessionURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSessionURL) SetBasePath(bp string)
- func (o *CreateSessionURL) String() string
- func (o *CreateSessionURL) StringFull(scheme, host string) string
- func (o *CreateSessionURL) WithBasePath(bp string) *CreateSessionURL
- type CreateSessionUnauthorized
- type DeleteSession
- type DeleteSessionBadRequest
- type DeleteSessionConflict
- type DeleteSessionHandler
- type DeleteSessionHandlerFunc
- type DeleteSessionOK
- type DeleteSessionParams
- type DeleteSessionTooManyRequests
- func (o *DeleteSessionTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DeleteSessionTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionTooManyRequests
- func (o *DeleteSessionTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteSessionURL
- func (o *DeleteSessionURL) Build() (*url.URL, error)
- func (o *DeleteSessionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSessionURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSessionURL) SetBasePath(bp string)
- func (o *DeleteSessionURL) String() string
- func (o *DeleteSessionURL) StringFull(scheme, host string) string
- func (o *DeleteSessionURL) WithBasePath(bp string) *DeleteSessionURL
- type DeleteSessionUnauthorized
- type DetailSession
- type DetailSessionHandler
- type DetailSessionHandlerFunc
- type DetailSessionNotFound
- type DetailSessionOK
- type DetailSessionParams
- type DetailSessionURL
- func (o *DetailSessionURL) Build() (*url.URL, error)
- func (o *DetailSessionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DetailSessionURL) Must(u *url.URL, err error) *url.URL
- func (o *DetailSessionURL) SetBasePath(bp string)
- func (o *DetailSessionURL) String() string
- func (o *DetailSessionURL) StringFull(scheme, host string) string
- func (o *DetailSessionURL) WithBasePath(bp string) *DetailSessionURL
- type DetailSessionUnauthorized
- type ListSessions
- type ListSessionsBadRequest
- type ListSessionsHandler
- type ListSessionsHandlerFunc
- type ListSessionsOK
- type ListSessionsParams
- type ListSessionsTooManyRequests
- func (o *ListSessionsTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *ListSessionsTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *ListSessionsTooManyRequests
- func (o *ListSessionsTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListSessionsURL
- func (o *ListSessionsURL) Build() (*url.URL, error)
- func (o *ListSessionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListSessionsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListSessionsURL) SetBasePath(bp string)
- func (o *ListSessionsURL) String() string
- func (o *ListSessionsURL) StringFull(scheme, host string) string
- func (o *ListSessionsURL) WithBasePath(bp string) *ListSessionsURL
- type ListSessionsUnauthorized
Constants ¶
const CreateSessionBadRequestCode int = 400
CreateSessionBadRequestCode is the HTTP code returned for type CreateSessionBadRequest
const CreateSessionCreatedCode int = 201
CreateSessionCreatedCode is the HTTP code returned for type CreateSessionCreated
const CreateSessionNotFoundCode int = 404
CreateSessionNotFoundCode is the HTTP code returned for type CreateSessionNotFound
const CreateSessionTooManyRequestsCode int = 429
CreateSessionTooManyRequestsCode is the HTTP code returned for type CreateSessionTooManyRequests
CreateSessionUnauthorizedCode is the HTTP code returned for type CreateSessionUnauthorized
const DeleteSessionBadRequestCode int = 400
DeleteSessionBadRequestCode is the HTTP code returned for type DeleteSessionBadRequest
const DeleteSessionConflictCode int = 409
DeleteSessionConflictCode is the HTTP code returned for type DeleteSessionConflict
const DeleteSessionOKCode int = 200
DeleteSessionOKCode is the HTTP code returned for type DeleteSessionOK
const DeleteSessionTooManyRequestsCode int = 429
DeleteSessionTooManyRequestsCode is the HTTP code returned for type DeleteSessionTooManyRequests
DeleteSessionUnauthorizedCode is the HTTP code returned for type DeleteSessionUnauthorized
const DetailSessionNotFoundCode int = 404
DetailSessionNotFoundCode is the HTTP code returned for type DetailSessionNotFound
const DetailSessionOKCode int = 200
DetailSessionOKCode is the HTTP code returned for type DetailSessionOK
DetailSessionUnauthorizedCode is the HTTP code returned for type DetailSessionUnauthorized
const ListSessionsBadRequestCode int = 400
ListSessionsBadRequestCode is the HTTP code returned for type ListSessionsBadRequest
const ListSessionsOKCode int = 200
ListSessionsOKCode is the HTTP code returned for type ListSessionsOK
const ListSessionsTooManyRequestsCode int = 429
ListSessionsTooManyRequestsCode is the HTTP code returned for type ListSessionsTooManyRequests
ListSessionsUnauthorizedCode is the HTTP code returned for type ListSessionsUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSession ¶
type CreateSession struct { Context *middleware.Context Handler CreateSessionHandler }
CreateSession swagger:route POST /sessions Session createSession
Create a session resource ¶
Create a session resource.
func NewCreateSession ¶
func NewCreateSession(ctx *middleware.Context, handler CreateSessionHandler) *CreateSession
NewCreateSession creates a new http.Handler for the create session operation
func (*CreateSession) ServeHTTP ¶
func (o *CreateSession) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSessionBadRequest ¶
type CreateSessionBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateSessionBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response createSessionBadRequest
func NewCreateSessionBadRequest ¶
func NewCreateSessionBadRequest() *CreateSessionBadRequest
NewCreateSessionBadRequest creates CreateSessionBadRequest with default headers values
func (*CreateSessionBadRequest) SetPayload ¶
func (o *CreateSessionBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create session bad request response
func (*CreateSessionBadRequest) WithPayload ¶
func (o *CreateSessionBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateSessionBadRequest
WithPayload adds the payload to the create session bad request response
func (*CreateSessionBadRequest) WriteResponse ¶
func (o *CreateSessionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSessionCreated ¶
type CreateSessionCreated struct { /* In: Body */ Payload *rest_model.SessionCreateEnvelope `json:"body,omitempty"` }
CreateSessionCreated The create request was successful and the resource has been added at the following location
swagger:response createSessionCreated
func NewCreateSessionCreated ¶
func NewCreateSessionCreated() *CreateSessionCreated
NewCreateSessionCreated creates CreateSessionCreated with default headers values
func (*CreateSessionCreated) SetPayload ¶
func (o *CreateSessionCreated) SetPayload(payload *rest_model.SessionCreateEnvelope)
SetPayload sets the payload to the create session created response
func (*CreateSessionCreated) WithPayload ¶
func (o *CreateSessionCreated) WithPayload(payload *rest_model.SessionCreateEnvelope) *CreateSessionCreated
WithPayload adds the payload to the create session created response
func (*CreateSessionCreated) WriteResponse ¶
func (o *CreateSessionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSessionHandler ¶
type CreateSessionHandler interface {
Handle(CreateSessionParams, interface{}) middleware.Responder
}
CreateSessionHandler interface for that can handle valid create session params
type CreateSessionHandlerFunc ¶
type CreateSessionHandlerFunc func(CreateSessionParams, interface{}) middleware.Responder
CreateSessionHandlerFunc turns a function with the right signature into a create session handler
func (CreateSessionHandlerFunc) Handle ¶
func (fn CreateSessionHandlerFunc) Handle(params CreateSessionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateSessionNotFound ¶ added in v0.25.36
type CreateSessionNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateSessionNotFound The requested resource does not exist
swagger:response createSessionNotFound
func NewCreateSessionNotFound ¶ added in v0.25.36
func NewCreateSessionNotFound() *CreateSessionNotFound
NewCreateSessionNotFound creates CreateSessionNotFound with default headers values
func (*CreateSessionNotFound) SetPayload ¶ added in v0.25.36
func (o *CreateSessionNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create session not found response
func (*CreateSessionNotFound) WithPayload ¶ added in v0.25.36
func (o *CreateSessionNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateSessionNotFound
WithPayload adds the payload to the create session not found response
func (*CreateSessionNotFound) WriteResponse ¶ added in v0.25.36
func (o *CreateSessionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSessionParams ¶
type CreateSessionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A session to create Required: true In: body */ Session *rest_model.SessionCreate }
CreateSessionParams contains all the bound params for the create session operation typically these are obtained from a http.Request
swagger:parameters createSession
func NewCreateSessionParams ¶
func NewCreateSessionParams() CreateSessionParams
NewCreateSessionParams creates a new CreateSessionParams object
There are no default values defined in the spec.
func (*CreateSessionParams) BindRequest ¶
func (o *CreateSessionParams) 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 NewCreateSessionParams() beforehand.
type CreateSessionTooManyRequests ¶ added in v0.26.0
type CreateSessionTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateSessionTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response createSessionTooManyRequests
func NewCreateSessionTooManyRequests ¶ added in v0.26.0
func NewCreateSessionTooManyRequests() *CreateSessionTooManyRequests
NewCreateSessionTooManyRequests creates CreateSessionTooManyRequests with default headers values
func (*CreateSessionTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *CreateSessionTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create session too many requests response
func (*CreateSessionTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *CreateSessionTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateSessionTooManyRequests
WithPayload adds the payload to the create session too many requests response
func (*CreateSessionTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *CreateSessionTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSessionURL ¶
type CreateSessionURL struct {
// contains filtered or unexported fields
}
CreateSessionURL generates an URL for the create session operation
func (*CreateSessionURL) Build ¶
func (o *CreateSessionURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSessionURL) BuildFull ¶
func (o *CreateSessionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSessionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSessionURL) SetBasePath ¶
func (o *CreateSessionURL) 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 (*CreateSessionURL) String ¶
func (o *CreateSessionURL) String() string
String returns the string representation of the path with query string
func (*CreateSessionURL) StringFull ¶
func (o *CreateSessionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSessionURL) WithBasePath ¶
func (o *CreateSessionURL) WithBasePath(bp string) *CreateSessionURL
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 CreateSessionUnauthorized ¶
type CreateSessionUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
CreateSessionUnauthorized The supplied session does not have the correct access rights to request this resource
swagger:response createSessionUnauthorized
func NewCreateSessionUnauthorized ¶
func NewCreateSessionUnauthorized() *CreateSessionUnauthorized
NewCreateSessionUnauthorized creates CreateSessionUnauthorized with default headers values
func (*CreateSessionUnauthorized) SetPayload ¶
func (o *CreateSessionUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create session unauthorized response
func (*CreateSessionUnauthorized) WithPayload ¶
func (o *CreateSessionUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateSessionUnauthorized
WithPayload adds the payload to the create session unauthorized response
func (*CreateSessionUnauthorized) WriteResponse ¶
func (o *CreateSessionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSession ¶
type DeleteSession struct { Context *middleware.Context Handler DeleteSessionHandler }
DeleteSession swagger:route DELETE /sessions/{id} Session deleteSession
Delete a session ¶
Delete a session by id.
func NewDeleteSession ¶
func NewDeleteSession(ctx *middleware.Context, handler DeleteSessionHandler) *DeleteSession
NewDeleteSession creates a new http.Handler for the delete session operation
func (*DeleteSession) ServeHTTP ¶
func (o *DeleteSession) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSessionBadRequest ¶
type DeleteSessionBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteSessionBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response deleteSessionBadRequest
func NewDeleteSessionBadRequest ¶
func NewDeleteSessionBadRequest() *DeleteSessionBadRequest
NewDeleteSessionBadRequest creates DeleteSessionBadRequest with default headers values
func (*DeleteSessionBadRequest) SetPayload ¶
func (o *DeleteSessionBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete session bad request response
func (*DeleteSessionBadRequest) WithPayload ¶
func (o *DeleteSessionBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionBadRequest
WithPayload adds the payload to the delete session bad request response
func (*DeleteSessionBadRequest) WriteResponse ¶
func (o *DeleteSessionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSessionConflict ¶
type DeleteSessionConflict struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteSessionConflict The resource requested to be removed/altered cannot be as it is referenced by another object.
swagger:response deleteSessionConflict
func NewDeleteSessionConflict ¶
func NewDeleteSessionConflict() *DeleteSessionConflict
NewDeleteSessionConflict creates DeleteSessionConflict with default headers values
func (*DeleteSessionConflict) SetPayload ¶
func (o *DeleteSessionConflict) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete session conflict response
func (*DeleteSessionConflict) WithPayload ¶
func (o *DeleteSessionConflict) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionConflict
WithPayload adds the payload to the delete session conflict response
func (*DeleteSessionConflict) WriteResponse ¶
func (o *DeleteSessionConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSessionHandler ¶
type DeleteSessionHandler interface {
Handle(DeleteSessionParams, interface{}) middleware.Responder
}
DeleteSessionHandler interface for that can handle valid delete session params
type DeleteSessionHandlerFunc ¶
type DeleteSessionHandlerFunc func(DeleteSessionParams, interface{}) middleware.Responder
DeleteSessionHandlerFunc turns a function with the right signature into a delete session handler
func (DeleteSessionHandlerFunc) Handle ¶
func (fn DeleteSessionHandlerFunc) Handle(params DeleteSessionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteSessionOK ¶
type DeleteSessionOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
DeleteSessionOK The delete request was successful and the resource has been removed
swagger:response deleteSessionOK
func NewDeleteSessionOK ¶
func NewDeleteSessionOK() *DeleteSessionOK
NewDeleteSessionOK creates DeleteSessionOK with default headers values
func (*DeleteSessionOK) SetPayload ¶
func (o *DeleteSessionOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the delete session o k response
func (*DeleteSessionOK) WithPayload ¶
func (o *DeleteSessionOK) WithPayload(payload *rest_model.Empty) *DeleteSessionOK
WithPayload adds the payload to the delete session o k response
func (*DeleteSessionOK) WriteResponse ¶
func (o *DeleteSessionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSessionParams ¶
type DeleteSessionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DeleteSessionParams contains all the bound params for the delete session operation typically these are obtained from a http.Request
swagger:parameters deleteSession
func NewDeleteSessionParams ¶
func NewDeleteSessionParams() DeleteSessionParams
NewDeleteSessionParams creates a new DeleteSessionParams object
There are no default values defined in the spec.
func (*DeleteSessionParams) BindRequest ¶
func (o *DeleteSessionParams) 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 NewDeleteSessionParams() beforehand.
type DeleteSessionTooManyRequests ¶ added in v0.26.0
type DeleteSessionTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteSessionTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response deleteSessionTooManyRequests
func NewDeleteSessionTooManyRequests ¶ added in v0.26.0
func NewDeleteSessionTooManyRequests() *DeleteSessionTooManyRequests
NewDeleteSessionTooManyRequests creates DeleteSessionTooManyRequests with default headers values
func (*DeleteSessionTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *DeleteSessionTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete session too many requests response
func (*DeleteSessionTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *DeleteSessionTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionTooManyRequests
WithPayload adds the payload to the delete session too many requests response
func (*DeleteSessionTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *DeleteSessionTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSessionURL ¶
type DeleteSessionURL struct { ID string // contains filtered or unexported fields }
DeleteSessionURL generates an URL for the delete session operation
func (*DeleteSessionURL) Build ¶
func (o *DeleteSessionURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSessionURL) BuildFull ¶
func (o *DeleteSessionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSessionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSessionURL) SetBasePath ¶
func (o *DeleteSessionURL) 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 (*DeleteSessionURL) String ¶
func (o *DeleteSessionURL) String() string
String returns the string representation of the path with query string
func (*DeleteSessionURL) StringFull ¶
func (o *DeleteSessionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSessionURL) WithBasePath ¶
func (o *DeleteSessionURL) WithBasePath(bp string) *DeleteSessionURL
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 DeleteSessionUnauthorized ¶
type DeleteSessionUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DeleteSessionUnauthorized The supplied session does not have the correct access rights to request this resource
swagger:response deleteSessionUnauthorized
func NewDeleteSessionUnauthorized ¶
func NewDeleteSessionUnauthorized() *DeleteSessionUnauthorized
NewDeleteSessionUnauthorized creates DeleteSessionUnauthorized with default headers values
func (*DeleteSessionUnauthorized) SetPayload ¶
func (o *DeleteSessionUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete session unauthorized response
func (*DeleteSessionUnauthorized) WithPayload ¶
func (o *DeleteSessionUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteSessionUnauthorized
WithPayload adds the payload to the delete session unauthorized response
func (*DeleteSessionUnauthorized) WriteResponse ¶
func (o *DeleteSessionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailSession ¶
type DetailSession struct { Context *middleware.Context Handler DetailSessionHandler }
DetailSession swagger:route GET /sessions/{id} Session detailSession
Retrieves a single session ¶
Retrieves a single session by id.
func NewDetailSession ¶
func NewDetailSession(ctx *middleware.Context, handler DetailSessionHandler) *DetailSession
NewDetailSession creates a new http.Handler for the detail session operation
func (*DetailSession) ServeHTTP ¶
func (o *DetailSession) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DetailSessionHandler ¶
type DetailSessionHandler interface {
Handle(DetailSessionParams, interface{}) middleware.Responder
}
DetailSessionHandler interface for that can handle valid detail session params
type DetailSessionHandlerFunc ¶
type DetailSessionHandlerFunc func(DetailSessionParams, interface{}) middleware.Responder
DetailSessionHandlerFunc turns a function with the right signature into a detail session handler
func (DetailSessionHandlerFunc) Handle ¶
func (fn DetailSessionHandlerFunc) Handle(params DetailSessionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DetailSessionNotFound ¶
type DetailSessionNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailSessionNotFound The requested resource does not exist
swagger:response detailSessionNotFound
func NewDetailSessionNotFound ¶
func NewDetailSessionNotFound() *DetailSessionNotFound
NewDetailSessionNotFound creates DetailSessionNotFound with default headers values
func (*DetailSessionNotFound) SetPayload ¶
func (o *DetailSessionNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail session not found response
func (*DetailSessionNotFound) WithPayload ¶
func (o *DetailSessionNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailSessionNotFound
WithPayload adds the payload to the detail session not found response
func (*DetailSessionNotFound) WriteResponse ¶
func (o *DetailSessionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailSessionOK ¶
type DetailSessionOK struct { /* In: Body */ Payload *rest_model.DetailSessionEnvelope `json:"body,omitempty"` }
DetailSessionOK A single session
swagger:response detailSessionOK
func NewDetailSessionOK ¶
func NewDetailSessionOK() *DetailSessionOK
NewDetailSessionOK creates DetailSessionOK with default headers values
func (*DetailSessionOK) SetPayload ¶
func (o *DetailSessionOK) SetPayload(payload *rest_model.DetailSessionEnvelope)
SetPayload sets the payload to the detail session o k response
func (*DetailSessionOK) WithPayload ¶
func (o *DetailSessionOK) WithPayload(payload *rest_model.DetailSessionEnvelope) *DetailSessionOK
WithPayload adds the payload to the detail session o k response
func (*DetailSessionOK) WriteResponse ¶
func (o *DetailSessionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailSessionParams ¶
type DetailSessionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DetailSessionParams contains all the bound params for the detail session operation typically these are obtained from a http.Request
swagger:parameters detailSession
func NewDetailSessionParams ¶
func NewDetailSessionParams() DetailSessionParams
NewDetailSessionParams creates a new DetailSessionParams object
There are no default values defined in the spec.
func (*DetailSessionParams) BindRequest ¶
func (o *DetailSessionParams) 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 NewDetailSessionParams() beforehand.
type DetailSessionURL ¶
type DetailSessionURL struct { ID string // contains filtered or unexported fields }
DetailSessionURL generates an URL for the detail session operation
func (*DetailSessionURL) Build ¶
func (o *DetailSessionURL) Build() (*url.URL, error)
Build a url path and query string
func (*DetailSessionURL) BuildFull ¶
func (o *DetailSessionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DetailSessionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DetailSessionURL) SetBasePath ¶
func (o *DetailSessionURL) 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 (*DetailSessionURL) String ¶
func (o *DetailSessionURL) String() string
String returns the string representation of the path with query string
func (*DetailSessionURL) StringFull ¶
func (o *DetailSessionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DetailSessionURL) WithBasePath ¶
func (o *DetailSessionURL) WithBasePath(bp string) *DetailSessionURL
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 DetailSessionUnauthorized ¶
type DetailSessionUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DetailSessionUnauthorized The supplied session does not have the correct access rights to request this resource
swagger:response detailSessionUnauthorized
func NewDetailSessionUnauthorized ¶
func NewDetailSessionUnauthorized() *DetailSessionUnauthorized
NewDetailSessionUnauthorized creates DetailSessionUnauthorized with default headers values
func (*DetailSessionUnauthorized) SetPayload ¶
func (o *DetailSessionUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail session unauthorized response
func (*DetailSessionUnauthorized) WithPayload ¶
func (o *DetailSessionUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailSessionUnauthorized
WithPayload adds the payload to the detail session unauthorized response
func (*DetailSessionUnauthorized) WriteResponse ¶
func (o *DetailSessionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSessions ¶
type ListSessions struct { Context *middleware.Context Handler ListSessionsHandler }
ListSessions swagger:route GET /sessions Session listSessions
List sessions ¶
Retrieves a list of active sessions resources; supports filtering, sorting, and pagination.
Sessions are tied to an API session and are moved when an API session times out or logs out. Active sessions (i.e. Ziti SDK connected to an edge router) will keep the session and API session marked as active.
func NewListSessions ¶
func NewListSessions(ctx *middleware.Context, handler ListSessionsHandler) *ListSessions
NewListSessions creates a new http.Handler for the list sessions operation
func (*ListSessions) ServeHTTP ¶
func (o *ListSessions) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListSessionsBadRequest ¶
type ListSessionsBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
ListSessionsBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response listSessionsBadRequest
func NewListSessionsBadRequest ¶
func NewListSessionsBadRequest() *ListSessionsBadRequest
NewListSessionsBadRequest creates ListSessionsBadRequest with default headers values
func (*ListSessionsBadRequest) SetPayload ¶
func (o *ListSessionsBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list sessions bad request response
func (*ListSessionsBadRequest) WithPayload ¶
func (o *ListSessionsBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *ListSessionsBadRequest
WithPayload adds the payload to the list sessions bad request response
func (*ListSessionsBadRequest) WriteResponse ¶
func (o *ListSessionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSessionsHandler ¶
type ListSessionsHandler interface {
Handle(ListSessionsParams, interface{}) middleware.Responder
}
ListSessionsHandler interface for that can handle valid list sessions params
type ListSessionsHandlerFunc ¶
type ListSessionsHandlerFunc func(ListSessionsParams, interface{}) middleware.Responder
ListSessionsHandlerFunc turns a function with the right signature into a list sessions handler
func (ListSessionsHandlerFunc) Handle ¶
func (fn ListSessionsHandlerFunc) Handle(params ListSessionsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ListSessionsOK ¶
type ListSessionsOK struct { /* In: Body */ Payload *rest_model.ListSessionsEnvelope `json:"body,omitempty"` }
ListSessionsOK A list of sessions
swagger:response listSessionsOK
func NewListSessionsOK ¶
func NewListSessionsOK() *ListSessionsOK
NewListSessionsOK creates ListSessionsOK with default headers values
func (*ListSessionsOK) SetPayload ¶
func (o *ListSessionsOK) SetPayload(payload *rest_model.ListSessionsEnvelope)
SetPayload sets the payload to the list sessions o k response
func (*ListSessionsOK) WithPayload ¶
func (o *ListSessionsOK) WithPayload(payload *rest_model.ListSessionsEnvelope) *ListSessionsOK
WithPayload adds the payload to the list sessions o k response
func (*ListSessionsOK) WriteResponse ¶
func (o *ListSessionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSessionsParams ¶
type ListSessionsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Filter *string /* In: query */ Limit *int64 /* In: query */ Offset *int64 }
ListSessionsParams contains all the bound params for the list sessions operation typically these are obtained from a http.Request
swagger:parameters listSessions
func NewListSessionsParams ¶
func NewListSessionsParams() ListSessionsParams
NewListSessionsParams creates a new ListSessionsParams object
There are no default values defined in the spec.
func (*ListSessionsParams) BindRequest ¶
func (o *ListSessionsParams) 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 NewListSessionsParams() beforehand.
type ListSessionsTooManyRequests ¶ added in v0.26.0
type ListSessionsTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
ListSessionsTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response listSessionsTooManyRequests
func NewListSessionsTooManyRequests ¶ added in v0.26.0
func NewListSessionsTooManyRequests() *ListSessionsTooManyRequests
NewListSessionsTooManyRequests creates ListSessionsTooManyRequests with default headers values
func (*ListSessionsTooManyRequests) SetPayload ¶ added in v0.26.0
func (o *ListSessionsTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list sessions too many requests response
func (*ListSessionsTooManyRequests) WithPayload ¶ added in v0.26.0
func (o *ListSessionsTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *ListSessionsTooManyRequests
WithPayload adds the payload to the list sessions too many requests response
func (*ListSessionsTooManyRequests) WriteResponse ¶ added in v0.26.0
func (o *ListSessionsTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSessionsURL ¶
type ListSessionsURL struct { Filter *string Limit *int64 Offset *int64 // contains filtered or unexported fields }
ListSessionsURL generates an URL for the list sessions operation
func (*ListSessionsURL) Build ¶
func (o *ListSessionsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListSessionsURL) BuildFull ¶
func (o *ListSessionsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListSessionsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListSessionsURL) SetBasePath ¶
func (o *ListSessionsURL) 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 (*ListSessionsURL) String ¶
func (o *ListSessionsURL) String() string
String returns the string representation of the path with query string
func (*ListSessionsURL) StringFull ¶
func (o *ListSessionsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListSessionsURL) WithBasePath ¶
func (o *ListSessionsURL) WithBasePath(bp string) *ListSessionsURL
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 ListSessionsUnauthorized ¶
type ListSessionsUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
ListSessionsUnauthorized The supplied session does not have the correct access rights to request this resource
swagger:response listSessionsUnauthorized
func NewListSessionsUnauthorized ¶
func NewListSessionsUnauthorized() *ListSessionsUnauthorized
NewListSessionsUnauthorized creates ListSessionsUnauthorized with default headers values
func (*ListSessionsUnauthorized) SetPayload ¶
func (o *ListSessionsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list sessions unauthorized response
func (*ListSessionsUnauthorized) WithPayload ¶
func (o *ListSessionsUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListSessionsUnauthorized
WithPayload adds the payload to the list sessions unauthorized response
func (*ListSessionsUnauthorized) WriteResponse ¶
func (o *ListSessionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_session.go
- create_session_parameters.go
- create_session_responses.go
- create_session_urlbuilder.go
- delete_session.go
- delete_session_parameters.go
- delete_session_responses.go
- delete_session_urlbuilder.go
- detail_session.go
- detail_session_parameters.go
- detail_session_responses.go
- detail_session_urlbuilder.go
- list_sessions.go
- list_sessions_parameters.go
- list_sessions_responses.go
- list_sessions_urlbuilder.go