magic

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 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 magic API

func (*Client) GetMagicCallback

func (a *Client) GetMagicCallback(params *GetMagicCallbackParams, opts ...ClientOption) error

GetMagicCallback magics callback validates the magic link and logs in the user

MagicCallback validates the magic link and logs in the user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetMagicCallback(params *GetMagicCallbackParams, opts ...ClientOption) 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 magic API client.

type GetMagicCallbackForbidden

type GetMagicCallbackForbidden struct {
	Payload string
}

GetMagicCallbackForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetMagicCallbackForbidden

func NewGetMagicCallbackForbidden() *GetMagicCallbackForbidden

NewGetMagicCallbackForbidden creates a GetMagicCallbackForbidden with default headers values

func (*GetMagicCallbackForbidden) Code

func (o *GetMagicCallbackForbidden) Code() int

Code gets the status code for the get magic callback forbidden response

func (*GetMagicCallbackForbidden) Error

func (o *GetMagicCallbackForbidden) Error() string

func (*GetMagicCallbackForbidden) GetPayload

func (o *GetMagicCallbackForbidden) GetPayload() string

func (*GetMagicCallbackForbidden) IsClientError

func (o *GetMagicCallbackForbidden) IsClientError() bool

IsClientError returns true when this get magic callback forbidden response has a 4xx status code

func (*GetMagicCallbackForbidden) IsCode

func (o *GetMagicCallbackForbidden) IsCode(code int) bool

IsCode returns true when this get magic callback forbidden response a status code equal to that given

func (*GetMagicCallbackForbidden) IsRedirect

func (o *GetMagicCallbackForbidden) IsRedirect() bool

IsRedirect returns true when this get magic callback forbidden response has a 3xx status code

func (*GetMagicCallbackForbidden) IsServerError

func (o *GetMagicCallbackForbidden) IsServerError() bool

IsServerError returns true when this get magic callback forbidden response has a 5xx status code

func (*GetMagicCallbackForbidden) IsSuccess

func (o *GetMagicCallbackForbidden) IsSuccess() bool

IsSuccess returns true when this get magic callback forbidden response has a 2xx status code

func (*GetMagicCallbackForbidden) String

func (o *GetMagicCallbackForbidden) String() string

type GetMagicCallbackInternalServerError

type GetMagicCallbackInternalServerError struct {
	Payload string
}

GetMagicCallbackInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetMagicCallbackInternalServerError

func NewGetMagicCallbackInternalServerError() *GetMagicCallbackInternalServerError

NewGetMagicCallbackInternalServerError creates a GetMagicCallbackInternalServerError with default headers values

func (*GetMagicCallbackInternalServerError) Code

Code gets the status code for the get magic callback internal server error response

func (*GetMagicCallbackInternalServerError) Error

func (*GetMagicCallbackInternalServerError) GetPayload

func (*GetMagicCallbackInternalServerError) IsClientError

func (o *GetMagicCallbackInternalServerError) IsClientError() bool

IsClientError returns true when this get magic callback internal server error response has a 4xx status code

func (*GetMagicCallbackInternalServerError) IsCode

IsCode returns true when this get magic callback internal server error response a status code equal to that given

func (*GetMagicCallbackInternalServerError) IsRedirect

func (o *GetMagicCallbackInternalServerError) IsRedirect() bool

IsRedirect returns true when this get magic callback internal server error response has a 3xx status code

func (*GetMagicCallbackInternalServerError) IsServerError

func (o *GetMagicCallbackInternalServerError) IsServerError() bool

IsServerError returns true when this get magic callback internal server error response has a 5xx status code

func (*GetMagicCallbackInternalServerError) IsSuccess

IsSuccess returns true when this get magic callback internal server error response has a 2xx status code

func (*GetMagicCallbackInternalServerError) String

type GetMagicCallbackNotFound

type GetMagicCallbackNotFound struct {
	Payload string
}

GetMagicCallbackNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetMagicCallbackNotFound

func NewGetMagicCallbackNotFound() *GetMagicCallbackNotFound

NewGetMagicCallbackNotFound creates a GetMagicCallbackNotFound with default headers values

func (*GetMagicCallbackNotFound) Code

func (o *GetMagicCallbackNotFound) Code() int

Code gets the status code for the get magic callback not found response

func (*GetMagicCallbackNotFound) Error

func (o *GetMagicCallbackNotFound) Error() string

func (*GetMagicCallbackNotFound) GetPayload

func (o *GetMagicCallbackNotFound) GetPayload() string

func (*GetMagicCallbackNotFound) IsClientError

func (o *GetMagicCallbackNotFound) IsClientError() bool

IsClientError returns true when this get magic callback not found response has a 4xx status code

func (*GetMagicCallbackNotFound) IsCode

func (o *GetMagicCallbackNotFound) IsCode(code int) bool

IsCode returns true when this get magic callback not found response a status code equal to that given

func (*GetMagicCallbackNotFound) IsRedirect

func (o *GetMagicCallbackNotFound) IsRedirect() bool

IsRedirect returns true when this get magic callback not found response has a 3xx status code

func (*GetMagicCallbackNotFound) IsServerError

func (o *GetMagicCallbackNotFound) IsServerError() bool

IsServerError returns true when this get magic callback not found response has a 5xx status code

func (*GetMagicCallbackNotFound) IsSuccess

func (o *GetMagicCallbackNotFound) IsSuccess() bool

IsSuccess returns true when this get magic callback not found response has a 2xx status code

func (*GetMagicCallbackNotFound) String

func (o *GetMagicCallbackNotFound) String() string

type GetMagicCallbackParams

type GetMagicCallbackParams struct {

	/* Token.

	   magic link token
	*/
	Token string

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

GetMagicCallbackParams contains all the parameters to send to the API endpoint

for the get magic callback operation.

Typically these are written to a http.Request.

func NewGetMagicCallbackParams

func NewGetMagicCallbackParams() *GetMagicCallbackParams

NewGetMagicCallbackParams creates a new GetMagicCallbackParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetMagicCallbackParamsWithContext

func NewGetMagicCallbackParamsWithContext(ctx context.Context) *GetMagicCallbackParams

NewGetMagicCallbackParamsWithContext creates a new GetMagicCallbackParams object with the ability to set a context for a request.

func NewGetMagicCallbackParamsWithHTTPClient

func NewGetMagicCallbackParamsWithHTTPClient(client *http.Client) *GetMagicCallbackParams

NewGetMagicCallbackParamsWithHTTPClient creates a new GetMagicCallbackParams object with the ability to set a custom HTTPClient for a request.

func NewGetMagicCallbackParamsWithTimeout

func NewGetMagicCallbackParamsWithTimeout(timeout time.Duration) *GetMagicCallbackParams

NewGetMagicCallbackParamsWithTimeout creates a new GetMagicCallbackParams object with the ability to set a timeout on a request.

func (*GetMagicCallbackParams) SetContext

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

SetContext adds the context to the get magic callback params

func (*GetMagicCallbackParams) SetDefaults

func (o *GetMagicCallbackParams) SetDefaults()

SetDefaults hydrates default values in the get magic callback params (not the query body).

All values with no default are reset to their zero value.

func (*GetMagicCallbackParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get magic callback params

func (*GetMagicCallbackParams) SetTimeout

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

SetTimeout adds the timeout to the get magic callback params

func (*GetMagicCallbackParams) SetToken

func (o *GetMagicCallbackParams) SetToken(token string)

SetToken adds the token to the get magic callback params

func (*GetMagicCallbackParams) WithContext

WithContext adds the context to the get magic callback params

func (*GetMagicCallbackParams) WithDefaults

WithDefaults hydrates default values in the get magic callback params (not the query body).

All values with no default are reset to their zero value.

func (*GetMagicCallbackParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get magic callback params

func (*GetMagicCallbackParams) WithTimeout

WithTimeout adds the timeout to the get magic callback params

func (*GetMagicCallbackParams) WithToken

WithToken adds the token to the get magic callback params

func (*GetMagicCallbackParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMagicCallbackReader

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

GetMagicCallbackReader is a Reader for the GetMagicCallback structure.

func (*GetMagicCallbackReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMagicCallbackTemporaryRedirect

type GetMagicCallbackTemporaryRedirect struct {

	/* Redirects to Next URL
	 */
	Location string
}

GetMagicCallbackTemporaryRedirect describes a response with status code 307, with default header values.

Temporary Redirect

func NewGetMagicCallbackTemporaryRedirect

func NewGetMagicCallbackTemporaryRedirect() *GetMagicCallbackTemporaryRedirect

NewGetMagicCallbackTemporaryRedirect creates a GetMagicCallbackTemporaryRedirect with default headers values

func (*GetMagicCallbackTemporaryRedirect) Code

Code gets the status code for the get magic callback temporary redirect response

func (*GetMagicCallbackTemporaryRedirect) Error

func (*GetMagicCallbackTemporaryRedirect) IsClientError

func (o *GetMagicCallbackTemporaryRedirect) IsClientError() bool

IsClientError returns true when this get magic callback temporary redirect response has a 4xx status code

func (*GetMagicCallbackTemporaryRedirect) IsCode

func (o *GetMagicCallbackTemporaryRedirect) IsCode(code int) bool

IsCode returns true when this get magic callback temporary redirect response a status code equal to that given

func (*GetMagicCallbackTemporaryRedirect) IsRedirect

func (o *GetMagicCallbackTemporaryRedirect) IsRedirect() bool

IsRedirect returns true when this get magic callback temporary redirect response has a 3xx status code

func (*GetMagicCallbackTemporaryRedirect) IsServerError

func (o *GetMagicCallbackTemporaryRedirect) IsServerError() bool

IsServerError returns true when this get magic callback temporary redirect response has a 5xx status code

func (*GetMagicCallbackTemporaryRedirect) IsSuccess

func (o *GetMagicCallbackTemporaryRedirect) IsSuccess() bool

IsSuccess returns true when this get magic callback temporary redirect response has a 2xx status code

func (*GetMagicCallbackTemporaryRedirect) String

type GetMagicCallbackUnauthorized

type GetMagicCallbackUnauthorized struct {
	Payload string
}

GetMagicCallbackUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetMagicCallbackUnauthorized

func NewGetMagicCallbackUnauthorized() *GetMagicCallbackUnauthorized

NewGetMagicCallbackUnauthorized creates a GetMagicCallbackUnauthorized with default headers values

func (*GetMagicCallbackUnauthorized) Code

Code gets the status code for the get magic callback unauthorized response

func (*GetMagicCallbackUnauthorized) Error

func (*GetMagicCallbackUnauthorized) GetPayload

func (o *GetMagicCallbackUnauthorized) GetPayload() string

func (*GetMagicCallbackUnauthorized) IsClientError

func (o *GetMagicCallbackUnauthorized) IsClientError() bool

IsClientError returns true when this get magic callback unauthorized response has a 4xx status code

func (*GetMagicCallbackUnauthorized) IsCode

func (o *GetMagicCallbackUnauthorized) IsCode(code int) bool

IsCode returns true when this get magic callback unauthorized response a status code equal to that given

func (*GetMagicCallbackUnauthorized) IsRedirect

func (o *GetMagicCallbackUnauthorized) IsRedirect() bool

IsRedirect returns true when this get magic callback unauthorized response has a 3xx status code

func (*GetMagicCallbackUnauthorized) IsServerError

func (o *GetMagicCallbackUnauthorized) IsServerError() bool

IsServerError returns true when this get magic callback unauthorized response has a 5xx status code

func (*GetMagicCallbackUnauthorized) IsSuccess

func (o *GetMagicCallbackUnauthorized) IsSuccess() bool

IsSuccess returns true when this get magic callback unauthorized response has a 2xx status code

func (*GetMagicCallbackUnauthorized) String

Jump to

Keyboard shortcuts

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