Documentation
¶
Index ¶
- func ValidateNs(ns string) error
- type BackedTopology
- type Chaincode
- type Options
- func (o *Options) Auditor() bool
- func (o *Options) Certifier() bool
- func (o *Options) IsUseHSMForAuditor() bool
- func (o *Options) IsUseHSMForIssuer(label string) bool
- func (o *Options) Issuers() []string
- func (o *Options) Owners() []string
- func (o *Options) SetAuditor(v bool)
- func (o *Options) SetCertifier(v bool)
- func (o *Options) SetIssuers(ids []string)
- func (o *Options) SetOwners(ids []string)
- func (o *Options) UseHSMForAuditor()
- func (o *Options) UseHSMForIssuer(label string)
- type TMS
- func (t *TMS) AddAuditor(auditor *node.Node) *TMS
- func (t *TMS) AddCertifier(certifier *node.Node) *TMS
- func (t *TMS) AddIssuer(issuer *node.Node) *TMS
- func (t *TMS) AddNode(custodian *node.Node)
- func (t *TMS) ID() string
- func (t *TMS) SetNamespace(namespace string) *TMS
- func (t *TMS) SetTokenGenPublicParams(publicParamsGenArgs ...string)
- type TokenTopology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackedTopology ¶
type BackedTopology interface {
Name() string
}
type Options ¶
type Options struct {
Mapping map[string]interface{}
}
func (*Options) IsUseHSMForAuditor ¶
func (*Options) IsUseHSMForIssuer ¶
func (*Options) SetAuditor ¶
func (*Options) SetCertifier ¶
func (*Options) SetIssuers ¶
func (*Options) UseHSMForAuditor ¶
func (o *Options) UseHSMForAuditor()
func (*Options) UseHSMForIssuer ¶
type TMS ¶
type TMS struct {
Network string
Channel string
Namespace string
Driver string
PublicParamsGenArgs []string
Auditors []string
Certifiers []string
Issuers []string
TokenTopology TokenTopology `yaml:"-"`
FSCNodes []*node.Node `yaml:"-"`
BackendTopology BackedTopology `yaml:"-"`
BackendParams map[string]interface{}
}
func (*TMS) SetNamespace ¶
SetNamespace sets the namespace of the TMS
func (*TMS) SetTokenGenPublicParams ¶
type TokenTopology ¶
type TokenTopology interface {
// GetTMSs returns the list of TMSs in the topology
GetTMSs() []*TMS
}
TokenTopology models the topology of the token network
Click to show internal directories.
Click to hide internal directories.