opts

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Mapping map[string]interface{}
}

func Get

func Get(o *node.Options) *Options

func (*Options) AddNetworkOrganization

func (o *Options) AddNetworkOrganization(network, org string)

func (*Options) AddOrganization

func (o *Options) AddOrganization(org string)

func (*Options) AnonymousIdentity

func (o *Options) AnonymousIdentity() bool

func (*Options) DefaultIdentityByHSM

func (o *Options) DefaultIdentityByHSM() bool

DefaultIdentityByHSM return true if the default identity is an HSM identity

func (*Options) DefaultIdentityLabel

func (o *Options) DefaultIdentityLabel() string

DefaultIdentityLabel returns the label of the default identity. If empty, it will then be set to the FSC node's name.

func (*Options) DefaultNetwork

func (o *Options) DefaultNetwork() string

func (*Options) IdemixIdentities

func (o *Options) IdemixIdentities() []string

func (*Options) Organizations

func (o *Options) Organizations() []Organization

func (*Options) Role

func (o *Options) Role() string

func (*Options) SetAnonymousIdentity

func (o *Options) SetAnonymousIdentity(v bool)

func (*Options) SetDefaultIdentityByHSM

func (o *Options) SetDefaultIdentityByHSM(v bool)

SetDefaultIdentityByHSM sets the default identity to be an HSM identity

func (*Options) SetDefaultIdentityLabel

func (o *Options) SetDefaultIdentityLabel(label string)

SetDefaultIdentityLabel sets the label of the default identity. The default identity is an X509 identity.

func (*Options) SetDefaultNetwork

func (o *Options) SetDefaultNetwork(defaultNetwork string)

func (*Options) SetHSMX509Identities

func (o *Options) SetHSMX509Identities(ids []string)

SetHSMX509Identities sets the list of HSM X509 identity identifiers

func (*Options) SetIdemixIdentities

func (o *Options) SetIdemixIdentities(ids []string)

func (*Options) SetRole

func (o *Options) SetRole(org string)

func (*Options) SetX509Identities

func (o *Options) SetX509Identities(ids []string)

func (*Options) X509Identities

func (o *Options) X509Identities() []string

func (*Options) X509IdentitiesByHSM

func (o *Options) X509IdentitiesByHSM() []string

X509IdentitiesByHSM returns the list of HSM X509 identity identifiers

type Organization

type Organization struct {
	Network string
	Org     string
}

Jump to

Keyboard shortcuts

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