gnap

package
v0.0.0-...-e472cc8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DIDOwner

type DIDOwner struct {
	DID        string
	KeyID      string
	PrivateKey *jwk.JWK
}

DIDOwner defines parameters of a DID owner.

type Steps

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

Steps defines context for the GNAP steps.

func NewSteps

func NewSteps(tlsConfig *tls.Config) (*Steps, error)

func (*Steps) GetDID

func (s *Steps) GetDID(userName string) string

GetDID is a helper function used in template to get DID of the user.

func (*Steps) RegisterSteps

func (s *Steps) RegisterSteps(sc *godog.ScenarioContext)

RegisterSteps defines scenario steps.

func (*Steps) SetContext

func (s *Steps) SetContext(ctx *bddcontext.BDDContext)

SetContext sets a fresh context for every scenario.

func (*Steps) ToBase64

func (s *Steps) ToBase64(str string) string

ToBase64 is a helper function used in template to encode string value into base64.

Jump to

Keyboard shortcuts

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