session

package
v0.26.34 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 14 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 CreateSessionNotFoundCode int = 404

CreateSessionNotFoundCode is the HTTP code returned for type CreateSessionNotFound

View Source
const CreateSessionTooManyRequestsCode int = 429

CreateSessionTooManyRequestsCode is the HTTP code returned for type CreateSessionTooManyRequests

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 DeleteSessionTooManyRequestsCode int = 429

DeleteSessionTooManyRequestsCode is the HTTP code returned for type DeleteSessionTooManyRequests

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 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 ListSessionsTooManyRequestsCode int = 429

ListSessionsTooManyRequestsCode is the HTTP code returned for type ListSessionsTooManyRequests

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.

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

type CreateSessionCreated struct {

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

CreateSessionCreated The create request was successful and the resource has been added at the following location

swagger:response createSessionCreated

func NewCreateSessionCreated

func NewCreateSessionCreated() *CreateSessionCreated

NewCreateSessionCreated creates CreateSessionCreated with default headers values

func (*CreateSessionCreated) SetPayload

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

SetPayload sets the payload to the create session created response

func (*CreateSessionCreated) WithPayload

WithPayload adds the payload to the create session created response

func (*CreateSessionCreated) WriteResponse

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

WriteResponse to the client

type CreateSessionHandler

type CreateSessionHandler interface {
	Handle(CreateSessionParams, interface{}) middleware.Responder
}

CreateSessionHandler interface for that can handle valid create session params

type CreateSessionHandlerFunc

type CreateSessionHandlerFunc func(CreateSessionParams, interface{}) middleware.Responder

CreateSessionHandlerFunc turns a function with the right signature into a create session handler

func (CreateSessionHandlerFunc) Handle

func (fn CreateSessionHandlerFunc) Handle(params CreateSessionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateSessionNotFound added in v0.25.36

type CreateSessionNotFound struct {

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

CreateSessionNotFound The requested resource does not exist

swagger:response createSessionNotFound

func NewCreateSessionNotFound added in v0.25.36

func NewCreateSessionNotFound() *CreateSessionNotFound

NewCreateSessionNotFound creates CreateSessionNotFound with default headers values

func (*CreateSessionNotFound) SetPayload added in v0.25.36

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

SetPayload sets the payload to the create session not found response

func (*CreateSessionNotFound) WithPayload added in v0.25.36

WithPayload adds the payload to the create session not found response

func (*CreateSessionNotFound) WriteResponse added in v0.25.36

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

WriteResponse to the client

type CreateSessionParams

type CreateSessionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A session to create
	  Required: true
	  In: body
	*/
	Session *rest_model.SessionCreate
}

CreateSessionParams contains all the bound params for the create session operation typically these are obtained from a http.Request

swagger:parameters createSession

func NewCreateSessionParams

func NewCreateSessionParams() CreateSessionParams

NewCreateSessionParams creates a new CreateSessionParams object

There are no default values defined in the spec.

func (*CreateSessionParams) BindRequest

func (o *CreateSessionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateSessionParams() beforehand.

type CreateSessionTooManyRequests added in v0.26.0

type CreateSessionTooManyRequests struct {

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

CreateSessionTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response createSessionTooManyRequests

func NewCreateSessionTooManyRequests added in v0.26.0

func NewCreateSessionTooManyRequests() *CreateSessionTooManyRequests

NewCreateSessionTooManyRequests creates CreateSessionTooManyRequests with default headers values

func (*CreateSessionTooManyRequests) SetPayload added in v0.26.0

SetPayload sets the payload to the create session too many requests response

func (*CreateSessionTooManyRequests) WithPayload added in v0.26.0

WithPayload adds the payload to the create session too many requests response

func (*CreateSessionTooManyRequests) WriteResponse added in v0.26.0

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

WriteResponse to the client

type CreateSessionURL

type CreateSessionURL struct {
	// contains filtered or unexported fields
}

CreateSessionURL generates an URL for the create session operation

func (*CreateSessionURL) Build

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

Build a url path and query string

func (*CreateSessionURL) BuildFull

func (o *CreateSessionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateSessionURL) Must

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

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

type DeleteSessionTooManyRequests struct {

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

DeleteSessionTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response deleteSessionTooManyRequests

func NewDeleteSessionTooManyRequests added in v0.26.0

func NewDeleteSessionTooManyRequests() *DeleteSessionTooManyRequests

NewDeleteSessionTooManyRequests creates DeleteSessionTooManyRequests with default headers values

func (*DeleteSessionTooManyRequests) SetPayload added in v0.26.0

SetPayload sets the payload to the delete session too many requests response

func (*DeleteSessionTooManyRequests) WithPayload added in v0.26.0

WithPayload adds the payload to the delete session too many requests response

func (*DeleteSessionTooManyRequests) WriteResponse added in v0.26.0

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

WriteResponse to the client

type DeleteSessionURL

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

DeleteSessionURL generates an URL for the delete session operation

func (*DeleteSessionURL) Build

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

Build a url path and query string

func (*DeleteSessionURL) BuildFull

func (o *DeleteSessionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteSessionURL) Must

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

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

There are no default values defined in the spec.

func (*DetailSessionParams) BindRequest

func (o *DetailSessionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDetailSessionParams() beforehand.

type DetailSessionURL

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

DetailSessionURL generates an URL for the detail session operation

func (*DetailSessionURL) Build

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

Build a url path and query string

func (*DetailSessionURL) BuildFull

func (o *DetailSessionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DetailSessionURL) Must

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

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

WithPayload adds the payload to the list sessions bad request response

func (*ListSessionsBadRequest) WriteResponse

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

WriteResponse to the client

type ListSessionsHandler

type ListSessionsHandler interface {
	Handle(ListSessionsParams, interface{}) middleware.Responder
}

ListSessionsHandler interface for that can handle valid list sessions params

type ListSessionsHandlerFunc

type ListSessionsHandlerFunc func(ListSessionsParams, interface{}) middleware.Responder

ListSessionsHandlerFunc turns a function with the right signature into a list sessions handler

func (ListSessionsHandlerFunc) Handle

func (fn ListSessionsHandlerFunc) Handle(params ListSessionsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListSessionsOK

type ListSessionsOK struct {

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

ListSessionsOK A list of sessions

swagger:response listSessionsOK

func NewListSessionsOK

func NewListSessionsOK() *ListSessionsOK

NewListSessionsOK creates ListSessionsOK with default headers values

func (*ListSessionsOK) SetPayload

func (o *ListSessionsOK) SetPayload(payload *rest_model.ListSessionsEnvelope)

SetPayload sets the payload to the list sessions o k response

func (*ListSessionsOK) WithPayload

WithPayload adds the payload to the list sessions o k response

func (*ListSessionsOK) WriteResponse

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

WriteResponse to the client

type ListSessionsParams

type ListSessionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	Offset *int64
}

ListSessionsParams contains all the bound params for the list sessions operation typically these are obtained from a http.Request

swagger:parameters listSessions

func NewListSessionsParams

func NewListSessionsParams() ListSessionsParams

NewListSessionsParams creates a new ListSessionsParams object

There are no default values defined in the spec.

func (*ListSessionsParams) BindRequest

func (o *ListSessionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListSessionsParams() beforehand.

type ListSessionsTooManyRequests added in v0.26.0

type ListSessionsTooManyRequests struct {

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

ListSessionsTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response listSessionsTooManyRequests

func NewListSessionsTooManyRequests added in v0.26.0

func NewListSessionsTooManyRequests() *ListSessionsTooManyRequests

NewListSessionsTooManyRequests creates ListSessionsTooManyRequests with default headers values

func (*ListSessionsTooManyRequests) SetPayload added in v0.26.0

SetPayload sets the payload to the list sessions too many requests response

func (*ListSessionsTooManyRequests) WithPayload added in v0.26.0

WithPayload adds the payload to the list sessions too many requests response

func (*ListSessionsTooManyRequests) WriteResponse added in v0.26.0

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

WriteResponse to the client

type ListSessionsURL

type ListSessionsURL struct {
	Filter *string
	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

ListSessionsURL generates an URL for the list sessions operation

func (*ListSessionsURL) Build

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

Build a url path and query string

func (*ListSessionsURL) BuildFull

func (o *ListSessionsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListSessionsURL) Must

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