auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT 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 auth API

func (*Client) GetOauthProvider

func (a *Client) GetOauthProvider(params *GetOauthProviderParams) (*GetOauthProviderOK, error)

GetOauthProvider handles login for xene

Log in to xene using the configured oauth providers that xene supports.

func (*Client) GetOauthProviderRedirect

func (a *Client) GetOauthProviderRedirect(params *GetOauthProviderRedirectParams) (*GetOauthProviderRedirectOK, error)

GetOauthProviderRedirect handles redirect from the login oauth provider

redirectHandler handles the redirect from the Oauth provider after the authentication process has

func (*Client) GetOauthRefresh

func (a *Client) GetOauthRefresh(params *GetOauthRefreshParams) (*GetOauthRefreshOK, error)

GetOauthRefresh handles authentication token refresh for the oauth provider

Handles authentication token refresh

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetOauthProvider(params *GetOauthProviderParams) (*GetOauthProviderOK, error)

	GetOauthProviderRedirect(params *GetOauthProviderRedirectParams) (*GetOauthProviderRedirectOK, error)

	GetOauthRefresh(params *GetOauthRefreshParams) (*GetOauthRefreshOK, 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 auth API client.

type GetOauthProviderOK

type GetOauthProviderOK struct {
	Payload *models.ResponseOauthLogin
}

GetOauthProviderOK handles this case with default header values.

OK

func NewGetOauthProviderOK

func NewGetOauthProviderOK() *GetOauthProviderOK

NewGetOauthProviderOK creates a GetOauthProviderOK with default headers values

func (*GetOauthProviderOK) Error

func (o *GetOauthProviderOK) Error() string

func (*GetOauthProviderOK) GetPayload

func (o *GetOauthProviderOK) GetPayload() *models.ResponseOauthLogin

type GetOauthProviderParams

type GetOauthProviderParams struct {

	/*Provider
	  Provider for oauth login

	*/
	Provider string

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

GetOauthProviderParams contains all the parameters to send to the API endpoint for the get oauth provider operation typically these are written to a http.Request

func NewGetOauthProviderParams

func NewGetOauthProviderParams() *GetOauthProviderParams

NewGetOauthProviderParams creates a new GetOauthProviderParams object with the default values initialized.

func NewGetOauthProviderParamsWithContext

func NewGetOauthProviderParamsWithContext(ctx context.Context) *GetOauthProviderParams

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

func NewGetOauthProviderParamsWithHTTPClient

func NewGetOauthProviderParamsWithHTTPClient(client *http.Client) *GetOauthProviderParams

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

func NewGetOauthProviderParamsWithTimeout

func NewGetOauthProviderParamsWithTimeout(timeout time.Duration) *GetOauthProviderParams

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

func (*GetOauthProviderParams) SetContext

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

SetContext adds the context to the get oauth provider params

func (*GetOauthProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get oauth provider params

func (*GetOauthProviderParams) SetProvider

func (o *GetOauthProviderParams) SetProvider(provider string)

SetProvider adds the provider to the get oauth provider params

func (*GetOauthProviderParams) SetTimeout

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

SetTimeout adds the timeout to the get oauth provider params

func (*GetOauthProviderParams) WithContext

WithContext adds the context to the get oauth provider params

func (*GetOauthProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get oauth provider params

func (*GetOauthProviderParams) WithProvider

func (o *GetOauthProviderParams) WithProvider(provider string) *GetOauthProviderParams

WithProvider adds the provider to the get oauth provider params

func (*GetOauthProviderParams) WithTimeout

WithTimeout adds the timeout to the get oauth provider params

func (*GetOauthProviderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOauthProviderReader

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

GetOauthProviderReader is a Reader for the GetOauthProvider structure.

func (*GetOauthProviderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOauthProviderRedirectInternalServerError

type GetOauthProviderRedirectInternalServerError struct {
	Payload *models.ResponseHTTPError
}

GetOauthProviderRedirectInternalServerError handles this case with default header values.

Internal Server Error

func NewGetOauthProviderRedirectInternalServerError

func NewGetOauthProviderRedirectInternalServerError() *GetOauthProviderRedirectInternalServerError

NewGetOauthProviderRedirectInternalServerError creates a GetOauthProviderRedirectInternalServerError with default headers values

func (*GetOauthProviderRedirectInternalServerError) Error

func (*GetOauthProviderRedirectInternalServerError) GetPayload

type GetOauthProviderRedirectOK

type GetOauthProviderRedirectOK struct {
	Payload *models.ResponseJWTAuth
}

GetOauthProviderRedirectOK handles this case with default header values.

OK

func NewGetOauthProviderRedirectOK

func NewGetOauthProviderRedirectOK() *GetOauthProviderRedirectOK

NewGetOauthProviderRedirectOK creates a GetOauthProviderRedirectOK with default headers values

func (*GetOauthProviderRedirectOK) Error

func (*GetOauthProviderRedirectOK) GetPayload

type GetOauthProviderRedirectParams

type GetOauthProviderRedirectParams struct {

	/*Provider
	  Provider for the oauth redirect

	*/
	Provider string

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

GetOauthProviderRedirectParams contains all the parameters to send to the API endpoint for the get oauth provider redirect operation typically these are written to a http.Request

func NewGetOauthProviderRedirectParams

func NewGetOauthProviderRedirectParams() *GetOauthProviderRedirectParams

NewGetOauthProviderRedirectParams creates a new GetOauthProviderRedirectParams object with the default values initialized.

func NewGetOauthProviderRedirectParamsWithContext

func NewGetOauthProviderRedirectParamsWithContext(ctx context.Context) *GetOauthProviderRedirectParams

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

func NewGetOauthProviderRedirectParamsWithHTTPClient

func NewGetOauthProviderRedirectParamsWithHTTPClient(client *http.Client) *GetOauthProviderRedirectParams

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

func NewGetOauthProviderRedirectParamsWithTimeout

func NewGetOauthProviderRedirectParamsWithTimeout(timeout time.Duration) *GetOauthProviderRedirectParams

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

func (*GetOauthProviderRedirectParams) SetContext

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

SetContext adds the context to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) SetProvider

func (o *GetOauthProviderRedirectParams) SetProvider(provider string)

SetProvider adds the provider to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) SetTimeout

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

SetTimeout adds the timeout to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) WithContext

WithContext adds the context to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) WithProvider

WithProvider adds the provider to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) WithTimeout

WithTimeout adds the timeout to the get oauth provider redirect params

func (*GetOauthProviderRedirectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOauthProviderRedirectReader

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

GetOauthProviderRedirectReader is a Reader for the GetOauthProviderRedirect structure.

func (*GetOauthProviderRedirectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOauthRefreshInternalServerError

type GetOauthRefreshInternalServerError struct {
	Payload *models.ResponseHTTPError
}

GetOauthRefreshInternalServerError handles this case with default header values.

Internal Server Error

func NewGetOauthRefreshInternalServerError

func NewGetOauthRefreshInternalServerError() *GetOauthRefreshInternalServerError

NewGetOauthRefreshInternalServerError creates a GetOauthRefreshInternalServerError with default headers values

func (*GetOauthRefreshInternalServerError) Error

func (*GetOauthRefreshInternalServerError) GetPayload

type GetOauthRefreshOK

type GetOauthRefreshOK struct {
	Payload *models.ResponseJWTAuth
}

GetOauthRefreshOK handles this case with default header values.

OK

func NewGetOauthRefreshOK

func NewGetOauthRefreshOK() *GetOauthRefreshOK

NewGetOauthRefreshOK creates a GetOauthRefreshOK with default headers values

func (*GetOauthRefreshOK) Error

func (o *GetOauthRefreshOK) Error() string

func (*GetOauthRefreshOK) GetPayload

func (o *GetOauthRefreshOK) GetPayload() *models.ResponseJWTAuth

type GetOauthRefreshParams

type GetOauthRefreshParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOauthRefreshParams contains all the parameters to send to the API endpoint for the get oauth refresh operation typically these are written to a http.Request

func NewGetOauthRefreshParams

func NewGetOauthRefreshParams() *GetOauthRefreshParams

NewGetOauthRefreshParams creates a new GetOauthRefreshParams object with the default values initialized.

func NewGetOauthRefreshParamsWithContext

func NewGetOauthRefreshParamsWithContext(ctx context.Context) *GetOauthRefreshParams

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

func NewGetOauthRefreshParamsWithHTTPClient

func NewGetOauthRefreshParamsWithHTTPClient(client *http.Client) *GetOauthRefreshParams

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

func NewGetOauthRefreshParamsWithTimeout

func NewGetOauthRefreshParamsWithTimeout(timeout time.Duration) *GetOauthRefreshParams

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

func (*GetOauthRefreshParams) SetContext

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

SetContext adds the context to the get oauth refresh params

func (*GetOauthRefreshParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get oauth refresh params

func (*GetOauthRefreshParams) SetTimeout

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

SetTimeout adds the timeout to the get oauth refresh params

func (*GetOauthRefreshParams) WithContext

WithContext adds the context to the get oauth refresh params

func (*GetOauthRefreshParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get oauth refresh params

func (*GetOauthRefreshParams) WithTimeout

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

WithTimeout adds the timeout to the get oauth refresh params

func (*GetOauthRefreshParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetOauthRefreshReader

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

GetOauthRefreshReader is a Reader for the GetOauthRefresh structure.

func (*GetOauthRefreshReader) ReadResponse

func (o *GetOauthRefreshReader) 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