session

package
v0.21.260 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DeleteSessionBadRequestCode int = 400

DeleteSessionBadRequestCode is the HTTP code returned for type DeleteSessionBadRequest

View Source
const DeleteSessionConflictCode int = 409

DeleteSessionConflictCode is the HTTP code returned for type DeleteSessionConflict

View Source
const DeleteSessionOKCode int = 200

DeleteSessionOKCode is the HTTP code returned for type DeleteSessionOK

View Source
const DeleteSessionUnauthorizedCode int = 401

DeleteSessionUnauthorizedCode is the HTTP code returned for type DeleteSessionUnauthorized

View Source
const DetailSessionNotFoundCode int = 404

DetailSessionNotFoundCode is the HTTP code returned for type DetailSessionNotFound

View Source
const DetailSessionOKCode int = 200

DetailSessionOKCode is the HTTP code returned for type DetailSessionOK

View Source
const DetailSessionRoutePathNotFoundCode int = 404

DetailSessionRoutePathNotFoundCode is the HTTP code returned for type DetailSessionRoutePathNotFound

View Source
const DetailSessionRoutePathOKCode int = 200

DetailSessionRoutePathOKCode is the HTTP code returned for type DetailSessionRoutePathOK

View Source
const DetailSessionRoutePathUnauthorizedCode int = 401

DetailSessionRoutePathUnauthorizedCode is the HTTP code returned for type DetailSessionRoutePathUnauthorized

View Source
const DetailSessionUnauthorizedCode int = 401

DetailSessionUnauthorizedCode is the HTTP code returned for type DetailSessionUnauthorized

View Source
const ListSessionsBadRequestCode int = 400

ListSessionsBadRequestCode is the HTTP code returned for type ListSessionsBadRequest

View Source
const ListSessionsOKCode int = 200

ListSessionsOKCode is the HTTP code returned for type ListSessionsOK

View Source
const ListSessionsUnauthorizedCode int = 401

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

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

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

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

SetPayload sets the payload to the detail session o k response

func (*DetailSessionOK) WithPayload

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

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

SetPayload sets the payload to the detail session route path not found response

func (*DetailSessionRoutePathNotFound) WithPayload

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

SetPayload sets the payload to the detail session route path o k response

func (*DetailSessionRoutePathOK) WithPayload

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

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

SetPayload sets the payload to the detail session route path unauthorized response

func (*DetailSessionRoutePathUnauthorized) WithPayload

WithPayload adds the payload to the detail session route path unauthorized response

func (*DetailSessionRoutePathUnauthorized) WriteResponse

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

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 added in v0.19.176

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 added in v0.19.176

func NewListSessionsBadRequest() *ListSessionsBadRequest

NewListSessionsBadRequest creates ListSessionsBadRequest with default headers values

func (*ListSessionsBadRequest) SetPayload added in v0.19.176

func (o *ListSessionsBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the list sessions bad request response

func (*ListSessionsBadRequest) WithPayload added in v0.19.176

WithPayload adds the payload to the list sessions bad request response

func (*ListSessionsBadRequest) WriteResponse added in v0.19.176

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

SetPayload sets the payload to the list sessions o k response

func (*ListSessionsOK) WithPayload

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

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

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

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

Jump to

Keyboard shortcuts

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