Documentation
¶
Index ¶
- type ControllerSteps
- func (a *ControllerSteps) ApproveRequest(agentID string) error
- func (a *ControllerSteps) ApproveRequestWithRouter(agentID, router string) error
- func (a *ControllerSteps) ConnectionIDs() map[string]string
- func (a *ControllerSteps) CreatePublicDID(agentID, _ string) error
- func (a *ControllerSteps) CreatePublicDIDWithKeyType(agentID, keyType, encKeyType string) (string, error)
- func (a *ControllerSteps) EstablishConnection(inviter, invitee string) error
- func (a *ControllerSteps) RegisterSteps(s *godog.Suite)
- func (a *ControllerSteps) SetContext(ctx *context.BDDContext)
- func (a *ControllerSteps) WaitForPostEvent(agents, statesValue string) error
- type SDKSteps
- func (d *SDKSteps) ApproveRequest(agentID string) error
- func (d *SDKSteps) ApproveRequestWithRouter(agentID, router string) error
- func (d *SDKSteps) CreateDIDExchangeClient(agents string) error
- func (d *SDKSteps) CreateInvitation(inviterAgentID, connection, keyType string) error
- func (d *SDKSteps) CreateInvitationWithDID(inviterAgentID string) error
- func (d *SDKSteps) ReceiveInvitation(inviteeAgentID, inviterAgentID string) error
- func (d *SDKSteps) RegisterPostMsgEvent(agents, statesValue string) error
- func (d *SDKSteps) RegisterSteps(s *godog.Suite)
- func (d *SDKSteps) SetContext(ctx *context.BDDContext)
- func (d *SDKSteps) ValidateConnection(agents, stateValue string) error
- func (d *SDKSteps) WaitForPostEvent(agents, statesValue string) error
- func (d *SDKSteps) WaitForPublicDID(agents string, maxSeconds int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerSteps ¶
type ControllerSteps struct {
// contains filtered or unexported fields
}
ControllerSteps is steps for didexchange with controller.
func NewDIDExchangeControllerSteps ¶
func NewDIDExchangeControllerSteps() *ControllerSteps
NewDIDExchangeControllerSteps creates steps for didexchange with controller.
func (*ControllerSteps) ApproveRequest ¶
func (a *ControllerSteps) ApproveRequest(agentID string) error
ApproveRequest approves a request.
func (*ControllerSteps) ApproveRequestWithRouter ¶
func (a *ControllerSteps) ApproveRequestWithRouter(agentID, router string) error
ApproveRequestWithRouter approves a request.
func (*ControllerSteps) ConnectionIDs ¶
func (a *ControllerSteps) ConnectionIDs() map[string]string
ConnectionIDs gets connection IDs.
func (*ControllerSteps) CreatePublicDID ¶
func (a *ControllerSteps) CreatePublicDID(agentID, _ string) error
CreatePublicDID step creates a public sidetree DID for the given agent. Second parameter is ignored.
func (*ControllerSteps) CreatePublicDIDWithKeyType ¶
func (a *ControllerSteps) CreatePublicDIDWithKeyType( agentID, keyType, encKeyType string) (string, error)
CreatePublicDIDWithKeyType creates a public sidetree DID with the given key type, returning the DID.
func (*ControllerSteps) EstablishConnection ¶
func (a *ControllerSteps) EstablishConnection(inviter, invitee string) error
EstablishConnection establishes connection between two agents through did exchange protocol.
func (*ControllerSteps) RegisterSteps ¶
func (a *ControllerSteps) RegisterSteps(s *godog.Suite)
RegisterSteps registers agent steps.
func (*ControllerSteps) SetContext ¶
func (a *ControllerSteps) SetContext(ctx *context.BDDContext)
SetContext is called before every scenario is run with a fresh new context.
func (*ControllerSteps) WaitForPostEvent ¶
func (a *ControllerSteps) WaitForPostEvent(agents, statesValue string) error
WaitForPostEvent waits for the specific post event state.
type SDKSteps ¶
type SDKSteps struct {
// contains filtered or unexported fields
}
SDKSteps is steps for didexchange using client SDK.
func NewDIDExchangeSDKSteps ¶
func NewDIDExchangeSDKSteps() *SDKSteps
NewDIDExchangeSDKSteps return new steps for didexchange using client SDK.
func (*SDKSteps) ApproveRequest ¶
ApproveRequest approves request.
func (*SDKSteps) ApproveRequestWithRouter ¶
ApproveRequestWithRouter approves request.
func (*SDKSteps) CreateDIDExchangeClient ¶
CreateDIDExchangeClient creates DIDExchangeClient.
func (*SDKSteps) CreateInvitation ¶
CreateInvitation creates an invitation.
func (*SDKSteps) CreateInvitationWithDID ¶
CreateInvitationWithDID creates invitation with DID.
func (*SDKSteps) ReceiveInvitation ¶
ReceiveInvitation receives invitation.
func (*SDKSteps) RegisterPostMsgEvent ¶
RegisterPostMsgEvent registers PostMsgEvent.
func (*SDKSteps) RegisterSteps ¶
RegisterSteps registers did exchange steps.
func (*SDKSteps) SetContext ¶
func (d *SDKSteps) SetContext(ctx *context.BDDContext)
SetContext is called before every scenario is run with a fresh new context.
func (*SDKSteps) ValidateConnection ¶
ValidateConnection checks the agents connection status against the given value.
func (*SDKSteps) WaitForPostEvent ¶
WaitForPostEvent waits for post event.