connection

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: 18 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 holds connection BDD steps using AFGO's REST API.

func NewControllerSteps

func NewControllerSteps() *ControllerSteps

NewControllerSteps creates connection Controller steps.

func (*ControllerSteps) ConnectAgentToOther

func (s *ControllerSteps) ConnectAgentToOther(agent, other string) error

ConnectAgentToOther connects 'agent' to another agent 'other', with the connection created only on the 'agent' side.

func (*ControllerSteps) HasDIDCommV2Connection

func (s *ControllerSteps) HasDIDCommV2Connection(agent1, agent2 string) error

HasDIDCommV2Connection gives each agent a DIDComm v2 connection with the other, using their available public DIDs.

func (*ControllerSteps) RegisterSteps

func (s *ControllerSteps) RegisterSteps(suite *godog.Suite)

RegisterSteps registers the BDD steps on the suite.

func (*ControllerSteps) RotateToPeerDID

func (s *ControllerSteps) RotateToPeerDID(agent, otherAgent string) error

RotateToPeerDID rotates agent's connection to otherAgent to a new peer DID.

func (*ControllerSteps) SetConnectionToDIDCommV2

func (s *ControllerSteps) SetConnectionToDIDCommV2(agent, connID string) error

SetConnectionToDIDCommV2 sets the given connection for the given agent to DIDComm V2.

func (*ControllerSteps) SetContext

func (s *ControllerSteps) SetContext(ctx *bddctx.BDDContext)

SetContext is called before every scenario is run with a fresh new bddctx.

type SDKSteps

type SDKSteps struct {
	// contains filtered or unexported fields
}

SDKSteps holds connection BDD steps using AFGO's Go SDK.

func NewSDKSteps

func NewSDKSteps() *SDKSteps

NewSDKSteps creates connection SDK steps.

func (*SDKSteps) RegisterSteps

func (s *SDKSteps) RegisterSteps(suite *godog.Suite)

RegisterSteps registers the BDD steps on the suite.

func (*SDKSteps) SetContext

func (s *SDKSteps) SetContext(ctx *bddctx.BDDContext)

SetContext is called before every scenario is run with a fresh new bddctx.

Jump to

Keyboard shortcuts

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