webauthn

package
v0.0.0-...-640e031 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package webauthn provides the Chrome DevTools Protocol commands, types, and events for the WebAuthn domain.

This domain allows configuring virtual authenticators to test the WebAuthn API.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandEnable                     = "WebAuthn.enable"
	CommandDisable                    = "WebAuthn.disable"
	CommandAddVirtualAuthenticator    = "WebAuthn.addVirtualAuthenticator"
	CommandRemoveVirtualAuthenticator = "WebAuthn.removeVirtualAuthenticator"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddVirtualAuthenticatorParams

type AddVirtualAuthenticatorParams struct {
	Options *VirtualAuthenticatorOptions `json:"options"`
}

AddVirtualAuthenticatorParams creates and adds a virtual authenticator.

func AddVirtualAuthenticator

func AddVirtualAuthenticator(options *VirtualAuthenticatorOptions) *AddVirtualAuthenticatorParams

AddVirtualAuthenticator creates and adds a virtual authenticator.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-addVirtualAuthenticator

parameters:

options

func (*AddVirtualAuthenticatorParams) Do

func (p *AddVirtualAuthenticatorParams) Do(ctx context.Context) (authenticatorID AuthenticatorID, err error)

Do executes WebAuthn.addVirtualAuthenticator against the provided context.

returns:

authenticatorID

func (AddVirtualAuthenticatorParams) MarshalEasyJSON

func (v AddVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddVirtualAuthenticatorParams) MarshalJSON

func (v AddVirtualAuthenticatorParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddVirtualAuthenticatorParams) UnmarshalEasyJSON

func (v *AddVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddVirtualAuthenticatorParams) UnmarshalJSON

func (v *AddVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AddVirtualAuthenticatorReturns

type AddVirtualAuthenticatorReturns struct {
	AuthenticatorID AuthenticatorID `json:"authenticatorId,omitempty"`
}

AddVirtualAuthenticatorReturns return values.

func (AddVirtualAuthenticatorReturns) MarshalEasyJSON

func (v AddVirtualAuthenticatorReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddVirtualAuthenticatorReturns) MarshalJSON

func (v AddVirtualAuthenticatorReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddVirtualAuthenticatorReturns) UnmarshalEasyJSON

func (v *AddVirtualAuthenticatorReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddVirtualAuthenticatorReturns) UnmarshalJSON

func (v *AddVirtualAuthenticatorReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuthenticatorID

type AuthenticatorID string

AuthenticatorID [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-AuthenticatorId

func (AuthenticatorID) String

func (t AuthenticatorID) String() string

String returns the AuthenticatorID as string value.

type AuthenticatorProtocol

type AuthenticatorProtocol string

AuthenticatorProtocol [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-AuthenticatorProtocol

const (
	AuthenticatorProtocolU2f   AuthenticatorProtocol = "u2f"
	AuthenticatorProtocolCtap2 AuthenticatorProtocol = "ctap2"
)

AuthenticatorProtocol values.

func (AuthenticatorProtocol) MarshalEasyJSON

func (t AuthenticatorProtocol) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (AuthenticatorProtocol) MarshalJSON

func (t AuthenticatorProtocol) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (AuthenticatorProtocol) String

func (t AuthenticatorProtocol) String() string

String returns the AuthenticatorProtocol as string value.

func (*AuthenticatorProtocol) UnmarshalEasyJSON

func (t *AuthenticatorProtocol) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*AuthenticatorProtocol) UnmarshalJSON

func (t *AuthenticatorProtocol) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type AuthenticatorTransport

type AuthenticatorTransport string

AuthenticatorTransport [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-AuthenticatorTransport

const (
	AuthenticatorTransportUsb      AuthenticatorTransport = "usb"
	AuthenticatorTransportNfc      AuthenticatorTransport = "nfc"
	AuthenticatorTransportBle      AuthenticatorTransport = "ble"
	AuthenticatorTransportCable    AuthenticatorTransport = "cable"
	AuthenticatorTransportInternal AuthenticatorTransport = "internal"
)

AuthenticatorTransport values.

func (AuthenticatorTransport) MarshalEasyJSON

func (t AuthenticatorTransport) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (AuthenticatorTransport) MarshalJSON

func (t AuthenticatorTransport) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (AuthenticatorTransport) String

func (t AuthenticatorTransport) String() string

String returns the AuthenticatorTransport as string value.

func (*AuthenticatorTransport) UnmarshalEasyJSON

func (t *AuthenticatorTransport) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*AuthenticatorTransport) UnmarshalJSON

func (t *AuthenticatorTransport) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams

type DisableParams struct{}

DisableParams disable the WebAuthn domain.

func Disable

func Disable() *DisableParams

Disable disable the WebAuthn domain.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-disable

func (*DisableParams) Do

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes WebAuthn.disable against the provided context.

func (DisableParams) MarshalEasyJSON

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

EnableParams enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.

func Enable

func Enable() *EnableParams

Enable enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-enable

func (*EnableParams) Do

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes WebAuthn.enable against the provided context.

func (EnableParams) MarshalEasyJSON

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RemoveVirtualAuthenticatorParams

type RemoveVirtualAuthenticatorParams struct {
	AuthenticatorID AuthenticatorID `json:"authenticatorId"`
}

RemoveVirtualAuthenticatorParams removes the given authenticator.

func RemoveVirtualAuthenticator

func RemoveVirtualAuthenticator(authenticatorID AuthenticatorID) *RemoveVirtualAuthenticatorParams

RemoveVirtualAuthenticator removes the given authenticator.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-removeVirtualAuthenticator

parameters:

authenticatorID

func (*RemoveVirtualAuthenticatorParams) Do

Do executes WebAuthn.removeVirtualAuthenticator against the provided context.

func (RemoveVirtualAuthenticatorParams) MarshalEasyJSON

func (v RemoveVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveVirtualAuthenticatorParams) MarshalJSON

func (v RemoveVirtualAuthenticatorParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveVirtualAuthenticatorParams) UnmarshalEasyJSON

func (v *RemoveVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveVirtualAuthenticatorParams) UnmarshalJSON

func (v *RemoveVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type VirtualAuthenticatorOptions

type VirtualAuthenticatorOptions struct {
	Protocol            AuthenticatorProtocol  `json:"protocol"`
	Transport           AuthenticatorTransport `json:"transport"`
	HasResidentKey      bool                   `json:"hasResidentKey"`
	HasUserVerification bool                   `json:"hasUserVerification"`
}

VirtualAuthenticatorOptions [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-VirtualAuthenticatorOptions

func (VirtualAuthenticatorOptions) MarshalEasyJSON

func (v VirtualAuthenticatorOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (VirtualAuthenticatorOptions) MarshalJSON

func (v VirtualAuthenticatorOptions) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*VirtualAuthenticatorOptions) UnmarshalEasyJSON

func (v *VirtualAuthenticatorOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*VirtualAuthenticatorOptions) UnmarshalJSON

func (v *VirtualAuthenticatorOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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