Documentation
¶
Overview ¶
Package digitalcredentials provides the Chrome DevTools Protocol commands, types, and events for the DigitalCredentials domain.
This domain allows interacting with the Digital Credentials API for automation.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type SetVirtualWalletBehaviorParams
- func (p *SetVirtualWalletBehaviorParams) Do(ctx context.Context) (err error)
- func (p SetVirtualWalletBehaviorParams) WithFrameID(frameID cdp.FrameID) *SetVirtualWalletBehaviorParams
- func (p SetVirtualWalletBehaviorParams) WithProtocol(protocol string) *SetVirtualWalletBehaviorParams
- func (p SetVirtualWalletBehaviorParams) WithResponse(response jsontext.Value) *SetVirtualWalletBehaviorParams
- type VirtualWalletAction
Constants ¶
const (
CommandSetVirtualWalletBehavior = "DigitalCredentials.setVirtualWalletBehavior"
)
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetVirtualWalletBehaviorParams ¶
type SetVirtualWalletBehaviorParams struct {
Action VirtualWalletAction `json:"action"` // The action of the virtual wallet.
Protocol string `json:"protocol,omitempty,omitzero"` // The protocol identifier (e.g. "openid4vp"). Required when |action| is "respond", forbidden otherwise.
Response jsontext.Value `json:"response,omitempty,omitzero"`
FrameID cdp.FrameID `json:"frameId,omitempty,omitzero"` // The frame to scope the virtual wallet behavior to.
}
SetVirtualWalletBehaviorParams sets the behavior of the virtual wallet for digital credential requests issued from this frame.
func SetVirtualWalletBehavior ¶
func SetVirtualWalletBehavior(action VirtualWalletAction) *SetVirtualWalletBehaviorParams
SetVirtualWalletBehavior sets the behavior of the virtual wallet for digital credential requests issued from this frame.
parameters:
action - The action of the virtual wallet.
func (*SetVirtualWalletBehaviorParams) Do ¶
func (p *SetVirtualWalletBehaviorParams) Do(ctx context.Context) (err error)
Do executes DigitalCredentials.setVirtualWalletBehavior against the provided context.
func (SetVirtualWalletBehaviorParams) WithFrameID ¶
func (p SetVirtualWalletBehaviorParams) WithFrameID(frameID cdp.FrameID) *SetVirtualWalletBehaviorParams
WithFrameID the frame to scope the virtual wallet behavior to.
func (SetVirtualWalletBehaviorParams) WithProtocol ¶
func (p SetVirtualWalletBehaviorParams) WithProtocol(protocol string) *SetVirtualWalletBehaviorParams
WithProtocol the protocol identifier (e.g. "openid4vp"). Required when |action| is "respond", forbidden otherwise.
func (SetVirtualWalletBehaviorParams) WithResponse ¶
func (p SetVirtualWalletBehaviorParams) WithResponse(response jsontext.Value) *SetVirtualWalletBehaviorParams
WithResponse the response data object returned by the wallet. Required when |action| is "respond", forbidden otherwise.
type VirtualWalletAction ¶
type VirtualWalletAction string
VirtualWalletAction the type of virtual wallet action.
See: https://chromedevtools.github.io/devtools-protocol/tot/DigitalCredentials#type-VirtualWalletAction
const ( VirtualWalletActionRespond VirtualWalletAction = "respond" VirtualWalletActionDecline VirtualWalletAction = "decline" VirtualWalletActionWait VirtualWalletAction = "wait" VirtualWalletActionClear VirtualWalletAction = "clear" )
VirtualWalletAction values.
func (VirtualWalletAction) String ¶
func (t VirtualWalletAction) String() string
String returns the VirtualWalletAction as string value.
func (*VirtualWalletAction) UnmarshalJSON ¶
func (t *VirtualWalletAction) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].