session

package
v0.19.52 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CreateSessionBadRequestCode int = 400

CreateSessionBadRequestCode is the HTTP code returned for type CreateSessionBadRequest

View Source
const CreateSessionCreatedCode int = 201

CreateSessionCreatedCode is the HTTP code returned for type CreateSessionCreated

View Source
const CreateSessionUnauthorizedCode int = 401

CreateSessionUnauthorizedCode is the HTTP code returned for type CreateSessionUnauthorized

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 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 CreateSession

type CreateSession struct {
	Context *middleware.Context
	Handler CreateSessionHandler
}

CreateSession swagger:route POST /sessions Session createSession

Create a session resource

Create a session resource. Requires admin access.

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

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

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

func NewCreateSessionCreated() *CreateSessionCreated

NewCreateSessionCreated creates CreateSessionCreated with default headers values

func (*CreateSessionCreated) SetPayload added in v0.17.52

func (o *CreateSessionCreated) SetPayload(payload *rest_model.SessionCreateEnvelope)

SetPayload sets the payload to the create session created response

func (*CreateSessionCreated) WithPayload added in v0.17.52

WithPayload adds the payload to the create session created response

func (*CreateSessionCreated) WriteResponse added in v0.17.52

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 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 no default values defined in 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 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

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

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 {

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

CreateSessionUnauthorized The currently 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

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. 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 no default values defined in 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.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

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 no default values defined in 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 added in v0.19.16

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

func NewDetailSessionRoutePath(ctx *middleware.Context, handler DetailSessionRoutePathHandler) *DetailSessionRoutePath

NewDetailSessionRoutePath creates a new http.Handler for the detail session route path operation

func (*DetailSessionRoutePath) ServeHTTP added in v0.19.16

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

type DetailSessionRoutePathHandler added in v0.19.16

type DetailSessionRoutePathHandler interface {
	Handle(DetailSessionRoutePathParams, interface{}) middleware.Responder
}

DetailSessionRoutePathHandler interface for that can handle valid detail session route path params

type DetailSessionRoutePathHandlerFunc added in v0.19.16

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

Handle executing the request and returning a response

type DetailSessionRoutePathNotFound added in v0.19.16

type DetailSessionRoutePathNotFound struct {

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

DetailSessionRoutePathNotFound The requested resource does not exist

swagger:response detailSessionRoutePathNotFound

func NewDetailSessionRoutePathNotFound added in v0.19.16

func NewDetailSessionRoutePathNotFound() *DetailSessionRoutePathNotFound

NewDetailSessionRoutePathNotFound creates DetailSessionRoutePathNotFound with default headers values

func (*DetailSessionRoutePathNotFound) SetPayload added in v0.19.16

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

func (*DetailSessionRoutePathNotFound) WithPayload added in v0.19.16

WithPayload adds the payload to the detail session route path not found response

func (*DetailSessionRoutePathNotFound) WriteResponse added in v0.19.16

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

WriteResponse to the client

type DetailSessionRoutePathOK added in v0.19.16

type DetailSessionRoutePathOK struct {

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

DetailSessionRoutePathOK A single session's route path

swagger:response detailSessionRoutePathOK

func NewDetailSessionRoutePathOK added in v0.19.16

func NewDetailSessionRoutePathOK() *DetailSessionRoutePathOK

NewDetailSessionRoutePathOK creates DetailSessionRoutePathOK with default headers values

func (*DetailSessionRoutePathOK) SetPayload added in v0.19.16

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

func (*DetailSessionRoutePathOK) WithPayload added in v0.19.16

WithPayload adds the payload to the detail session route path o k response

func (*DetailSessionRoutePathOK) WriteResponse added in v0.19.16

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

WriteResponse to the client

type DetailSessionRoutePathParams added in v0.19.16

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

func NewDetailSessionRoutePathParams() DetailSessionRoutePathParams

NewDetailSessionRoutePathParams creates a new DetailSessionRoutePathParams object no default values defined in spec.

func (*DetailSessionRoutePathParams) BindRequest added in v0.19.16

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

type DetailSessionRoutePathURL struct {
	ID string
	// contains filtered or unexported fields
}

DetailSessionRoutePathURL generates an URL for the detail session route path operation

func (*DetailSessionRoutePathURL) Build added in v0.19.16

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

Build a url path and query string

func (*DetailSessionRoutePathURL) BuildFull added in v0.19.16

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

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

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

func (o *DetailSessionRoutePathURL) String() string

String returns the string representation of the path with query string

func (*DetailSessionRoutePathURL) StringFull added in v0.19.16

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

StringFull returns the string representation of a complete url

func (*DetailSessionRoutePathURL) WithBasePath added in v0.19.16

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

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

func NewDetailSessionRoutePathUnauthorized() *DetailSessionRoutePathUnauthorized

NewDetailSessionRoutePathUnauthorized creates DetailSessionRoutePathUnauthorized with default headers values

func (*DetailSessionRoutePathUnauthorized) SetPayload added in v0.19.16

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

func (*DetailSessionRoutePathUnauthorized) WithPayload added in v0.19.16

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

func (*DetailSessionRoutePathUnauthorized) WriteResponse added in v0.19.16

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

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 no default values defined in 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