Documentation
¶
Index ¶
- Constants
- type Alias
- type CA
- type Factory
- type FactoryEntry
- type Node
- func (n *Node) AddOptions(opts ...Option) *Node
- func (n *Node) AddSDK(sdk api.SDK) *Node
- func (n *Node) Alias(i string) string
- func (n *Node) ID() string
- func (n *Node) PlatformOpts() *Options
- func (n *Node) RegisterResponder(responder view.View, initiator view.View) *Node
- func (n *Node) RegisterViewFactory(id string, factory Factory) *Node
- func (n *Node) SetBootstrap() *Node
- func (n *Node) SetExecutable(ExecutablePath string) *Node
- type Option
- type Options
- type Organization
- type Peer
- type PeerIdentity
- type ResponderEntry
- type SDKEntry
- type Synthesizer
Constants ¶
View Source
const CoreTemplate = `` /* 5291-byte string literal not displayed */
View Source
const DefaultCryptoTemplate = `` /* 619-byte string literal not displayed */
View Source
const DefaultTemplate = `` /* 786-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { // NewView returns an instance of the View interface build using the passed argument. NewView(in []byte) (view.View, error) }
Factory is used to create instances of the View interface
type FactoryEntry ¶
type Node ¶
type Node struct { Synthesizer `yaml:"Synthesizer,omitempty"` Name string `yaml:"name,omitempty"` Bootstrap bool `yaml:"bootstrap,omitempty"` ExecutablePath string `yaml:"executablePath,omitempty"` Path string `yaml:"path,omitempty"` Options *Options `yaml:"options,omitempty"` }
func NewNodeFromTemplate ¶
func (*Node) AddOptions ¶
func (*Node) AddSDK ¶
AddSDK adds a reference to the passed SDK. AddSDK expects to find a constructor named 'New' followed by the type name of the passed reference.
func (*Node) PlatformOpts ¶
func (*Node) RegisterResponder ¶
RegisterResponder registers the passed responder to the passed initiator
func (*Node) RegisterViewFactory ¶
func (*Node) SetBootstrap ¶
func (*Node) SetExecutable ¶
SetExecutable sets the executable path of this node
type Organization ¶
type Organization struct { ID string `yaml:"id,omitempty"` MSPID string `yaml:"msp_id,omitempty"` MSPType string `yaml:"msp_type,omitempty"` Name string `yaml:"name,omitempty"` Domain string `yaml:"domain,omitempty"` EnableNodeOUs bool `yaml:"enable_node_organizational_units"` Users int `yaml:"users,omitempty"` CA *CA `yaml:"ca,omitempty"` UserNames []string `yaml:"userNames,omitempty"` }
Organization models information about an Organization. It includes the information needed to populate an MSP with cryptogen.
type Peer ¶
type Peer struct { *Node Name string `yaml:"name,omitempty"` Organization string `yaml:"organization,omitempty"` Bootstrap bool `yaml:"bootstrap,omitempty"` ExecutablePath string `yaml:"executablepath,omitempty"` ExtraIdentities []*PeerIdentity `yaml:"extraidentities,omitempty"` Admins []string `yaml:"admins,omitempty"` Aliases []string `yaml:"aliases,omitempty"` }
Peer defines an FSC node instance
type PeerIdentity ¶
type ResponderEntry ¶
type Synthesizer ¶
type Synthesizer struct { Aliases map[string]Alias `yaml:"Aliases,omitempty"` Imports []string `yaml:"Imports,omitempty"` Factories []FactoryEntry `yaml:"Factories,omitempty"` SDKs []SDKEntry `yaml:"SDKs,omitempty"` Responders []ResponderEntry `yaml:"Responders,omitempty"` }
Click to show internal directories.
Click to hide internal directories.