authenticators

package
v0.0.0-...-99157af Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 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 authenticators API

func (*Client) CreateAuthenticators

func (a *Client) CreateAuthenticators(params *CreateAuthenticatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAuthenticatorsOK, error)

CreateAuthenticators creates authenticators

Create Authenticators to authenticate requests to Turnkey

func (*Client) DeleteAuthenticators

func (a *Client) DeleteAuthenticators(params *DeleteAuthenticatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAuthenticatorsOK, error)

DeleteAuthenticators deletes authenticators

Remove authenticators from a User

func (*Client) GetAuthenticator

func (a *Client) GetAuthenticator(params *GetAuthenticatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthenticatorOK, error)

GetAuthenticator gets authenticator

Get details about an authenticator

func (*Client) GetAuthenticators

func (a *Client) GetAuthenticators(params *GetAuthenticatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthenticatorsOK, error)

GetAuthenticators gets authenticators

Get details about authenticators for a 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 {
	CreateAuthenticators(params *CreateAuthenticatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAuthenticatorsOK, error)

	DeleteAuthenticators(params *DeleteAuthenticatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAuthenticatorsOK, error)

	GetAuthenticator(params *GetAuthenticatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthenticatorOK, error)

	GetAuthenticators(params *GetAuthenticatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthenticatorsOK, 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 authenticators API client.

type CreateAuthenticatorsOK

type CreateAuthenticatorsOK struct {
	Payload *models.ActivityResponse
}

CreateAuthenticatorsOK describes a response with status code 200, with default header values.

A successful response.

func NewCreateAuthenticatorsOK

func NewCreateAuthenticatorsOK() *CreateAuthenticatorsOK

NewCreateAuthenticatorsOK creates a CreateAuthenticatorsOK with default headers values

func (*CreateAuthenticatorsOK) Code

func (o *CreateAuthenticatorsOK) Code() int

Code gets the status code for the create authenticators o k response

func (*CreateAuthenticatorsOK) Error

func (o *CreateAuthenticatorsOK) Error() string

func (*CreateAuthenticatorsOK) GetPayload

func (*CreateAuthenticatorsOK) IsClientError

func (o *CreateAuthenticatorsOK) IsClientError() bool

IsClientError returns true when this create authenticators o k response has a 4xx status code

func (*CreateAuthenticatorsOK) IsCode

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

IsCode returns true when this create authenticators o k response a status code equal to that given

func (*CreateAuthenticatorsOK) IsRedirect

func (o *CreateAuthenticatorsOK) IsRedirect() bool

IsRedirect returns true when this create authenticators o k response has a 3xx status code

func (*CreateAuthenticatorsOK) IsServerError

func (o *CreateAuthenticatorsOK) IsServerError() bool

IsServerError returns true when this create authenticators o k response has a 5xx status code

func (*CreateAuthenticatorsOK) IsSuccess

func (o *CreateAuthenticatorsOK) IsSuccess() bool

IsSuccess returns true when this create authenticators o k response has a 2xx status code

func (*CreateAuthenticatorsOK) String

func (o *CreateAuthenticatorsOK) String() string

type CreateAuthenticatorsParams

type CreateAuthenticatorsParams struct {

	// Body.
	Body *models.CreateAuthenticatorsRequest

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

CreateAuthenticatorsParams contains all the parameters to send to the API endpoint

for the create authenticators operation.

Typically these are written to a http.Request.

func NewCreateAuthenticatorsParams

func NewCreateAuthenticatorsParams() *CreateAuthenticatorsParams

NewCreateAuthenticatorsParams creates a new CreateAuthenticatorsParams 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 NewCreateAuthenticatorsParamsWithContext

func NewCreateAuthenticatorsParamsWithContext(ctx context.Context) *CreateAuthenticatorsParams

NewCreateAuthenticatorsParamsWithContext creates a new CreateAuthenticatorsParams object with the ability to set a context for a request.

func NewCreateAuthenticatorsParamsWithHTTPClient

func NewCreateAuthenticatorsParamsWithHTTPClient(client *http.Client) *CreateAuthenticatorsParams

NewCreateAuthenticatorsParamsWithHTTPClient creates a new CreateAuthenticatorsParams object with the ability to set a custom HTTPClient for a request.

func NewCreateAuthenticatorsParamsWithTimeout

func NewCreateAuthenticatorsParamsWithTimeout(timeout time.Duration) *CreateAuthenticatorsParams

NewCreateAuthenticatorsParamsWithTimeout creates a new CreateAuthenticatorsParams object with the ability to set a timeout on a request.

func (*CreateAuthenticatorsParams) SetBody

SetBody adds the body to the create authenticators params

func (*CreateAuthenticatorsParams) SetContext

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

SetContext adds the context to the create authenticators params

func (*CreateAuthenticatorsParams) SetDefaults

func (o *CreateAuthenticatorsParams) SetDefaults()

SetDefaults hydrates default values in the create authenticators params (not the query body).

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

func (*CreateAuthenticatorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create authenticators params

func (*CreateAuthenticatorsParams) SetTimeout

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

SetTimeout adds the timeout to the create authenticators params

func (*CreateAuthenticatorsParams) WithBody

WithBody adds the body to the create authenticators params

func (*CreateAuthenticatorsParams) WithContext

WithContext adds the context to the create authenticators params

func (*CreateAuthenticatorsParams) WithDefaults

WithDefaults hydrates default values in the create authenticators params (not the query body).

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

func (*CreateAuthenticatorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create authenticators params

func (*CreateAuthenticatorsParams) WithTimeout

WithTimeout adds the timeout to the create authenticators params

func (*CreateAuthenticatorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateAuthenticatorsReader

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

CreateAuthenticatorsReader is a Reader for the CreateAuthenticators structure.

func (*CreateAuthenticatorsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAuthenticatorsOK

type DeleteAuthenticatorsOK struct {
	Payload *models.ActivityResponse
}

DeleteAuthenticatorsOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteAuthenticatorsOK

func NewDeleteAuthenticatorsOK() *DeleteAuthenticatorsOK

NewDeleteAuthenticatorsOK creates a DeleteAuthenticatorsOK with default headers values

func (*DeleteAuthenticatorsOK) Code

func (o *DeleteAuthenticatorsOK) Code() int

Code gets the status code for the delete authenticators o k response

func (*DeleteAuthenticatorsOK) Error

func (o *DeleteAuthenticatorsOK) Error() string

func (*DeleteAuthenticatorsOK) GetPayload

func (*DeleteAuthenticatorsOK) IsClientError

func (o *DeleteAuthenticatorsOK) IsClientError() bool

IsClientError returns true when this delete authenticators o k response has a 4xx status code

func (*DeleteAuthenticatorsOK) IsCode

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

IsCode returns true when this delete authenticators o k response a status code equal to that given

func (*DeleteAuthenticatorsOK) IsRedirect

func (o *DeleteAuthenticatorsOK) IsRedirect() bool

IsRedirect returns true when this delete authenticators o k response has a 3xx status code

func (*DeleteAuthenticatorsOK) IsServerError

func (o *DeleteAuthenticatorsOK) IsServerError() bool

IsServerError returns true when this delete authenticators o k response has a 5xx status code

func (*DeleteAuthenticatorsOK) IsSuccess

func (o *DeleteAuthenticatorsOK) IsSuccess() bool

IsSuccess returns true when this delete authenticators o k response has a 2xx status code

func (*DeleteAuthenticatorsOK) String

func (o *DeleteAuthenticatorsOK) String() string

type DeleteAuthenticatorsParams

type DeleteAuthenticatorsParams struct {

	// Body.
	Body *models.DeleteAuthenticatorsRequest

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

DeleteAuthenticatorsParams contains all the parameters to send to the API endpoint

for the delete authenticators operation.

Typically these are written to a http.Request.

func NewDeleteAuthenticatorsParams

func NewDeleteAuthenticatorsParams() *DeleteAuthenticatorsParams

NewDeleteAuthenticatorsParams creates a new DeleteAuthenticatorsParams 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 NewDeleteAuthenticatorsParamsWithContext

func NewDeleteAuthenticatorsParamsWithContext(ctx context.Context) *DeleteAuthenticatorsParams

NewDeleteAuthenticatorsParamsWithContext creates a new DeleteAuthenticatorsParams object with the ability to set a context for a request.

func NewDeleteAuthenticatorsParamsWithHTTPClient

func NewDeleteAuthenticatorsParamsWithHTTPClient(client *http.Client) *DeleteAuthenticatorsParams

NewDeleteAuthenticatorsParamsWithHTTPClient creates a new DeleteAuthenticatorsParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAuthenticatorsParamsWithTimeout

func NewDeleteAuthenticatorsParamsWithTimeout(timeout time.Duration) *DeleteAuthenticatorsParams

NewDeleteAuthenticatorsParamsWithTimeout creates a new DeleteAuthenticatorsParams object with the ability to set a timeout on a request.

func (*DeleteAuthenticatorsParams) SetBody

SetBody adds the body to the delete authenticators params

func (*DeleteAuthenticatorsParams) SetContext

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

SetContext adds the context to the delete authenticators params

func (*DeleteAuthenticatorsParams) SetDefaults

func (o *DeleteAuthenticatorsParams) SetDefaults()

SetDefaults hydrates default values in the delete authenticators params (not the query body).

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

func (*DeleteAuthenticatorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete authenticators params

func (*DeleteAuthenticatorsParams) SetTimeout

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

SetTimeout adds the timeout to the delete authenticators params

func (*DeleteAuthenticatorsParams) WithBody

WithBody adds the body to the delete authenticators params

func (*DeleteAuthenticatorsParams) WithContext

WithContext adds the context to the delete authenticators params

func (*DeleteAuthenticatorsParams) WithDefaults

WithDefaults hydrates default values in the delete authenticators params (not the query body).

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

func (*DeleteAuthenticatorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete authenticators params

func (*DeleteAuthenticatorsParams) WithTimeout

WithTimeout adds the timeout to the delete authenticators params

func (*DeleteAuthenticatorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAuthenticatorsReader

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

DeleteAuthenticatorsReader is a Reader for the DeleteAuthenticators structure.

func (*DeleteAuthenticatorsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAuthenticatorOK

type GetAuthenticatorOK struct {
	Payload *models.GetAuthenticatorResponse
}

GetAuthenticatorOK describes a response with status code 200, with default header values.

A successful response.

func NewGetAuthenticatorOK

func NewGetAuthenticatorOK() *GetAuthenticatorOK

NewGetAuthenticatorOK creates a GetAuthenticatorOK with default headers values

func (*GetAuthenticatorOK) Code

func (o *GetAuthenticatorOK) Code() int

Code gets the status code for the get authenticator o k response

func (*GetAuthenticatorOK) Error

func (o *GetAuthenticatorOK) Error() string

func (*GetAuthenticatorOK) GetPayload

func (*GetAuthenticatorOK) IsClientError

func (o *GetAuthenticatorOK) IsClientError() bool

IsClientError returns true when this get authenticator o k response has a 4xx status code

func (*GetAuthenticatorOK) IsCode

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

IsCode returns true when this get authenticator o k response a status code equal to that given

func (*GetAuthenticatorOK) IsRedirect

func (o *GetAuthenticatorOK) IsRedirect() bool

IsRedirect returns true when this get authenticator o k response has a 3xx status code

func (*GetAuthenticatorOK) IsServerError

func (o *GetAuthenticatorOK) IsServerError() bool

IsServerError returns true when this get authenticator o k response has a 5xx status code

func (*GetAuthenticatorOK) IsSuccess

func (o *GetAuthenticatorOK) IsSuccess() bool

IsSuccess returns true when this get authenticator o k response has a 2xx status code

func (*GetAuthenticatorOK) String

func (o *GetAuthenticatorOK) String() string

type GetAuthenticatorParams

type GetAuthenticatorParams struct {

	// Body.
	Body *models.GetAuthenticatorRequest

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

GetAuthenticatorParams contains all the parameters to send to the API endpoint

for the get authenticator operation.

Typically these are written to a http.Request.

func NewGetAuthenticatorParams

func NewGetAuthenticatorParams() *GetAuthenticatorParams

NewGetAuthenticatorParams creates a new GetAuthenticatorParams 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 NewGetAuthenticatorParamsWithContext

func NewGetAuthenticatorParamsWithContext(ctx context.Context) *GetAuthenticatorParams

NewGetAuthenticatorParamsWithContext creates a new GetAuthenticatorParams object with the ability to set a context for a request.

func NewGetAuthenticatorParamsWithHTTPClient

func NewGetAuthenticatorParamsWithHTTPClient(client *http.Client) *GetAuthenticatorParams

NewGetAuthenticatorParamsWithHTTPClient creates a new GetAuthenticatorParams object with the ability to set a custom HTTPClient for a request.

func NewGetAuthenticatorParamsWithTimeout

func NewGetAuthenticatorParamsWithTimeout(timeout time.Duration) *GetAuthenticatorParams

NewGetAuthenticatorParamsWithTimeout creates a new GetAuthenticatorParams object with the ability to set a timeout on a request.

func (*GetAuthenticatorParams) SetBody

SetBody adds the body to the get authenticator params

func (*GetAuthenticatorParams) SetContext

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

SetContext adds the context to the get authenticator params

func (*GetAuthenticatorParams) SetDefaults

func (o *GetAuthenticatorParams) SetDefaults()

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

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

func (*GetAuthenticatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get authenticator params

func (*GetAuthenticatorParams) SetTimeout

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

SetTimeout adds the timeout to the get authenticator params

func (*GetAuthenticatorParams) WithBody

WithBody adds the body to the get authenticator params

func (*GetAuthenticatorParams) WithContext

WithContext adds the context to the get authenticator params

func (*GetAuthenticatorParams) WithDefaults

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

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

func (*GetAuthenticatorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get authenticator params

func (*GetAuthenticatorParams) WithTimeout

WithTimeout adds the timeout to the get authenticator params

func (*GetAuthenticatorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAuthenticatorReader

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

GetAuthenticatorReader is a Reader for the GetAuthenticator structure.

func (*GetAuthenticatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAuthenticatorsOK

type GetAuthenticatorsOK struct {
	Payload *models.GetAuthenticatorsResponse
}

GetAuthenticatorsOK describes a response with status code 200, with default header values.

A successful response.

func NewGetAuthenticatorsOK

func NewGetAuthenticatorsOK() *GetAuthenticatorsOK

NewGetAuthenticatorsOK creates a GetAuthenticatorsOK with default headers values

func (*GetAuthenticatorsOK) Code

func (o *GetAuthenticatorsOK) Code() int

Code gets the status code for the get authenticators o k response

func (*GetAuthenticatorsOK) Error

func (o *GetAuthenticatorsOK) Error() string

func (*GetAuthenticatorsOK) GetPayload

func (*GetAuthenticatorsOK) IsClientError

func (o *GetAuthenticatorsOK) IsClientError() bool

IsClientError returns true when this get authenticators o k response has a 4xx status code

func (*GetAuthenticatorsOK) IsCode

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

IsCode returns true when this get authenticators o k response a status code equal to that given

func (*GetAuthenticatorsOK) IsRedirect

func (o *GetAuthenticatorsOK) IsRedirect() bool

IsRedirect returns true when this get authenticators o k response has a 3xx status code

func (*GetAuthenticatorsOK) IsServerError

func (o *GetAuthenticatorsOK) IsServerError() bool

IsServerError returns true when this get authenticators o k response has a 5xx status code

func (*GetAuthenticatorsOK) IsSuccess

func (o *GetAuthenticatorsOK) IsSuccess() bool

IsSuccess returns true when this get authenticators o k response has a 2xx status code

func (*GetAuthenticatorsOK) String

func (o *GetAuthenticatorsOK) String() string

type GetAuthenticatorsParams

type GetAuthenticatorsParams struct {

	// Body.
	Body *models.GetAuthenticatorsRequest

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

GetAuthenticatorsParams contains all the parameters to send to the API endpoint

for the get authenticators operation.

Typically these are written to a http.Request.

func NewGetAuthenticatorsParams

func NewGetAuthenticatorsParams() *GetAuthenticatorsParams

NewGetAuthenticatorsParams creates a new GetAuthenticatorsParams 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 NewGetAuthenticatorsParamsWithContext

func NewGetAuthenticatorsParamsWithContext(ctx context.Context) *GetAuthenticatorsParams

NewGetAuthenticatorsParamsWithContext creates a new GetAuthenticatorsParams object with the ability to set a context for a request.

func NewGetAuthenticatorsParamsWithHTTPClient

func NewGetAuthenticatorsParamsWithHTTPClient(client *http.Client) *GetAuthenticatorsParams

NewGetAuthenticatorsParamsWithHTTPClient creates a new GetAuthenticatorsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAuthenticatorsParamsWithTimeout

func NewGetAuthenticatorsParamsWithTimeout(timeout time.Duration) *GetAuthenticatorsParams

NewGetAuthenticatorsParamsWithTimeout creates a new GetAuthenticatorsParams object with the ability to set a timeout on a request.

func (*GetAuthenticatorsParams) SetBody

SetBody adds the body to the get authenticators params

func (*GetAuthenticatorsParams) SetContext

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

SetContext adds the context to the get authenticators params

func (*GetAuthenticatorsParams) SetDefaults

func (o *GetAuthenticatorsParams) SetDefaults()

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

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

func (*GetAuthenticatorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get authenticators params

func (*GetAuthenticatorsParams) SetTimeout

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

SetTimeout adds the timeout to the get authenticators params

func (*GetAuthenticatorsParams) WithBody

WithBody adds the body to the get authenticators params

func (*GetAuthenticatorsParams) WithContext

WithContext adds the context to the get authenticators params

func (*GetAuthenticatorsParams) WithDefaults

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

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

func (*GetAuthenticatorsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get authenticators params

func (*GetAuthenticatorsParams) WithTimeout

WithTimeout adds the timeout to the get authenticators params

func (*GetAuthenticatorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAuthenticatorsReader

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

GetAuthenticatorsReader is a Reader for the GetAuthenticators structure.

func (*GetAuthenticatorsReader) ReadResponse

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