Documentation ¶
Index ¶
- func CheckProperties(action service.DIDCommAction) error
- type ControllerSteps
- func (s *ControllerSteps) AcceptCredentialPIID(name, url, piid string) error
- func (s *ControllerSteps) AcceptOfferPIID(url, piid string) error
- func (s *ControllerSteps) EstablishConnection(holder, issuer string) error
- func (s *ControllerSteps) EstablishDIDCommV2Connection(holder, issuer string) error
- func (s *ControllerSteps) RegisterSteps(gs *godog.Suite)
- func (s *ControllerSteps) RequestCredentialV3WithOpts(holder, issuer string, options ...Option) error
- func (s *ControllerSteps) RequestCredentialWithOpts(holder, issuer string, options ...Option) error
- func (s *ControllerSteps) SendOfferV3WithOpts(issuer, holder string, options ...Option) error
- func (s *ControllerSteps) SendOfferWithOpts(issuer, holder string, options ...Option) error
- func (s *ControllerSteps) SendProposalV3WithOpts(holder, issuer string, options ...Option) error
- func (s *ControllerSteps) SendProposalWithOpts(holder, issuer string, options ...Option) error
- func (s *ControllerSteps) SetContext(ctx *context.BDDContext)
- type Option
- type Options
- type SDKSteps
- func (a *SDKSteps) AcceptCredential(agent, name string, skipStore bool) error
- func (a *SDKSteps) AcceptCredentialByName(agent, name string) error
- func (a *SDKSteps) AcceptCredentialBySkippingStore(agent string) error
- func (a *SDKSteps) AcceptOffer(agent string) error
- func (a *SDKSteps) AcceptRequest(agent string) error
- func (a *SDKSteps) AcceptRequestV3(agent string) error
- func (a *SDKSteps) AcceptRequestWithRedirect(agent, redirect string) error
- func (a *SDKSteps) CheckCredential(agent, name string) error
- func (a *SDKSteps) CreateClient(agentID string) error
- func (a *SDKSteps) CreateManyClients(many string) error
- func (a *SDKSteps) RegisterSteps(s *godog.Suite)
- func (a *SDKSteps) SendsOffer(agent1, agent2 string) error
- func (a *SDKSteps) SendsOfferV3(agent1, agent2 string) error
- func (a *SDKSteps) SetContext(ctx *context.BDDContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckProperties ¶
func CheckProperties(action service.DIDCommAction) error
CheckProperties checks properties.
Types ¶
type ControllerSteps ¶
type ControllerSteps struct {
// contains filtered or unexported fields
}
ControllerSteps is steps for issuecredential with controller.
func NewIssueCredentialControllerSteps ¶
func NewIssueCredentialControllerSteps() *ControllerSteps
NewIssueCredentialControllerSteps creates steps for issuecredential with controller.
func (*ControllerSteps) AcceptCredentialPIID ¶
func (s *ControllerSteps) AcceptCredentialPIID(name, url, piid string) error
AcceptCredentialPIID invokes the accept-credential endpoint on the url with the given piid and name.
func (*ControllerSteps) AcceptOfferPIID ¶
func (s *ControllerSteps) AcceptOfferPIID(url, piid string) error
AcceptOfferPIID invokes the endpoint on the url for accepting an offer with the piid.
func (*ControllerSteps) EstablishConnection ¶
func (s *ControllerSteps) EstablishConnection(holder, issuer string) error
EstablishConnection will connect the two agents together.
func (*ControllerSteps) EstablishDIDCommV2Connection ¶
func (s *ControllerSteps) EstablishDIDCommV2Connection(holder, issuer string) error
EstablishDIDCommV2Connection will connect the two agents together with a DIDComm V2 connection.
func (*ControllerSteps) RegisterSteps ¶
func (s *ControllerSteps) RegisterSteps(gs *godog.Suite)
RegisterSteps registers agent steps nolint:lll
func (*ControllerSteps) RequestCredentialV3WithOpts ¶
func (s *ControllerSteps) RequestCredentialV3WithOpts(holder, issuer string, options ...Option) error
RequestCredentialV3WithOpts will send a default (empty) request unless one is provided using WithRequest.
func (*ControllerSteps) RequestCredentialWithOpts ¶
func (s *ControllerSteps) RequestCredentialWithOpts(holder, issuer string, options ...Option) error
RequestCredentialWithOpts will send a default (empty) request unless one is provided using WithRequest.
func (*ControllerSteps) SendOfferV3WithOpts ¶
func (s *ControllerSteps) SendOfferV3WithOpts(issuer, holder string, options ...Option) error
SendOfferV3WithOpts will send a default (empty) offer unless one is provided using WithOffer.
func (*ControllerSteps) SendOfferWithOpts ¶
func (s *ControllerSteps) SendOfferWithOpts(issuer, holder string, options ...Option) error
SendOfferWithOpts will send a default (empty) offer unless one is provided using WithOffer.
func (*ControllerSteps) SendProposalV3WithOpts ¶
func (s *ControllerSteps) SendProposalV3WithOpts(holder, issuer string, options ...Option) error
SendProposalV3WithOpts sends a default (empty) proposal unless one is provided using WithProposal.
func (*ControllerSteps) SendProposalWithOpts ¶
func (s *ControllerSteps) SendProposalWithOpts(holder, issuer string, options ...Option) error
SendProposalWithOpts sends a default (empty) proposal unless one is provided using WithProposal.
func (*ControllerSteps) SetContext ¶
func (s *ControllerSteps) SetContext(ctx *context.BDDContext)
SetContext sets every scenario with a fresh context.
type Option ¶
type Option func(*Options)
Option will configure Options.
func WithOffer ¶
func WithOffer(of *client.OfferCredentialV2) Option
WithOffer sets the offer to send or reply with.
func WithProposal ¶
func WithProposal(p *client.ProposeCredentialV2) Option
WithProposal sets the proposal to send.
func WithRequest ¶
func WithRequest(r *client.RequestCredentialV2) Option
WithRequest sets the request to send or reply with.
type Options ¶
type Options struct { Proposal *client.ProposeCredentialV2 ProposalV3 *client.ProposeCredentialV3 Request *client.RequestCredentialV2 RequestV3 *client.RequestCredentialV3 Offer *client.OfferCredentialV2 OfferV3 *client.OfferCredentialV3 }
Options for sending and accepting messages.
type SDKSteps ¶
type SDKSteps struct {
// contains filtered or unexported fields
}
SDKSteps is steps for the issuecredential using client SDK.
func NewIssueCredentialSDKSteps ¶
func NewIssueCredentialSDKSteps() *SDKSteps
NewIssueCredentialSDKSteps creates steps for the issuecredential with SDK.
func (*SDKSteps) AcceptCredential ¶
AcceptCredential makes agent accept a credential and save it with the given name.
func (*SDKSteps) AcceptCredentialByName ¶
AcceptCredentialByName makes agent accept a credential and save it with the given name.
func (*SDKSteps) AcceptCredentialBySkippingStore ¶
AcceptCredentialBySkippingStore makes agent accept a credential and but doesn't save in agent's verifable store.
func (*SDKSteps) AcceptOffer ¶
AcceptOffer makes agent accept an offer-credential message.
func (*SDKSteps) AcceptRequest ¶
AcceptRequest makes agent accept a request-credential message.
func (*SDKSteps) AcceptRequestV3 ¶
AcceptRequestV3 makes agent accept a request-credential message.
func (*SDKSteps) AcceptRequestWithRedirect ¶
AcceptRequestWithRedirect makes agent accept a request-credential message.
func (*SDKSteps) CheckCredential ¶
CheckCredential verifies the agent holds a credential with the given name.
func (*SDKSteps) CreateClient ¶
CreateClient creates a client with the given id.
func (*SDKSteps) CreateManyClients ¶
CreateManyClients expects 'many' to be a comma-delimited string of agent names, and a new client will be created for each.
func (*SDKSteps) RegisterSteps ¶
RegisterSteps registers agent steps. nolint:lll
func (*SDKSteps) SendsOffer ¶
SendsOffer sends an offer from agent1 to agent2.
func (*SDKSteps) SendsOfferV3 ¶
SendsOfferV3 sends an offer from agent1 to agent2.
func (*SDKSteps) SetContext ¶
func (a *SDKSteps) SetContext(ctx *context.BDDContext)
SetContext is called before every scenario is run with a fresh new context.