agent

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: 40 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 contains steps for controller based agent.

func NewControllerSteps

func NewControllerSteps() *ControllerSteps

NewControllerSteps creates steps for agent with controller.

func (*ControllerSteps) RegisterSteps

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

RegisterSteps registers agent steps.

func (*ControllerSteps) SetContext

func (a *ControllerSteps) SetContext(ctx *bddcontext.BDDContext)

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

type SDKSteps

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

SDKSteps contains steps for agent from client SDK.

func NewSDKSteps

func NewSDKSteps() *SDKSteps

NewSDKSteps returns new agent from client SDK.

func (*SDKSteps) CreateAgent

func (a *SDKSteps) CreateAgent(agentID, inboundHost, inboundPort, scheme string) error

CreateAgent with the given parameters.

func (*SDKSteps) CreateAgentWithFlags

func (a *SDKSteps) CreateAgentWithFlags(agentID, inboundHost, inboundPort, scheme, flags string) error

CreateAgentWithFlags takes a set of comma-separated flags or key-value pairs:

  • sidetree=[endpoint url]: use http binding VDR accepting sidetree DID method, with the given http binding url.
  • UseRegistrar: use message registrar.
  • kmsURL=[kms url]: use webkms.

func (*SDKSteps) CreateAgentWithHTTPDIDResolver

func (a *SDKSteps) CreateAgentWithHTTPDIDResolver(
	agents, inboundHost, inboundPort, endpointURL, acceptDidMethod string) error

CreateAgentWithHTTPDIDResolver creates one or more agents with HTTP DID resolver.

func (*SDKSteps) CreateAgentWithHTTPDIDResolverAndOOBv2

func (a *SDKSteps) CreateAgentWithHTTPDIDResolverAndOOBv2(
	agents, inboundHost, inboundPort, endpointURL, acceptDidMethod string) error

CreateAgentWithHTTPDIDResolverAndOOBv2 creates one or more agents with HTTP DID resolver and services with auto event registration.

func (*SDKSteps) CreateAgentWithRemoteKMS

func (a *SDKSteps) CreateAgentWithRemoteKMS(agentID, inboundHost, inboundPort, scheme,
	kmsURL, controller string) error

CreateAgentWithRemoteKMS with the given parameters with a remote kms.

func (*SDKSteps) CreateEdgeAgentWithFlags

func (a *SDKSteps) CreateEdgeAgentWithFlags(agentID, scheme, routeOpt, flags string) error

CreateEdgeAgentWithFlags takes a set of comma-separated flags or key-value pairs:

  • sidetree=[endpoint url]: use http binding VDR accepting sidetree DID method, with the given http binding url.
  • UseRegistrar: use message registrar.
  • kmsURL=[kms url]: use webkms.

func (*SDKSteps) RegisterSteps

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

RegisterSteps registers agent steps.

func (*SDKSteps) SetContext

func (a *SDKSteps) SetContext(ctx *context.BDDContext)

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

Jump to

Keyboard shortcuts

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