common

package
v0.0.3-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 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 common API

func New

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

New creates a new common API client.

func (*Client) GetSelfServiceBrowserLoginRequest

func (a *Client) GetSelfServiceBrowserLoginRequest(params *GetSelfServiceBrowserLoginRequestParams) (*GetSelfServiceBrowserLoginRequestOK, error)

GetSelfServiceBrowserLoginRequest gets the request context of browser based login user flows

This endpoint returns a login request's context with, for example, error details and other information.

When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks.

More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).

func (*Client) GetSelfServiceBrowserProfileManagementRequest

func (a *Client) GetSelfServiceBrowserProfileManagementRequest(params *GetSelfServiceBrowserProfileManagementRequestParams) (*GetSelfServiceBrowserProfileManagementRequestOK, error)

GetSelfServiceBrowserProfileManagementRequest gets the request context of browser based profile management flows

When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500.

More information can be found at [ORY Kratos Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-profile-management).

func (*Client) GetSelfServiceBrowserRegistrationRequest

func (a *Client) GetSelfServiceBrowserRegistrationRequest(params *GetSelfServiceBrowserRegistrationRequestParams) (*GetSelfServiceBrowserRegistrationRequestOK, error)

GetSelfServiceBrowserRegistrationRequest gets the request context of browser based registration user flows

This endpoint returns a registration request's context with, for example, error details and other information.

When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks.

More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetSelfServiceBrowserLoginRequestForbidden

type GetSelfServiceBrowserLoginRequestForbidden struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserLoginRequestForbidden handles this case with default header values.

genericError

func NewGetSelfServiceBrowserLoginRequestForbidden

func NewGetSelfServiceBrowserLoginRequestForbidden() *GetSelfServiceBrowserLoginRequestForbidden

NewGetSelfServiceBrowserLoginRequestForbidden creates a GetSelfServiceBrowserLoginRequestForbidden with default headers values

func (*GetSelfServiceBrowserLoginRequestForbidden) Error

func (*GetSelfServiceBrowserLoginRequestForbidden) GetPayload

type GetSelfServiceBrowserLoginRequestInternalServerError

type GetSelfServiceBrowserLoginRequestInternalServerError struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserLoginRequestInternalServerError handles this case with default header values.

genericError

func NewGetSelfServiceBrowserLoginRequestInternalServerError

func NewGetSelfServiceBrowserLoginRequestInternalServerError() *GetSelfServiceBrowserLoginRequestInternalServerError

NewGetSelfServiceBrowserLoginRequestInternalServerError creates a GetSelfServiceBrowserLoginRequestInternalServerError with default headers values

func (*GetSelfServiceBrowserLoginRequestInternalServerError) Error

func (*GetSelfServiceBrowserLoginRequestInternalServerError) GetPayload

type GetSelfServiceBrowserLoginRequestNotFound

type GetSelfServiceBrowserLoginRequestNotFound struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserLoginRequestNotFound handles this case with default header values.

genericError

func NewGetSelfServiceBrowserLoginRequestNotFound

func NewGetSelfServiceBrowserLoginRequestNotFound() *GetSelfServiceBrowserLoginRequestNotFound

NewGetSelfServiceBrowserLoginRequestNotFound creates a GetSelfServiceBrowserLoginRequestNotFound with default headers values

func (*GetSelfServiceBrowserLoginRequestNotFound) Error

func (*GetSelfServiceBrowserLoginRequestNotFound) GetPayload

type GetSelfServiceBrowserLoginRequestOK

type GetSelfServiceBrowserLoginRequestOK struct {
	Payload *models.LoginRequest
}

GetSelfServiceBrowserLoginRequestOK handles this case with default header values.

loginRequest

func NewGetSelfServiceBrowserLoginRequestOK

func NewGetSelfServiceBrowserLoginRequestOK() *GetSelfServiceBrowserLoginRequestOK

NewGetSelfServiceBrowserLoginRequestOK creates a GetSelfServiceBrowserLoginRequestOK with default headers values

func (*GetSelfServiceBrowserLoginRequestOK) Error

func (*GetSelfServiceBrowserLoginRequestOK) GetPayload

type GetSelfServiceBrowserLoginRequestParams

type GetSelfServiceBrowserLoginRequestParams struct {

	/*Request
	  Request is the Login Request ID

	The value for this parameter comes from `request` URL Query parameter sent to your
	application (e.g. `/login?request=abcde`).

	*/
	Request string

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

GetSelfServiceBrowserLoginRequestParams contains all the parameters to send to the API endpoint for the get self service browser login request operation typically these are written to a http.Request

func NewGetSelfServiceBrowserLoginRequestParams

func NewGetSelfServiceBrowserLoginRequestParams() *GetSelfServiceBrowserLoginRequestParams

NewGetSelfServiceBrowserLoginRequestParams creates a new GetSelfServiceBrowserLoginRequestParams object with the default values initialized.

func NewGetSelfServiceBrowserLoginRequestParamsWithContext

func NewGetSelfServiceBrowserLoginRequestParamsWithContext(ctx context.Context) *GetSelfServiceBrowserLoginRequestParams

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

func NewGetSelfServiceBrowserLoginRequestParamsWithHTTPClient

func NewGetSelfServiceBrowserLoginRequestParamsWithHTTPClient(client *http.Client) *GetSelfServiceBrowserLoginRequestParams

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

func NewGetSelfServiceBrowserLoginRequestParamsWithTimeout

func NewGetSelfServiceBrowserLoginRequestParamsWithTimeout(timeout time.Duration) *GetSelfServiceBrowserLoginRequestParams

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

func (*GetSelfServiceBrowserLoginRequestParams) SetContext

SetContext adds the context to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) SetRequest

func (o *GetSelfServiceBrowserLoginRequestParams) SetRequest(request string)

SetRequest adds the request to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) SetTimeout

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

SetTimeout adds the timeout to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) WithContext

WithContext adds the context to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) WithRequest

WithRequest adds the request to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) WithTimeout

WithTimeout adds the timeout to the get self service browser login request params

func (*GetSelfServiceBrowserLoginRequestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSelfServiceBrowserLoginRequestReader

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

GetSelfServiceBrowserLoginRequestReader is a Reader for the GetSelfServiceBrowserLoginRequest structure.

func (*GetSelfServiceBrowserLoginRequestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSelfServiceBrowserProfileManagementRequestForbidden

type GetSelfServiceBrowserProfileManagementRequestForbidden struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserProfileManagementRequestForbidden handles this case with default header values.

genericError

func NewGetSelfServiceBrowserProfileManagementRequestForbidden

func NewGetSelfServiceBrowserProfileManagementRequestForbidden() *GetSelfServiceBrowserProfileManagementRequestForbidden

NewGetSelfServiceBrowserProfileManagementRequestForbidden creates a GetSelfServiceBrowserProfileManagementRequestForbidden with default headers values

func (*GetSelfServiceBrowserProfileManagementRequestForbidden) Error

func (*GetSelfServiceBrowserProfileManagementRequestForbidden) GetPayload

type GetSelfServiceBrowserProfileManagementRequestInternalServerError

type GetSelfServiceBrowserProfileManagementRequestInternalServerError struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserProfileManagementRequestInternalServerError handles this case with default header values.

genericError

func NewGetSelfServiceBrowserProfileManagementRequestInternalServerError

func NewGetSelfServiceBrowserProfileManagementRequestInternalServerError() *GetSelfServiceBrowserProfileManagementRequestInternalServerError

NewGetSelfServiceBrowserProfileManagementRequestInternalServerError creates a GetSelfServiceBrowserProfileManagementRequestInternalServerError with default headers values

func (*GetSelfServiceBrowserProfileManagementRequestInternalServerError) Error

func (*GetSelfServiceBrowserProfileManagementRequestInternalServerError) GetPayload

type GetSelfServiceBrowserProfileManagementRequestNotFound

type GetSelfServiceBrowserProfileManagementRequestNotFound struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserProfileManagementRequestNotFound handles this case with default header values.

genericError

func NewGetSelfServiceBrowserProfileManagementRequestNotFound

func NewGetSelfServiceBrowserProfileManagementRequestNotFound() *GetSelfServiceBrowserProfileManagementRequestNotFound

NewGetSelfServiceBrowserProfileManagementRequestNotFound creates a GetSelfServiceBrowserProfileManagementRequestNotFound with default headers values

func (*GetSelfServiceBrowserProfileManagementRequestNotFound) Error

func (*GetSelfServiceBrowserProfileManagementRequestNotFound) GetPayload

type GetSelfServiceBrowserProfileManagementRequestOK

type GetSelfServiceBrowserProfileManagementRequestOK struct {
	Payload *models.ProfileManagementRequest
}

GetSelfServiceBrowserProfileManagementRequestOK handles this case with default header values.

profileManagementRequest

func NewGetSelfServiceBrowserProfileManagementRequestOK

func NewGetSelfServiceBrowserProfileManagementRequestOK() *GetSelfServiceBrowserProfileManagementRequestOK

NewGetSelfServiceBrowserProfileManagementRequestOK creates a GetSelfServiceBrowserProfileManagementRequestOK with default headers values

func (*GetSelfServiceBrowserProfileManagementRequestOK) Error

func (*GetSelfServiceBrowserProfileManagementRequestOK) GetPayload

type GetSelfServiceBrowserProfileManagementRequestParams

type GetSelfServiceBrowserProfileManagementRequestParams struct {

	/*Request
	  Request is the Login Request ID

	The value for this parameter comes from `request` URL Query parameter sent to your
	application (e.g. `/login?request=abcde`).

	*/
	Request string

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

GetSelfServiceBrowserProfileManagementRequestParams contains all the parameters to send to the API endpoint for the get self service browser profile management request operation typically these are written to a http.Request

func NewGetSelfServiceBrowserProfileManagementRequestParams

func NewGetSelfServiceBrowserProfileManagementRequestParams() *GetSelfServiceBrowserProfileManagementRequestParams

NewGetSelfServiceBrowserProfileManagementRequestParams creates a new GetSelfServiceBrowserProfileManagementRequestParams object with the default values initialized.

func NewGetSelfServiceBrowserProfileManagementRequestParamsWithContext

func NewGetSelfServiceBrowserProfileManagementRequestParamsWithContext(ctx context.Context) *GetSelfServiceBrowserProfileManagementRequestParams

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

func NewGetSelfServiceBrowserProfileManagementRequestParamsWithHTTPClient

func NewGetSelfServiceBrowserProfileManagementRequestParamsWithHTTPClient(client *http.Client) *GetSelfServiceBrowserProfileManagementRequestParams

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

func NewGetSelfServiceBrowserProfileManagementRequestParamsWithTimeout

func NewGetSelfServiceBrowserProfileManagementRequestParamsWithTimeout(timeout time.Duration) *GetSelfServiceBrowserProfileManagementRequestParams

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

func (*GetSelfServiceBrowserProfileManagementRequestParams) SetContext

SetContext adds the context to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) SetRequest

SetRequest adds the request to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) SetTimeout

SetTimeout adds the timeout to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) WithContext

WithContext adds the context to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) WithRequest

WithRequest adds the request to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) WithTimeout

WithTimeout adds the timeout to the get self service browser profile management request params

func (*GetSelfServiceBrowserProfileManagementRequestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSelfServiceBrowserProfileManagementRequestReader

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

GetSelfServiceBrowserProfileManagementRequestReader is a Reader for the GetSelfServiceBrowserProfileManagementRequest structure.

func (*GetSelfServiceBrowserProfileManagementRequestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSelfServiceBrowserRegistrationRequestForbidden

type GetSelfServiceBrowserRegistrationRequestForbidden struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserRegistrationRequestForbidden handles this case with default header values.

genericError

func NewGetSelfServiceBrowserRegistrationRequestForbidden

func NewGetSelfServiceBrowserRegistrationRequestForbidden() *GetSelfServiceBrowserRegistrationRequestForbidden

NewGetSelfServiceBrowserRegistrationRequestForbidden creates a GetSelfServiceBrowserRegistrationRequestForbidden with default headers values

func (*GetSelfServiceBrowserRegistrationRequestForbidden) Error

func (*GetSelfServiceBrowserRegistrationRequestForbidden) GetPayload

type GetSelfServiceBrowserRegistrationRequestInternalServerError

type GetSelfServiceBrowserRegistrationRequestInternalServerError struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserRegistrationRequestInternalServerError handles this case with default header values.

genericError

func NewGetSelfServiceBrowserRegistrationRequestInternalServerError

func NewGetSelfServiceBrowserRegistrationRequestInternalServerError() *GetSelfServiceBrowserRegistrationRequestInternalServerError

NewGetSelfServiceBrowserRegistrationRequestInternalServerError creates a GetSelfServiceBrowserRegistrationRequestInternalServerError with default headers values

func (*GetSelfServiceBrowserRegistrationRequestInternalServerError) Error

func (*GetSelfServiceBrowserRegistrationRequestInternalServerError) GetPayload

type GetSelfServiceBrowserRegistrationRequestNotFound

type GetSelfServiceBrowserRegistrationRequestNotFound struct {
	Payload *models.GenericError
}

GetSelfServiceBrowserRegistrationRequestNotFound handles this case with default header values.

genericError

func NewGetSelfServiceBrowserRegistrationRequestNotFound

func NewGetSelfServiceBrowserRegistrationRequestNotFound() *GetSelfServiceBrowserRegistrationRequestNotFound

NewGetSelfServiceBrowserRegistrationRequestNotFound creates a GetSelfServiceBrowserRegistrationRequestNotFound with default headers values

func (*GetSelfServiceBrowserRegistrationRequestNotFound) Error

func (*GetSelfServiceBrowserRegistrationRequestNotFound) GetPayload

type GetSelfServiceBrowserRegistrationRequestOK

type GetSelfServiceBrowserRegistrationRequestOK struct {
	Payload *models.RegistrationRequest
}

GetSelfServiceBrowserRegistrationRequestOK handles this case with default header values.

registrationRequest

func NewGetSelfServiceBrowserRegistrationRequestOK

func NewGetSelfServiceBrowserRegistrationRequestOK() *GetSelfServiceBrowserRegistrationRequestOK

NewGetSelfServiceBrowserRegistrationRequestOK creates a GetSelfServiceBrowserRegistrationRequestOK with default headers values

func (*GetSelfServiceBrowserRegistrationRequestOK) Error

func (*GetSelfServiceBrowserRegistrationRequestOK) GetPayload

type GetSelfServiceBrowserRegistrationRequestParams

type GetSelfServiceBrowserRegistrationRequestParams struct {

	/*Request
	  Request is the Registration Request ID

	The value for this parameter comes from `request` URL Query parameter sent to your
	application (e.g. `/registration?request=abcde`).

	*/
	Request string

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

GetSelfServiceBrowserRegistrationRequestParams contains all the parameters to send to the API endpoint for the get self service browser registration request operation typically these are written to a http.Request

func NewGetSelfServiceBrowserRegistrationRequestParams

func NewGetSelfServiceBrowserRegistrationRequestParams() *GetSelfServiceBrowserRegistrationRequestParams

NewGetSelfServiceBrowserRegistrationRequestParams creates a new GetSelfServiceBrowserRegistrationRequestParams object with the default values initialized.

func NewGetSelfServiceBrowserRegistrationRequestParamsWithContext

func NewGetSelfServiceBrowserRegistrationRequestParamsWithContext(ctx context.Context) *GetSelfServiceBrowserRegistrationRequestParams

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

func NewGetSelfServiceBrowserRegistrationRequestParamsWithHTTPClient

func NewGetSelfServiceBrowserRegistrationRequestParamsWithHTTPClient(client *http.Client) *GetSelfServiceBrowserRegistrationRequestParams

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

func NewGetSelfServiceBrowserRegistrationRequestParamsWithTimeout

func NewGetSelfServiceBrowserRegistrationRequestParamsWithTimeout(timeout time.Duration) *GetSelfServiceBrowserRegistrationRequestParams

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

func (*GetSelfServiceBrowserRegistrationRequestParams) SetContext

SetContext adds the context to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) SetRequest

SetRequest adds the request to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) SetTimeout

SetTimeout adds the timeout to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) WithContext

WithContext adds the context to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) WithRequest

WithRequest adds the request to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) WithTimeout

WithTimeout adds the timeout to the get self service browser registration request params

func (*GetSelfServiceBrowserRegistrationRequestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSelfServiceBrowserRegistrationRequestReader

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

GetSelfServiceBrowserRegistrationRequestReader is a Reader for the GetSelfServiceBrowserRegistrationRequest structure.

func (*GetSelfServiceBrowserRegistrationRequestReader) ReadResponse

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