config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCacheSize = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Certification

type Certification struct {
	Interactive *InteractiveCertification `yaml:"interactive,omitempty"`
}

type Identity

type Identity struct {
	ID        string      `yaml:"id"`
	Default   bool        `yaml:"default,omitempty"`
	Path      string      `yaml:"path"`
	CacheSize int         `yaml:"cacheSize"`
	Type      string      `yaml:"type,omitempty"`
	Opts      interface{} `yaml:"opts,omitempty"`
}

func (*Identity) String

func (i *Identity) String() string

type InteractiveCertification

type InteractiveCertification struct {
	IDs []string `yaml:"ids,omitempty"`
}

type Manager

type Manager interface {
	TMS() *TMS
	TranslatePath(path string) string
	IsSet(key string) bool
	UnmarshalKey(key string, rawVal interface{}) error
}

type PublicParameters added in v0.3.0

type PublicParameters struct {
	Path string `yaml:"path"`
}

type TMS

type TMS struct {
	Network          string            `yaml:"network,omitempty"`
	Channel          string            `yaml:"channel,omitempty"`
	Namespace        string            `yaml:"namespace,omitempty"`
	Driver           string            `yaml:"driver,omitempty"`
	PublicParameters *PublicParameters `yaml:"publicParameters,omitempty"`
	Certification    *Certification    `yaml:"certification,omitempty"`
	Wallets          *Wallets          `yaml:"wallets,omitempty"`
}

func (*TMS) GetOwnerWallet added in v0.3.0

func (t *TMS) GetOwnerWallet(id string) *Identity

func (*TMS) GetWalletDefaultCacheSize added in v0.3.0

func (t *TMS) GetWalletDefaultCacheSize() int

type Wallets

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

Jump to

Keyboard shortcuts

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