Documentation ¶
Index ¶
- type Client
- func (a *Client) GetOauthProvider(params *GetOauthProviderParams) (*GetOauthProviderOK, error)
- func (a *Client) GetOauthProviderRedirect(params *GetOauthProviderRedirectParams) (*GetOauthProviderRedirectOK, error)
- func (a *Client) GetOauthRefresh(params *GetOauthRefreshParams) (*GetOauthRefreshOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetOauthProviderOK
- type GetOauthProviderParams
- func NewGetOauthProviderParams() *GetOauthProviderParams
- func NewGetOauthProviderParamsWithContext(ctx context.Context) *GetOauthProviderParams
- func NewGetOauthProviderParamsWithHTTPClient(client *http.Client) *GetOauthProviderParams
- func NewGetOauthProviderParamsWithTimeout(timeout time.Duration) *GetOauthProviderParams
- func (o *GetOauthProviderParams) SetContext(ctx context.Context)
- func (o *GetOauthProviderParams) SetHTTPClient(client *http.Client)
- func (o *GetOauthProviderParams) SetProvider(provider string)
- func (o *GetOauthProviderParams) SetTimeout(timeout time.Duration)
- func (o *GetOauthProviderParams) WithContext(ctx context.Context) *GetOauthProviderParams
- func (o *GetOauthProviderParams) WithHTTPClient(client *http.Client) *GetOauthProviderParams
- func (o *GetOauthProviderParams) WithProvider(provider string) *GetOauthProviderParams
- func (o *GetOauthProviderParams) WithTimeout(timeout time.Duration) *GetOauthProviderParams
- func (o *GetOauthProviderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOauthProviderReader
- type GetOauthProviderRedirectInternalServerError
- type GetOauthProviderRedirectOK
- type GetOauthProviderRedirectParams
- func NewGetOauthProviderRedirectParams() *GetOauthProviderRedirectParams
- func NewGetOauthProviderRedirectParamsWithContext(ctx context.Context) *GetOauthProviderRedirectParams
- func NewGetOauthProviderRedirectParamsWithHTTPClient(client *http.Client) *GetOauthProviderRedirectParams
- func NewGetOauthProviderRedirectParamsWithTimeout(timeout time.Duration) *GetOauthProviderRedirectParams
- func (o *GetOauthProviderRedirectParams) SetContext(ctx context.Context)
- func (o *GetOauthProviderRedirectParams) SetHTTPClient(client *http.Client)
- func (o *GetOauthProviderRedirectParams) SetProvider(provider string)
- func (o *GetOauthProviderRedirectParams) SetTimeout(timeout time.Duration)
- func (o *GetOauthProviderRedirectParams) WithContext(ctx context.Context) *GetOauthProviderRedirectParams
- func (o *GetOauthProviderRedirectParams) WithHTTPClient(client *http.Client) *GetOauthProviderRedirectParams
- func (o *GetOauthProviderRedirectParams) WithProvider(provider string) *GetOauthProviderRedirectParams
- func (o *GetOauthProviderRedirectParams) WithTimeout(timeout time.Duration) *GetOauthProviderRedirectParams
- func (o *GetOauthProviderRedirectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOauthProviderRedirectReader
- type GetOauthRefreshInternalServerError
- type GetOauthRefreshOK
- type GetOauthRefreshParams
- func NewGetOauthRefreshParams() *GetOauthRefreshParams
- func NewGetOauthRefreshParamsWithContext(ctx context.Context) *GetOauthRefreshParams
- func NewGetOauthRefreshParamsWithHTTPClient(client *http.Client) *GetOauthRefreshParams
- func NewGetOauthRefreshParamsWithTimeout(timeout time.Duration) *GetOauthRefreshParams
- func (o *GetOauthRefreshParams) SetContext(ctx context.Context)
- func (o *GetOauthRefreshParams) SetHTTPClient(client *http.Client)
- func (o *GetOauthRefreshParams) SetTimeout(timeout time.Duration)
- func (o *GetOauthRefreshParams) WithContext(ctx context.Context) *GetOauthRefreshParams
- func (o *GetOauthRefreshParams) WithHTTPClient(client *http.Client) *GetOauthRefreshParams
- func (o *GetOauthRefreshParams) WithTimeout(timeout time.Duration) *GetOauthRefreshParams
- func (o *GetOauthRefreshParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOauthRefreshReader
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 ¶
func (o *GetOauthProviderParams) WithContext(ctx context.Context) *GetOauthProviderParams
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 ¶
func (o *GetOauthProviderParams) WithTimeout(timeout time.Duration) *GetOauthProviderParams
WithTimeout adds the timeout to the get oauth provider params
func (*GetOauthProviderParams) WriteToRequest ¶
func (o *GetOauthProviderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetOauthProviderRedirectInternalServerError) Error() string
func (*GetOauthProviderRedirectInternalServerError) GetPayload ¶
func (o *GetOauthProviderRedirectInternalServerError) GetPayload() *models.ResponseHTTPError
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 (o *GetOauthProviderRedirectOK) Error() string
func (*GetOauthProviderRedirectOK) GetPayload ¶
func (o *GetOauthProviderRedirectOK) GetPayload() *models.ResponseJWTAuth
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 ¶
func (o *GetOauthProviderRedirectParams) WithContext(ctx context.Context) *GetOauthProviderRedirectParams
WithContext adds the context to the get oauth provider redirect params
func (*GetOauthProviderRedirectParams) WithHTTPClient ¶
func (o *GetOauthProviderRedirectParams) WithHTTPClient(client *http.Client) *GetOauthProviderRedirectParams
WithHTTPClient adds the HTTPClient to the get oauth provider redirect params
func (*GetOauthProviderRedirectParams) WithProvider ¶
func (o *GetOauthProviderRedirectParams) WithProvider(provider string) *GetOauthProviderRedirectParams
WithProvider adds the provider to the get oauth provider redirect params
func (*GetOauthProviderRedirectParams) WithTimeout ¶
func (o *GetOauthProviderRedirectParams) WithTimeout(timeout time.Duration) *GetOauthProviderRedirectParams
WithTimeout adds the timeout to the get oauth provider redirect params
func (*GetOauthProviderRedirectParams) WriteToRequest ¶
func (o *GetOauthProviderRedirectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetOauthRefreshInternalServerError) Error() string
func (*GetOauthRefreshInternalServerError) GetPayload ¶
func (o *GetOauthRefreshInternalServerError) GetPayload() *models.ResponseHTTPError
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 ¶
func (o *GetOauthRefreshParams) WithContext(ctx context.Context) *GetOauthRefreshParams
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.