token_manager

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 10 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 token manager API

func New

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

New creates a new token manager API client.

func (*Client) CreateClient

func (a *Client) CreateClient(params *CreateClientParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClientOK, error)

CreateClient creates client

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Token

func (a *Client) Token(params *TokenParams) (*TokenOK, error)

Token gets users include user info of role and group filter with fields user id email phone number status default return all users

type CreateClientOK

type CreateClientOK struct {
	Payload *models.OpenpitrixCreateClientResponse
}

CreateClientOK handles this case with default header values.

A successful response.

func NewCreateClientOK

func NewCreateClientOK() *CreateClientOK

NewCreateClientOK creates a CreateClientOK with default headers values

func (*CreateClientOK) Error

func (o *CreateClientOK) Error() string

type CreateClientParams

type CreateClientParams struct {

	/*Body*/
	Body *models.OpenpitrixCreateClientRequest

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

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

func NewCreateClientParams

func NewCreateClientParams() *CreateClientParams

NewCreateClientParams creates a new CreateClientParams object with the default values initialized.

func NewCreateClientParamsWithContext

func NewCreateClientParamsWithContext(ctx context.Context) *CreateClientParams

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

func NewCreateClientParamsWithHTTPClient

func NewCreateClientParamsWithHTTPClient(client *http.Client) *CreateClientParams

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

func NewCreateClientParamsWithTimeout

func NewCreateClientParamsWithTimeout(timeout time.Duration) *CreateClientParams

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

func (*CreateClientParams) SetBody

SetBody adds the body to the create client params

func (*CreateClientParams) SetContext

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

SetContext adds the context to the create client params

func (*CreateClientParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create client params

func (*CreateClientParams) SetTimeout

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

SetTimeout adds the timeout to the create client params

func (*CreateClientParams) WithBody

WithBody adds the body to the create client params

func (*CreateClientParams) WithContext

WithContext adds the context to the create client params

func (*CreateClientParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create client params

func (*CreateClientParams) WithTimeout

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

WithTimeout adds the timeout to the create client params

func (*CreateClientParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateClientReader

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

CreateClientReader is a Reader for the CreateClient structure.

func (*CreateClientReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenOK

type TokenOK struct {
	Payload *models.OpenpitrixTokenResponse
}

TokenOK handles this case with default header values.

A successful response.

func NewTokenOK

func NewTokenOK() *TokenOK

NewTokenOK creates a TokenOK with default headers values

func (*TokenOK) Error

func (o *TokenOK) Error() string

type TokenParams

type TokenParams struct {

	/*Body*/
	Body *models.OpenpitrixTokenRequest

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

TokenParams contains all the parameters to send to the API endpoint for the token operation typically these are written to a http.Request

func NewTokenParams

func NewTokenParams() *TokenParams

NewTokenParams creates a new TokenParams object with the default values initialized.

func NewTokenParamsWithContext

func NewTokenParamsWithContext(ctx context.Context) *TokenParams

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

func NewTokenParamsWithHTTPClient

func NewTokenParamsWithHTTPClient(client *http.Client) *TokenParams

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

func NewTokenParamsWithTimeout

func NewTokenParamsWithTimeout(timeout time.Duration) *TokenParams

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

func (*TokenParams) SetBody

func (o *TokenParams) SetBody(body *models.OpenpitrixTokenRequest)

SetBody adds the body to the token params

func (*TokenParams) SetContext

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

SetContext adds the context to the token params

func (*TokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token params

func (*TokenParams) SetTimeout

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

SetTimeout adds the timeout to the token params

func (*TokenParams) WithBody

WithBody adds the body to the token params

func (*TokenParams) WithContext

func (o *TokenParams) WithContext(ctx context.Context) *TokenParams

WithContext adds the context to the token params

func (*TokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the token params

func (*TokenParams) WithTimeout

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

WithTimeout adds the timeout to the token params

func (*TokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokenReader

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

TokenReader is a Reader for the Token structure.

func (*TokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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