config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	TranslatePath(path string) string
	UnmarshalKey(key string, rawVal interface{}) error
}

type IdentityConfig

type IdentityConfig struct {
	Config  Config
	Wallets *Wallets
}

func NewIdentityConfig

func NewIdentityConfig(config Config) (*IdentityConfig, error)

func (*IdentityConfig) CacheSizeForOwnerID

func (i *IdentityConfig) CacheSizeForOwnerID(id string) int

func (*IdentityConfig) DefaultCacheSize

func (i *IdentityConfig) DefaultCacheSize() int

func (*IdentityConfig) IdentitiesForRole

func (i *IdentityConfig) IdentitiesForRole(role identity.RoleType) ([]*driver.ConfiguredIdentity, error)

func (*IdentityConfig) TranslatePath

func (i *IdentityConfig) TranslatePath(path string) string

type Wallets

type Wallets struct {
	DefaultCacheSize int                          `yaml:"defaultCacheSize,omitempty"`
	Certifiers       []*driver.ConfiguredIdentity `yaml:"certifiers,omitempty"`
	Owners           []*driver.ConfiguredIdentity `yaml:"owners,omitempty"`
	Issuers          []*driver.ConfiguredIdentity `yaml:"issuers,omitempty"`
	Auditors         []*driver.ConfiguredIdentity `yaml:"auditors,omitempty"`
}

Jump to

Keyboard shortcuts

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