issuecredential

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProperties

func CheckProperties(action service.DIDCommAction) error

CheckProperties checks properties.

Types

type ControllerSteps

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

ControllerSteps is steps for issuecredential with controller.

func NewIssueCredentialControllerSteps

func NewIssueCredentialControllerSteps() *ControllerSteps

NewIssueCredentialControllerSteps creates steps for issuecredential with controller.

func (*ControllerSteps) AcceptCredentialPIID

func (s *ControllerSteps) AcceptCredentialPIID(name, url, piid string) error

AcceptCredentialPIID invokes the accept-credential endpoint on the url with the given piid and name.

func (*ControllerSteps) AcceptOfferPIID

func (s *ControllerSteps) AcceptOfferPIID(url, piid string) error

AcceptOfferPIID invokes the endpoint on the url for accepting an offer with the piid.

func (*ControllerSteps) EstablishConnection

func (s *ControllerSteps) EstablishConnection(holder, issuer string) error

EstablishConnection will connect the two agents together.

func (*ControllerSteps) EstablishDIDCommV2Connection

func (s *ControllerSteps) EstablishDIDCommV2Connection(holder, issuer string) error

EstablishDIDCommV2Connection will connect the two agents together with a DIDComm V2 connection.

func (*ControllerSteps) RegisterSteps

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

RegisterSteps registers agent steps nolint:lll

func (*ControllerSteps) RequestCredentialV3WithOpts

func (s *ControllerSteps) RequestCredentialV3WithOpts(holder, issuer string, options ...Option) error

RequestCredentialV3WithOpts will send a default (empty) request unless one is provided using WithRequest.

func (*ControllerSteps) RequestCredentialWithOpts

func (s *ControllerSteps) RequestCredentialWithOpts(holder, issuer string, options ...Option) error

RequestCredentialWithOpts will send a default (empty) request unless one is provided using WithRequest.

func (*ControllerSteps) SendOfferV3WithOpts

func (s *ControllerSteps) SendOfferV3WithOpts(issuer, holder string, options ...Option) error

SendOfferV3WithOpts will send a default (empty) offer unless one is provided using WithOffer.

func (*ControllerSteps) SendOfferWithOpts

func (s *ControllerSteps) SendOfferWithOpts(issuer, holder string, options ...Option) error

SendOfferWithOpts will send a default (empty) offer unless one is provided using WithOffer.

func (*ControllerSteps) SendProposalV3WithOpts

func (s *ControllerSteps) SendProposalV3WithOpts(holder, issuer string, options ...Option) error

SendProposalV3WithOpts sends a default (empty) proposal unless one is provided using WithProposal.

func (*ControllerSteps) SendProposalWithOpts

func (s *ControllerSteps) SendProposalWithOpts(holder, issuer string, options ...Option) error

SendProposalWithOpts sends a default (empty) proposal unless one is provided using WithProposal.

func (*ControllerSteps) SetContext

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

SetContext sets every scenario with a fresh context.

type Option

type Option func(*Options)

Option will configure Options.

func WithOffer

func WithOffer(of *client.OfferCredentialV2) Option

WithOffer sets the offer to send or reply with.

func WithProposal

func WithProposal(p *client.ProposeCredentialV2) Option

WithProposal sets the proposal to send.

func WithRequest

func WithRequest(r *client.RequestCredentialV2) Option

WithRequest sets the request to send or reply with.

type Options

Options for sending and accepting messages.

type SDKSteps

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

SDKSteps is steps for the issuecredential using client SDK.

func NewIssueCredentialSDKSteps

func NewIssueCredentialSDKSteps() *SDKSteps

NewIssueCredentialSDKSteps creates steps for the issuecredential with SDK.

func (*SDKSteps) AcceptCredential

func (a *SDKSteps) AcceptCredential(agent, name string, skipStore bool) error

AcceptCredential makes agent accept a credential and save it with the given name.

func (*SDKSteps) AcceptCredentialByName

func (a *SDKSteps) AcceptCredentialByName(agent, name string) error

AcceptCredentialByName makes agent accept a credential and save it with the given name.

func (*SDKSteps) AcceptCredentialBySkippingStore

func (a *SDKSteps) AcceptCredentialBySkippingStore(agent string) error

AcceptCredentialBySkippingStore makes agent accept a credential and but doesn't save in agent's verifable store.

func (*SDKSteps) AcceptOffer

func (a *SDKSteps) AcceptOffer(agent string) error

AcceptOffer makes agent accept an offer-credential message.

func (*SDKSteps) AcceptRequest

func (a *SDKSteps) AcceptRequest(agent string) error

AcceptRequest makes agent accept a request-credential message.

func (*SDKSteps) AcceptRequestV3

func (a *SDKSteps) AcceptRequestV3(agent string) error

AcceptRequestV3 makes agent accept a request-credential message.

func (*SDKSteps) AcceptRequestWithRedirect

func (a *SDKSteps) AcceptRequestWithRedirect(agent, redirect string) error

AcceptRequestWithRedirect makes agent accept a request-credential message.

func (*SDKSteps) CheckCredential

func (a *SDKSteps) CheckCredential(agent, name string) error

CheckCredential verifies the agent holds a credential with the given name.

func (*SDKSteps) CreateClient

func (a *SDKSteps) CreateClient(agentID string) error

CreateClient creates a client with the given id.

func (*SDKSteps) CreateManyClients

func (a *SDKSteps) CreateManyClients(many string) error

CreateManyClients expects 'many' to be a comma-delimited string of agent names, and a new client will be created for each.

func (*SDKSteps) RegisterSteps

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

RegisterSteps registers agent steps. nolint:lll

func (*SDKSteps) SendsOffer

func (a *SDKSteps) SendsOffer(agent1, agent2 string) error

SendsOffer sends an offer from agent1 to agent2.

func (*SDKSteps) SendsOfferV3

func (a *SDKSteps) SendsOfferV3(agent1, agent2 string) error

SendsOfferV3 sends an offer from agent1 to agent2.

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