legacyconnection

package
v0.0.0-...-64dd8ac Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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