Documentation ¶
Index ¶
- Constants
- type DeleteSession
- type DeleteSessionBadRequest
- type DeleteSessionConflict
- type DeleteSessionHandler
- type DeleteSessionHandlerFunc
- type DeleteSessionOK
- type DeleteSessionParams
- 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 DetailSessionRoutePath
- type DetailSessionRoutePathHandler
- type DetailSessionRoutePathHandlerFunc
- type DetailSessionRoutePathNotFound
- func (o *DetailSessionRoutePathNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DetailSessionRoutePathNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailSessionRoutePathNotFound
- func (o *DetailSessionRoutePathNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DetailSessionRoutePathOK
- func (o *DetailSessionRoutePathOK) SetPayload(payload *rest_model.DetailSessionRoutePathEnvelope)
- func (o *DetailSessionRoutePathOK) WithPayload(payload *rest_model.DetailSessionRoutePathEnvelope) *DetailSessionRoutePathOK
- func (o *DetailSessionRoutePathOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DetailSessionRoutePathParams
- type DetailSessionRoutePathURL
- func (o *DetailSessionRoutePathURL) Build() (*url.URL, error)
- func (o *DetailSessionRoutePathURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DetailSessionRoutePathURL) Must(u *url.URL, err error) *url.URL
- func (o *DetailSessionRoutePathURL) SetBasePath(bp string)
- func (o *DetailSessionRoutePathURL) String() string
- func (o *DetailSessionRoutePathURL) StringFull(scheme, host string) string
- func (o *DetailSessionRoutePathURL) WithBasePath(bp string) *DetailSessionRoutePathURL
- type DetailSessionRoutePathUnauthorized
- func (o *DetailSessionRoutePathUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *DetailSessionRoutePathUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailSessionRoutePathUnauthorized
- func (o *DetailSessionRoutePathUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- 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 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 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
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
const DetailSessionRoutePathNotFoundCode int = 404
DetailSessionRoutePathNotFoundCode is the HTTP code returned for type DetailSessionRoutePathNotFound
const DetailSessionRoutePathOKCode int = 200
DetailSessionRoutePathOKCode is the HTTP code returned for type DetailSessionRoutePathOK
DetailSessionRoutePathUnauthorizedCode is the HTTP code returned for type DetailSessionRoutePathUnauthorized
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
ListSessionsUnauthorizedCode is the HTTP code returned for type ListSessionsUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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. Requires admin access.
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 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 currently 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. Requires admin access.
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.DetailSessionManagementEnvelope `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.DetailSessionManagementEnvelope)
SetPayload sets the payload to the detail session o k response
func (*DetailSessionOK) WithPayload ¶
func (o *DetailSessionOK) WithPayload(payload *rest_model.DetailSessionManagementEnvelope) *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 DetailSessionRoutePath ¶
type DetailSessionRoutePath struct { Context *middleware.Context Handler DetailSessionRoutePathHandler }
DetailSessionRoutePath swagger:route GET /sessions/{id}/route-path Session detailSessionRoutePath
Retrieves a single session's router path ¶
Retrieves a single session's route path by id. Requires admin access.
func NewDetailSessionRoutePath ¶
func NewDetailSessionRoutePath(ctx *middleware.Context, handler DetailSessionRoutePathHandler) *DetailSessionRoutePath
NewDetailSessionRoutePath creates a new http.Handler for the detail session route path operation
func (*DetailSessionRoutePath) ServeHTTP ¶
func (o *DetailSessionRoutePath) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DetailSessionRoutePathHandler ¶
type DetailSessionRoutePathHandler interface {
Handle(DetailSessionRoutePathParams, interface{}) middleware.Responder
}
DetailSessionRoutePathHandler interface for that can handle valid detail session route path params
type DetailSessionRoutePathHandlerFunc ¶
type DetailSessionRoutePathHandlerFunc func(DetailSessionRoutePathParams, interface{}) middleware.Responder
DetailSessionRoutePathHandlerFunc turns a function with the right signature into a detail session route path handler
func (DetailSessionRoutePathHandlerFunc) Handle ¶
func (fn DetailSessionRoutePathHandlerFunc) Handle(params DetailSessionRoutePathParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DetailSessionRoutePathNotFound ¶
type DetailSessionRoutePathNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailSessionRoutePathNotFound The requested resource does not exist
swagger:response detailSessionRoutePathNotFound
func NewDetailSessionRoutePathNotFound ¶
func NewDetailSessionRoutePathNotFound() *DetailSessionRoutePathNotFound
NewDetailSessionRoutePathNotFound creates DetailSessionRoutePathNotFound with default headers values
func (*DetailSessionRoutePathNotFound) SetPayload ¶
func (o *DetailSessionRoutePathNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail session route path not found response
func (*DetailSessionRoutePathNotFound) WithPayload ¶
func (o *DetailSessionRoutePathNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailSessionRoutePathNotFound
WithPayload adds the payload to the detail session route path not found response
func (*DetailSessionRoutePathNotFound) WriteResponse ¶
func (o *DetailSessionRoutePathNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailSessionRoutePathOK ¶
type DetailSessionRoutePathOK struct { /* In: Body */ Payload *rest_model.DetailSessionRoutePathEnvelope `json:"body,omitempty"` }
DetailSessionRoutePathOK A single session's route path
swagger:response detailSessionRoutePathOK
func NewDetailSessionRoutePathOK ¶
func NewDetailSessionRoutePathOK() *DetailSessionRoutePathOK
NewDetailSessionRoutePathOK creates DetailSessionRoutePathOK with default headers values
func (*DetailSessionRoutePathOK) SetPayload ¶
func (o *DetailSessionRoutePathOK) SetPayload(payload *rest_model.DetailSessionRoutePathEnvelope)
SetPayload sets the payload to the detail session route path o k response
func (*DetailSessionRoutePathOK) WithPayload ¶
func (o *DetailSessionRoutePathOK) WithPayload(payload *rest_model.DetailSessionRoutePathEnvelope) *DetailSessionRoutePathOK
WithPayload adds the payload to the detail session route path o k response
func (*DetailSessionRoutePathOK) WriteResponse ¶
func (o *DetailSessionRoutePathOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailSessionRoutePathParams ¶
type DetailSessionRoutePathParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DetailSessionRoutePathParams contains all the bound params for the detail session route path operation typically these are obtained from a http.Request
swagger:parameters detailSessionRoutePath
func NewDetailSessionRoutePathParams ¶
func NewDetailSessionRoutePathParams() DetailSessionRoutePathParams
NewDetailSessionRoutePathParams creates a new DetailSessionRoutePathParams object
There are no default values defined in the spec.
func (*DetailSessionRoutePathParams) BindRequest ¶
func (o *DetailSessionRoutePathParams) 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 NewDetailSessionRoutePathParams() beforehand.
type DetailSessionRoutePathURL ¶
type DetailSessionRoutePathURL struct { ID string // contains filtered or unexported fields }
DetailSessionRoutePathURL generates an URL for the detail session route path operation
func (*DetailSessionRoutePathURL) Build ¶
func (o *DetailSessionRoutePathURL) Build() (*url.URL, error)
Build a url path and query string
func (*DetailSessionRoutePathURL) BuildFull ¶
func (o *DetailSessionRoutePathURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DetailSessionRoutePathURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DetailSessionRoutePathURL) SetBasePath ¶
func (o *DetailSessionRoutePathURL) 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 (*DetailSessionRoutePathURL) String ¶
func (o *DetailSessionRoutePathURL) String() string
String returns the string representation of the path with query string
func (*DetailSessionRoutePathURL) StringFull ¶
func (o *DetailSessionRoutePathURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DetailSessionRoutePathURL) WithBasePath ¶
func (o *DetailSessionRoutePathURL) WithBasePath(bp string) *DetailSessionRoutePathURL
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 DetailSessionRoutePathUnauthorized ¶
type DetailSessionRoutePathUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DetailSessionRoutePathUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response detailSessionRoutePathUnauthorized
func NewDetailSessionRoutePathUnauthorized ¶
func NewDetailSessionRoutePathUnauthorized() *DetailSessionRoutePathUnauthorized
NewDetailSessionRoutePathUnauthorized creates DetailSessionRoutePathUnauthorized with default headers values
func (*DetailSessionRoutePathUnauthorized) SetPayload ¶
func (o *DetailSessionRoutePathUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail session route path unauthorized response
func (*DetailSessionRoutePathUnauthorized) WithPayload ¶
func (o *DetailSessionRoutePathUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailSessionRoutePathUnauthorized
WithPayload adds the payload to the detail session route path unauthorized response
func (*DetailSessionRoutePathUnauthorized) WriteResponse ¶
func (o *DetailSessionRoutePathUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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 currently 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. Requires admin access.
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.ListSessionsManagementEnvelope `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.ListSessionsManagementEnvelope)
SetPayload sets the payload to the list sessions o k response
func (*ListSessionsOK) WithPayload ¶
func (o *ListSessionsOK) WithPayload(payload *rest_model.ListSessionsManagementEnvelope) *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 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 currently 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 ¶
- 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_route_path.go
- detail_session_route_path_parameters.go
- detail_session_route_path_responses.go
- detail_session_route_path_urlbuilder.go
- detail_session_urlbuilder.go
- list_sessions.go
- list_sessions_parameters.go
- list_sessions_responses.go
- list_sessions_urlbuilder.go