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 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
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 legacy-connection with controller.
func NewLegacyConnectionControllerSteps ¶
func NewLegacyConnectionControllerSteps() *ControllerSteps
NewLegacyConnectionControllerSteps creates steps for legacy-connection 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 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 legacy-connection 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.