fido2

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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 AttestationOptionsForbidden

type AttestationOptionsForbidden struct {
	Payload *models.ErrorResponse
}

AttestationOptionsForbidden handles this case with default header values.

Invalid details provided hence access denied.

func NewAttestationOptionsForbidden

func NewAttestationOptionsForbidden() *AttestationOptionsForbidden

NewAttestationOptionsForbidden creates a AttestationOptionsForbidden with default headers values

func (*AttestationOptionsForbidden) Error

func (*AttestationOptionsForbidden) GetPayload

type AttestationOptionsInternalServerError

type AttestationOptionsInternalServerError struct {
	Payload *models.ErrorResponse
}

AttestationOptionsInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewAttestationOptionsInternalServerError

func NewAttestationOptionsInternalServerError() *AttestationOptionsInternalServerError

NewAttestationOptionsInternalServerError creates a AttestationOptionsInternalServerError with default headers values

func (*AttestationOptionsInternalServerError) Error

func (*AttestationOptionsInternalServerError) GetPayload

type AttestationOptionsOK

type AttestationOptionsOK struct {
	Payload *models.CredentialCreationOptions
}

AttestationOptionsOK handles this case with default header values.

OK

func NewAttestationOptionsOK

func NewAttestationOptionsOK() *AttestationOptionsOK

NewAttestationOptionsOK creates a AttestationOptionsOK with default headers values

func (*AttestationOptionsOK) Error

func (o *AttestationOptionsOK) Error() string

func (*AttestationOptionsOK) GetPayload

type AttestationOptionsParams

type AttestationOptionsParams struct {

	/*Body*/
	Body *models.AttestationOptions

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

AttestationOptionsParams contains all the parameters to send to the API endpoint for the attestation options operation typically these are written to a http.Request

func NewAttestationOptionsParams

func NewAttestationOptionsParams() *AttestationOptionsParams

NewAttestationOptionsParams creates a new AttestationOptionsParams object with the default values initialized.

func NewAttestationOptionsParamsWithContext

func NewAttestationOptionsParamsWithContext(ctx context.Context) *AttestationOptionsParams

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

func NewAttestationOptionsParamsWithHTTPClient

func NewAttestationOptionsParamsWithHTTPClient(client *http.Client) *AttestationOptionsParams

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

func NewAttestationOptionsParamsWithTimeout

func NewAttestationOptionsParamsWithTimeout(timeout time.Duration) *AttestationOptionsParams

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

func (*AttestationOptionsParams) SetBody

SetBody adds the body to the attestation options params

func (*AttestationOptionsParams) SetContext

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

SetContext adds the context to the attestation options params

func (*AttestationOptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the attestation options params

func (*AttestationOptionsParams) SetTimeout

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

SetTimeout adds the timeout to the attestation options params

func (*AttestationOptionsParams) WithBody

WithBody adds the body to the attestation options params

func (*AttestationOptionsParams) WithContext

WithContext adds the context to the attestation options params

func (*AttestationOptionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the attestation options params

func (*AttestationOptionsParams) WithTimeout

WithTimeout adds the timeout to the attestation options params

func (*AttestationOptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AttestationOptionsReader

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

AttestationOptionsReader is a Reader for the AttestationOptions structure.

func (*AttestationOptionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AttestationResultInternalServerError

type AttestationResultInternalServerError struct {
	Payload *models.ErrorResponse
}

AttestationResultInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewAttestationResultInternalServerError

func NewAttestationResultInternalServerError() *AttestationResultInternalServerError

NewAttestationResultInternalServerError creates a AttestationResultInternalServerError with default headers values

func (*AttestationResultInternalServerError) Error

func (*AttestationResultInternalServerError) GetPayload

type AttestationResultOK

type AttestationResultOK struct {
	Payload *models.ErrorResponse
}

AttestationResultOK handles this case with default header values.

Invalid details provided hence access denied.

func NewAttestationResultOK

func NewAttestationResultOK() *AttestationResultOK

NewAttestationResultOK creates a AttestationResultOK with default headers values

func (*AttestationResultOK) Error

func (o *AttestationResultOK) Error() string

func (*AttestationResultOK) GetPayload

func (o *AttestationResultOK) GetPayload() *models.ErrorResponse

type AttestationResultParams

type AttestationResultParams struct {

	/*Body*/
	Body *models.AttestationOptions1

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

AttestationResultParams contains all the parameters to send to the API endpoint for the attestation result operation typically these are written to a http.Request

func NewAttestationResultParams

func NewAttestationResultParams() *AttestationResultParams

NewAttestationResultParams creates a new AttestationResultParams object with the default values initialized.

func NewAttestationResultParamsWithContext

func NewAttestationResultParamsWithContext(ctx context.Context) *AttestationResultParams

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

func NewAttestationResultParamsWithHTTPClient

func NewAttestationResultParamsWithHTTPClient(client *http.Client) *AttestationResultParams

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

func NewAttestationResultParamsWithTimeout

func NewAttestationResultParamsWithTimeout(timeout time.Duration) *AttestationResultParams

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

func (*AttestationResultParams) SetBody

SetBody adds the body to the attestation result params

func (*AttestationResultParams) SetContext

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

SetContext adds the context to the attestation result params

func (*AttestationResultParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the attestation result params

func (*AttestationResultParams) SetTimeout

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

SetTimeout adds the timeout to the attestation result params

func (*AttestationResultParams) WithBody

WithBody adds the body to the attestation result params

func (*AttestationResultParams) WithContext

WithContext adds the context to the attestation result params

func (*AttestationResultParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the attestation result params

func (*AttestationResultParams) WithTimeout

WithTimeout adds the timeout to the attestation result params

func (*AttestationResultParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AttestationResultReader

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

AttestationResultReader is a Reader for the AttestationResult structure.

func (*AttestationResultReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for fido2 API

func (*Client) AttestationOptions

func (a *Client) AttestationOptions(params *AttestationOptionsParams) (*AttestationOptionsOK, error)

AttestationOptions attestations options

Created new registration.

func (*Client) AttestationResult

func (a *Client) AttestationResult(params *AttestationResultParams) (*AttestationResultOK, error)

AttestationResult attestations result

FIDO2 attestation result

func (*Client) GetFIDO2Configuration

func (a *Client) GetFIDO2Configuration(params *GetFIDO2ConfigurationParams) (*GetFIDO2ConfigurationOK, error)

GetFIDO2Configuration gets fido2 configuration

FIDO2 configuration

func (*Client) Options

func (a *Client) Options(params *OptionsParams) (*OptionsOK, error)

Options options

FIDO2 Assertion Options

func (*Client) Result

func (a *Client) Result(params *ResultParams) (*ResultOK, error)

Result results

FIDO2 Assertion Result.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AttestationOptions(params *AttestationOptionsParams) (*AttestationOptionsOK, error)

	AttestationResult(params *AttestationResultParams) (*AttestationResultOK, error)

	GetFIDO2Configuration(params *GetFIDO2ConfigurationParams) (*GetFIDO2ConfigurationOK, error)

	Options(params *OptionsParams) (*OptionsOK, error)

	Result(params *ResultParams) (*ResultOK, 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 fido2 API client.

type GetFIDO2ConfigurationForbidden

type GetFIDO2ConfigurationForbidden struct {
	Payload *models.ErrorResponse
}

GetFIDO2ConfigurationForbidden handles this case with default header values.

Invalid details provided hence access denied.

func NewGetFIDO2ConfigurationForbidden

func NewGetFIDO2ConfigurationForbidden() *GetFIDO2ConfigurationForbidden

NewGetFIDO2ConfigurationForbidden creates a GetFIDO2ConfigurationForbidden with default headers values

func (*GetFIDO2ConfigurationForbidden) Error

func (*GetFIDO2ConfigurationForbidden) GetPayload

type GetFIDO2ConfigurationInternalServerError

type GetFIDO2ConfigurationInternalServerError struct {
	Payload *models.ErrorResponse
}

GetFIDO2ConfigurationInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewGetFIDO2ConfigurationInternalServerError

func NewGetFIDO2ConfigurationInternalServerError() *GetFIDO2ConfigurationInternalServerError

NewGetFIDO2ConfigurationInternalServerError creates a GetFIDO2ConfigurationInternalServerError with default headers values

func (*GetFIDO2ConfigurationInternalServerError) Error

func (*GetFIDO2ConfigurationInternalServerError) GetPayload

type GetFIDO2ConfigurationNotAcceptable

type GetFIDO2ConfigurationNotAcceptable struct {
	Payload *models.ErrorResponse
}

GetFIDO2ConfigurationNotAcceptable handles this case with default header values.

Request Not Acceptable.

func NewGetFIDO2ConfigurationNotAcceptable

func NewGetFIDO2ConfigurationNotAcceptable() *GetFIDO2ConfigurationNotAcceptable

NewGetFIDO2ConfigurationNotAcceptable creates a GetFIDO2ConfigurationNotAcceptable with default headers values

func (*GetFIDO2ConfigurationNotAcceptable) Error

func (*GetFIDO2ConfigurationNotAcceptable) GetPayload

type GetFIDO2ConfigurationOK

type GetFIDO2ConfigurationOK struct {
	Payload *models.FIDO2configuration
}

GetFIDO2ConfigurationOK handles this case with default header values.

OK

func NewGetFIDO2ConfigurationOK

func NewGetFIDO2ConfigurationOK() *GetFIDO2ConfigurationOK

NewGetFIDO2ConfigurationOK creates a GetFIDO2ConfigurationOK with default headers values

func (*GetFIDO2ConfigurationOK) Error

func (o *GetFIDO2ConfigurationOK) Error() string

func (*GetFIDO2ConfigurationOK) GetPayload

type GetFIDO2ConfigurationParams

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

GetFIDO2ConfigurationParams contains all the parameters to send to the API endpoint for the get fido2 configuration operation typically these are written to a http.Request

func NewGetFIDO2ConfigurationParams

func NewGetFIDO2ConfigurationParams() *GetFIDO2ConfigurationParams

NewGetFIDO2ConfigurationParams creates a new GetFIDO2ConfigurationParams object with the default values initialized.

func NewGetFIDO2ConfigurationParamsWithContext

func NewGetFIDO2ConfigurationParamsWithContext(ctx context.Context) *GetFIDO2ConfigurationParams

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

func NewGetFIDO2ConfigurationParamsWithHTTPClient

func NewGetFIDO2ConfigurationParamsWithHTTPClient(client *http.Client) *GetFIDO2ConfigurationParams

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

func NewGetFIDO2ConfigurationParamsWithTimeout

func NewGetFIDO2ConfigurationParamsWithTimeout(timeout time.Duration) *GetFIDO2ConfigurationParams

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

func (*GetFIDO2ConfigurationParams) SetContext

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

SetContext adds the context to the get fido2 configuration params

func (*GetFIDO2ConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get fido2 configuration params

func (*GetFIDO2ConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the get fido2 configuration params

func (*GetFIDO2ConfigurationParams) WithContext

WithContext adds the context to the get fido2 configuration params

func (*GetFIDO2ConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get fido2 configuration params

func (*GetFIDO2ConfigurationParams) WithTimeout

WithTimeout adds the timeout to the get fido2 configuration params

func (*GetFIDO2ConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFIDO2ConfigurationReader

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

GetFIDO2ConfigurationReader is a Reader for the GetFIDO2Configuration structure.

func (*GetFIDO2ConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionsForbidden

type OptionsForbidden struct {
	Payload *models.ErrorResponse
}

OptionsForbidden handles this case with default header values.

Invalid details provided hence access denied.

func NewOptionsForbidden

func NewOptionsForbidden() *OptionsForbidden

NewOptionsForbidden creates a OptionsForbidden with default headers values

func (*OptionsForbidden) Error

func (o *OptionsForbidden) Error() string

func (*OptionsForbidden) GetPayload

func (o *OptionsForbidden) GetPayload() *models.ErrorResponse

type OptionsInternalServerError

type OptionsInternalServerError struct {
	Payload *models.ErrorResponse
}

OptionsInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewOptionsInternalServerError

func NewOptionsInternalServerError() *OptionsInternalServerError

NewOptionsInternalServerError creates a OptionsInternalServerError with default headers values

func (*OptionsInternalServerError) Error

func (*OptionsInternalServerError) GetPayload

type OptionsOK

type OptionsOK struct {
	Payload *models.AssertionOptionsResponse
}

OptionsOK handles this case with default header values.

OK

func NewOptionsOK

func NewOptionsOK() *OptionsOK

NewOptionsOK creates a OptionsOK with default headers values

func (*OptionsOK) Error

func (o *OptionsOK) Error() string

func (*OptionsOK) GetPayload

func (o *OptionsOK) GetPayload() *models.AssertionOptionsResponse

type OptionsParams

type OptionsParams struct {

	/*Body*/
	Body *models.AssertionOptions

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

OptionsParams contains all the parameters to send to the API endpoint for the options operation typically these are written to a http.Request

func NewOptionsParams

func NewOptionsParams() *OptionsParams

NewOptionsParams creates a new OptionsParams object with the default values initialized.

func NewOptionsParamsWithContext

func NewOptionsParamsWithContext(ctx context.Context) *OptionsParams

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

func NewOptionsParamsWithHTTPClient

func NewOptionsParamsWithHTTPClient(client *http.Client) *OptionsParams

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

func NewOptionsParamsWithTimeout

func NewOptionsParamsWithTimeout(timeout time.Duration) *OptionsParams

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

func (*OptionsParams) SetBody

func (o *OptionsParams) SetBody(body *models.AssertionOptions)

SetBody adds the body to the options params

func (*OptionsParams) SetContext

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

SetContext adds the context to the options params

func (*OptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the options params

func (*OptionsParams) SetTimeout

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

SetTimeout adds the timeout to the options params

func (*OptionsParams) WithBody

func (o *OptionsParams) WithBody(body *models.AssertionOptions) *OptionsParams

WithBody adds the body to the options params

func (*OptionsParams) WithContext

func (o *OptionsParams) WithContext(ctx context.Context) *OptionsParams

WithContext adds the context to the options params

func (*OptionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the options params

func (*OptionsParams) WithTimeout

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

WithTimeout adds the timeout to the options params

func (*OptionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OptionsReader

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

OptionsReader is a Reader for the Options structure.

func (*OptionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResultForbidden

type ResultForbidden struct {
	Payload *models.ErrorResponse
}

ResultForbidden handles this case with default header values.

Invalid details provided hence access denied.

func NewResultForbidden

func NewResultForbidden() *ResultForbidden

NewResultForbidden creates a ResultForbidden with default headers values

func (*ResultForbidden) Error

func (o *ResultForbidden) Error() string

func (*ResultForbidden) GetPayload

func (o *ResultForbidden) GetPayload() *models.ErrorResponse

type ResultInternalServerError

type ResultInternalServerError struct {
	Payload *models.ErrorResponse
}

ResultInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewResultInternalServerError

func NewResultInternalServerError() *ResultInternalServerError

NewResultInternalServerError creates a ResultInternalServerError with default headers values

func (*ResultInternalServerError) Error

func (o *ResultInternalServerError) Error() string

func (*ResultInternalServerError) GetPayload

type ResultOK

type ResultOK struct {
}

ResultOK handles this case with default header values.

OK

func NewResultOK

func NewResultOK() *ResultOK

NewResultOK creates a ResultOK with default headers values

func (*ResultOK) Error

func (o *ResultOK) Error() string

type ResultParams

type ResultParams struct {

	/*Body*/
	Body *models.AssertionOptions1

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

ResultParams contains all the parameters to send to the API endpoint for the result operation typically these are written to a http.Request

func NewResultParams

func NewResultParams() *ResultParams

NewResultParams creates a new ResultParams object with the default values initialized.

func NewResultParamsWithContext

func NewResultParamsWithContext(ctx context.Context) *ResultParams

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

func NewResultParamsWithHTTPClient

func NewResultParamsWithHTTPClient(client *http.Client) *ResultParams

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

func NewResultParamsWithTimeout

func NewResultParamsWithTimeout(timeout time.Duration) *ResultParams

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

func (*ResultParams) SetBody

func (o *ResultParams) SetBody(body *models.AssertionOptions1)

SetBody adds the body to the result params

func (*ResultParams) SetContext

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

SetContext adds the context to the result params

func (*ResultParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the result params

func (*ResultParams) SetTimeout

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

SetTimeout adds the timeout to the result params

func (*ResultParams) WithBody

func (o *ResultParams) WithBody(body *models.AssertionOptions1) *ResultParams

WithBody adds the body to the result params

func (*ResultParams) WithContext

func (o *ResultParams) WithContext(ctx context.Context) *ResultParams

WithContext adds the context to the result params

func (*ResultParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the result params

func (*ResultParams) WithTimeout

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

WithTimeout adds the timeout to the result params

func (*ResultParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ResultReader

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

ResultReader is a Reader for the Result structure.

func (*ResultReader) ReadResponse

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