session

package
v0.15.26 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for session API

func (*Client) CreateSession

func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, error)

CreateSession creates a session resource

Create a session resource. Requires admin access.

func (*Client) DeleteSession

func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, error)

DeleteSession deletes a session

Delete a session by id. Requires admin access.

func (*Client) DetailSession

func (a *Client) DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DetailSessionOK, error)

DetailSession retrieves a single session

Retrieves a single session by id. Requires admin access.

func (*Client) ListSessions

func (a *Client) ListSessions(params *ListSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSessionsOK, error)
ListSessions lists 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 (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, error)

	DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, error)

	DetailSession(params *DetailSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DetailSessionOK, error)

	ListSessions(params *ListSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSessionsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new session API client.

type CreateSessionBadRequest

type CreateSessionBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

CreateSessionBadRequest handles this case with default header values.

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

func NewCreateSessionBadRequest

func NewCreateSessionBadRequest() *CreateSessionBadRequest

NewCreateSessionBadRequest creates a CreateSessionBadRequest with default headers values

func (*CreateSessionBadRequest) Error

func (o *CreateSessionBadRequest) Error() string

func (*CreateSessionBadRequest) GetPayload

type CreateSessionOK

type CreateSessionOK struct {
	Payload *rest_model.SessionCreateEnvelope
}

CreateSessionOK handles this case with default header values.

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

func NewCreateSessionOK

func NewCreateSessionOK() *CreateSessionOK

NewCreateSessionOK creates a CreateSessionOK with default headers values

func (*CreateSessionOK) Error

func (o *CreateSessionOK) Error() string

func (*CreateSessionOK) GetPayload

type CreateSessionParams

type CreateSessionParams struct {

	/*Body
	  A session to create

	*/
	Body *rest_model.SessionCreate

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateSessionParams contains all the parameters to send to the API endpoint for the create session operation typically these are written to a http.Request

func NewCreateSessionParams

func NewCreateSessionParams() *CreateSessionParams

NewCreateSessionParams creates a new CreateSessionParams object with the default values initialized.

func NewCreateSessionParamsWithContext

func NewCreateSessionParamsWithContext(ctx context.Context) *CreateSessionParams

NewCreateSessionParamsWithContext creates a new CreateSessionParams object with the default values initialized, and the ability to set a context for a request

func NewCreateSessionParamsWithHTTPClient

func NewCreateSessionParamsWithHTTPClient(client *http.Client) *CreateSessionParams

NewCreateSessionParamsWithHTTPClient creates a new CreateSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateSessionParamsWithTimeout

func NewCreateSessionParamsWithTimeout(timeout time.Duration) *CreateSessionParams

NewCreateSessionParamsWithTimeout creates a new CreateSessionParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateSessionParams) SetBody

func (o *CreateSessionParams) SetBody(body *rest_model.SessionCreate)

SetBody adds the body to the create session params

func (*CreateSessionParams) SetContext

func (o *CreateSessionParams) SetContext(ctx context.Context)

SetContext adds the context to the create session params

func (*CreateSessionParams) SetHTTPClient

func (o *CreateSessionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create session params

func (*CreateSessionParams) SetTimeout

func (o *CreateSessionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create session params

func (*CreateSessionParams) WithBody

WithBody adds the body to the create session params

func (*CreateSessionParams) WithContext

WithContext adds the context to the create session params

func (*CreateSessionParams) WithHTTPClient

func (o *CreateSessionParams) WithHTTPClient(client *http.Client) *CreateSessionParams

WithHTTPClient adds the HTTPClient to the create session params

func (*CreateSessionParams) WithTimeout

func (o *CreateSessionParams) WithTimeout(timeout time.Duration) *CreateSessionParams

WithTimeout adds the timeout to the create session params

func (*CreateSessionParams) WriteToRequest

func (o *CreateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateSessionReader

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

CreateSessionReader is a Reader for the CreateSession structure.

func (*CreateSessionReader) ReadResponse

func (o *CreateSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateSessionUnauthorized

type CreateSessionUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

CreateSessionUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewCreateSessionUnauthorized

func NewCreateSessionUnauthorized() *CreateSessionUnauthorized

NewCreateSessionUnauthorized creates a CreateSessionUnauthorized with default headers values

func (*CreateSessionUnauthorized) Error

func (o *CreateSessionUnauthorized) Error() string

func (*CreateSessionUnauthorized) GetPayload

type DeleteSessionBadRequest

type DeleteSessionBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteSessionBadRequest handles this case with default header values.

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

func NewDeleteSessionBadRequest

func NewDeleteSessionBadRequest() *DeleteSessionBadRequest

NewDeleteSessionBadRequest creates a DeleteSessionBadRequest with default headers values

func (*DeleteSessionBadRequest) Error

func (o *DeleteSessionBadRequest) Error() string

func (*DeleteSessionBadRequest) GetPayload

type DeleteSessionConflict

type DeleteSessionConflict struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteSessionConflict handles this case with default header values.

The resource requested to be removed/altered cannot be as it is referenced by another object.

func NewDeleteSessionConflict

func NewDeleteSessionConflict() *DeleteSessionConflict

NewDeleteSessionConflict creates a DeleteSessionConflict with default headers values

func (*DeleteSessionConflict) Error

func (o *DeleteSessionConflict) Error() string

func (*DeleteSessionConflict) GetPayload

type DeleteSessionOK

type DeleteSessionOK struct {
	Payload *rest_model.Empty
}

DeleteSessionOK handles this case with default header values.

The delete request was successful and the resource has been removed

func NewDeleteSessionOK

func NewDeleteSessionOK() *DeleteSessionOK

NewDeleteSessionOK creates a DeleteSessionOK with default headers values

func (*DeleteSessionOK) Error

func (o *DeleteSessionOK) Error() string

func (*DeleteSessionOK) GetPayload

func (o *DeleteSessionOK) GetPayload() *rest_model.Empty

type DeleteSessionParams

type DeleteSessionParams struct {

	/*ID
	  The id of the requested resource

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteSessionParams contains all the parameters to send to the API endpoint for the delete session operation typically these are written to a http.Request

func NewDeleteSessionParams

func NewDeleteSessionParams() *DeleteSessionParams

NewDeleteSessionParams creates a new DeleteSessionParams object with the default values initialized.

func NewDeleteSessionParamsWithContext

func NewDeleteSessionParamsWithContext(ctx context.Context) *DeleteSessionParams

NewDeleteSessionParamsWithContext creates a new DeleteSessionParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteSessionParamsWithHTTPClient

func NewDeleteSessionParamsWithHTTPClient(client *http.Client) *DeleteSessionParams

NewDeleteSessionParamsWithHTTPClient creates a new DeleteSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteSessionParamsWithTimeout

func NewDeleteSessionParamsWithTimeout(timeout time.Duration) *DeleteSessionParams

NewDeleteSessionParamsWithTimeout creates a new DeleteSessionParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteSessionParams) SetContext

func (o *DeleteSessionParams) SetContext(ctx context.Context)

SetContext adds the context to the delete session params

func (*DeleteSessionParams) SetHTTPClient

func (o *DeleteSessionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete session params

func (*DeleteSessionParams) SetID

func (o *DeleteSessionParams) SetID(id string)

SetID adds the id to the delete session params

func (*DeleteSessionParams) SetTimeout

func (o *DeleteSessionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete session params

func (*DeleteSessionParams) WithContext

WithContext adds the context to the delete session params

func (*DeleteSessionParams) WithHTTPClient

func (o *DeleteSessionParams) WithHTTPClient(client *http.Client) *DeleteSessionParams

WithHTTPClient adds the HTTPClient to the delete session params

func (*DeleteSessionParams) WithID

WithID adds the id to the delete session params

func (*DeleteSessionParams) WithTimeout

func (o *DeleteSessionParams) WithTimeout(timeout time.Duration) *DeleteSessionParams

WithTimeout adds the timeout to the delete session params

func (*DeleteSessionParams) WriteToRequest

func (o *DeleteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteSessionReader

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

DeleteSessionReader is a Reader for the DeleteSession structure.

func (*DeleteSessionReader) ReadResponse

func (o *DeleteSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteSessionUnauthorized

type DeleteSessionUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteSessionUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDeleteSessionUnauthorized

func NewDeleteSessionUnauthorized() *DeleteSessionUnauthorized

NewDeleteSessionUnauthorized creates a DeleteSessionUnauthorized with default headers values

func (*DeleteSessionUnauthorized) Error

func (o *DeleteSessionUnauthorized) Error() string

func (*DeleteSessionUnauthorized) GetPayload

type DetailSessionNotFound

type DetailSessionNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}

DetailSessionNotFound handles this case with default header values.

The requested resource does not exist

func NewDetailSessionNotFound

func NewDetailSessionNotFound() *DetailSessionNotFound

NewDetailSessionNotFound creates a DetailSessionNotFound with default headers values

func (*DetailSessionNotFound) Error

func (o *DetailSessionNotFound) Error() string

func (*DetailSessionNotFound) GetPayload

type DetailSessionOK

type DetailSessionOK struct {
	Payload *rest_model.DetailSessionEnvelope
}

DetailSessionOK handles this case with default header values.

A single session

func NewDetailSessionOK

func NewDetailSessionOK() *DetailSessionOK

NewDetailSessionOK creates a DetailSessionOK with default headers values

func (*DetailSessionOK) Error

func (o *DetailSessionOK) Error() string

func (*DetailSessionOK) GetPayload

type DetailSessionParams

type DetailSessionParams struct {

	/*ID
	  The id of the requested resource

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DetailSessionParams contains all the parameters to send to the API endpoint for the detail session operation typically these are written to a http.Request

func NewDetailSessionParams

func NewDetailSessionParams() *DetailSessionParams

NewDetailSessionParams creates a new DetailSessionParams object with the default values initialized.

func NewDetailSessionParamsWithContext

func NewDetailSessionParamsWithContext(ctx context.Context) *DetailSessionParams

NewDetailSessionParamsWithContext creates a new DetailSessionParams object with the default values initialized, and the ability to set a context for a request

func NewDetailSessionParamsWithHTTPClient

func NewDetailSessionParamsWithHTTPClient(client *http.Client) *DetailSessionParams

NewDetailSessionParamsWithHTTPClient creates a new DetailSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDetailSessionParamsWithTimeout

func NewDetailSessionParamsWithTimeout(timeout time.Duration) *DetailSessionParams

NewDetailSessionParamsWithTimeout creates a new DetailSessionParams object with the default values initialized, and the ability to set a timeout on a request

func (*DetailSessionParams) SetContext

func (o *DetailSessionParams) SetContext(ctx context.Context)

SetContext adds the context to the detail session params

func (*DetailSessionParams) SetHTTPClient

func (o *DetailSessionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the detail session params

func (*DetailSessionParams) SetID

func (o *DetailSessionParams) SetID(id string)

SetID adds the id to the detail session params

func (*DetailSessionParams) SetTimeout

func (o *DetailSessionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the detail session params

func (*DetailSessionParams) WithContext

WithContext adds the context to the detail session params

func (*DetailSessionParams) WithHTTPClient

func (o *DetailSessionParams) WithHTTPClient(client *http.Client) *DetailSessionParams

WithHTTPClient adds the HTTPClient to the detail session params

func (*DetailSessionParams) WithID

WithID adds the id to the detail session params

func (*DetailSessionParams) WithTimeout

func (o *DetailSessionParams) WithTimeout(timeout time.Duration) *DetailSessionParams

WithTimeout adds the timeout to the detail session params

func (*DetailSessionParams) WriteToRequest

func (o *DetailSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DetailSessionReader

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

DetailSessionReader is a Reader for the DetailSession structure.

func (*DetailSessionReader) ReadResponse

func (o *DetailSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DetailSessionUnauthorized

type DetailSessionUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

DetailSessionUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDetailSessionUnauthorized

func NewDetailSessionUnauthorized() *DetailSessionUnauthorized

NewDetailSessionUnauthorized creates a DetailSessionUnauthorized with default headers values

func (*DetailSessionUnauthorized) Error

func (o *DetailSessionUnauthorized) Error() string

func (*DetailSessionUnauthorized) GetPayload

type ListSessionsOK

type ListSessionsOK struct {
	Payload *rest_model.ListSessionsEnvelope
}

ListSessionsOK handles this case with default header values.

A list of sessions

func NewListSessionsOK

func NewListSessionsOK() *ListSessionsOK

NewListSessionsOK creates a ListSessionsOK with default headers values

func (*ListSessionsOK) Error

func (o *ListSessionsOK) Error() string

func (*ListSessionsOK) GetPayload

type ListSessionsParams

type ListSessionsParams struct {

	/*Filter*/
	Filter *string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListSessionsParams contains all the parameters to send to the API endpoint for the list sessions operation typically these are written to a http.Request

func NewListSessionsParams

func NewListSessionsParams() *ListSessionsParams

NewListSessionsParams creates a new ListSessionsParams object with the default values initialized.

func NewListSessionsParamsWithContext

func NewListSessionsParamsWithContext(ctx context.Context) *ListSessionsParams

NewListSessionsParamsWithContext creates a new ListSessionsParams object with the default values initialized, and the ability to set a context for a request

func NewListSessionsParamsWithHTTPClient

func NewListSessionsParamsWithHTTPClient(client *http.Client) *ListSessionsParams

NewListSessionsParamsWithHTTPClient creates a new ListSessionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListSessionsParamsWithTimeout

func NewListSessionsParamsWithTimeout(timeout time.Duration) *ListSessionsParams

NewListSessionsParamsWithTimeout creates a new ListSessionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListSessionsParams) SetContext

func (o *ListSessionsParams) SetContext(ctx context.Context)

SetContext adds the context to the list sessions params

func (*ListSessionsParams) SetFilter

func (o *ListSessionsParams) SetFilter(filter *string)

SetFilter adds the filter to the list sessions params

func (*ListSessionsParams) SetHTTPClient

func (o *ListSessionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list sessions params

func (*ListSessionsParams) SetLimit

func (o *ListSessionsParams) SetLimit(limit *int64)

SetLimit adds the limit to the list sessions params

func (*ListSessionsParams) SetOffset

func (o *ListSessionsParams) SetOffset(offset *int64)

SetOffset adds the offset to the list sessions params

func (*ListSessionsParams) SetTimeout

func (o *ListSessionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list sessions params

func (*ListSessionsParams) WithContext

WithContext adds the context to the list sessions params

func (*ListSessionsParams) WithFilter

func (o *ListSessionsParams) WithFilter(filter *string) *ListSessionsParams

WithFilter adds the filter to the list sessions params

func (*ListSessionsParams) WithHTTPClient

func (o *ListSessionsParams) WithHTTPClient(client *http.Client) *ListSessionsParams

WithHTTPClient adds the HTTPClient to the list sessions params

func (*ListSessionsParams) WithLimit

func (o *ListSessionsParams) WithLimit(limit *int64) *ListSessionsParams

WithLimit adds the limit to the list sessions params

func (*ListSessionsParams) WithOffset

func (o *ListSessionsParams) WithOffset(offset *int64) *ListSessionsParams

WithOffset adds the offset to the list sessions params

func (*ListSessionsParams) WithTimeout

func (o *ListSessionsParams) WithTimeout(timeout time.Duration) *ListSessionsParams

WithTimeout adds the timeout to the list sessions params

func (*ListSessionsParams) WriteToRequest

func (o *ListSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListSessionsReader

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

ListSessionsReader is a Reader for the ListSessions structure.

func (*ListSessionsReader) ReadResponse

func (o *ListSessionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListSessionsUnauthorized

type ListSessionsUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

ListSessionsUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListSessionsUnauthorized

func NewListSessionsUnauthorized() *ListSessionsUnauthorized

NewListSessionsUnauthorized creates a ListSessionsUnauthorized with default headers values

func (*ListSessionsUnauthorized) Error

func (o *ListSessionsUnauthorized) Error() string

func (*ListSessionsUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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