Documentation ¶
Index ¶
- Constants
- func GetKVSOrionCreator(peer *node2.Peer) string
- func GetKVSOrionDatabase(peer *node2.Peer) string
- func GetKVSOrionNetwork(peer *node2.Peer) string
- func GetPersistenceType(peer *node2.Peer) string
- func PeerPortNames() []api.PortName
- func WithAlias(alias string) node2.Option
- func WithOrionPersistence(network, db, creator string) node.Option
- type Builder
- type BuilderClient
- type Logging
- type Monitoring
- type Platform
- func (p *Platform) AdminLocalMSPIdentityCert(peer *node2.Peer) string
- func (p *Platform) AdminLocalMSPPrivateKey(peer *node2.Peer) string
- func (p *Platform) BootstrapNode(me *node2.Peer) string
- func (p *Platform) BootstrapViewNodeGroupRunner() ifrit.Runner
- func (p *Platform) CACertsBundlePath() string
- func (p *Platform) CheckTopology()
- func (p *Platform) Cleanup()
- func (p *Platform) ClientAuthRequired() bool
- func (p *Platform) ConcatenateTLSCACertificates()
- func (p *Platform) CryptoConfigPath() string
- func (p *Platform) CryptoPath() string
- func (p *Platform) Cryptogen(command common.Command) (*gexec.Session, error)
- func (p *Platform) FSCCLI(command common.Command) (*gexec.Session, error)
- func (p *Platform) FSCNodeGroupRunner() ifrit.Runner
- func (p *Platform) FSCNodeRunner(node *node2.Peer, env ...string) *runner2.Runner
- func (p *Platform) GenerateArtifacts()
- func (p *Platform) GenerateCmd(output io.Writer, node *node2.Peer) string
- func (p *Platform) GenerateConfigTree()
- func (p *Platform) GenerateCoreConfig(peer *node2.Peer)
- func (p *Platform) GenerateCryptoConfig()
- func (p *Platform) GenerateResolverMap()
- func (p *Platform) GetAdminSigningIdentity(peer *node2.Peer) (view.SigningIdentity, error)
- func (p *Platform) GetSigningIdentity(peer *node2.Peer) (view.SigningIdentity, error)
- func (p *Platform) InitClients()
- func (p *Platform) Load()
- func (p *Platform) LocalMSPIdentityCert(peer *node2.Peer) string
- func (p *Platform) LocalMSPPrivateKey(peer *node2.Peer) string
- func (p *Platform) Members() []grouper.Member
- func (p *Platform) Name() string
- func (p *Platform) NodeClientConfigPath(peer *node2.Peer) string
- func (p *Platform) NodeCmdDir(peer *node2.Peer) string
- func (p *Platform) NodeCmdPackage(peer *node2.Peer) string
- func (p *Platform) NodeCmdPath(peer *node2.Peer) string
- func (p *Platform) NodeConfigPath(peer *node2.Peer) string
- func (p *Platform) NodeDir(peer *node2.Peer) string
- func (p *Platform) NodeKVSDir(peer *node2.Peer) string
- func (p *Platform) NodeLocalCertPath(node *node2.Peer) string
- func (p *Platform) NodeLocalPrivateKeyPath(node *node2.Peer) string
- func (p *Platform) NodeLocalTLSDir(peer *node2.Peer) string
- func (p *Platform) NodePort(node *node2.Peer, portName api.PortName) uint16
- func (p *Platform) OperationAddress(peer *node2.Peer) string
- func (p *Platform) Organization(orgName string) *node2.Organization
- func (p *Platform) Peer(orgName, peerName string) *node2.Peer
- func (p *Platform) PeerAddress(peer *node2.Peer, portName api.PortName) string
- func (p *Platform) PeerOrgs() []*node2.Organization
- func (p *Platform) PeerPort(peer *node2.Peer, portName api.PortName) uint16
- func (p *Platform) PeersInOrg(orgName string) []*node2.Peer
- func (p *Platform) PostRun(bool)
- func (p *Platform) StartSession(cmd *exec.Cmd, name string) (*gexec.Session, error)
- func (p *Platform) Type() string
- type Resolver
- type ResolverIdentity
- type Templates
- type Topology
- func (t *Topology) AddNodeByName(name string) *node.Node
- func (t *Topology) AddNodeFromTemplate(name string, template *node.Node) *node.Node
- func (t *Topology) AddSDK(sdk api.SDK)
- func (t *Topology) DisablePrometheusTLS()
- func (t *Topology) EnableLogToFile()
- func (t *Topology) EnableOPTLTracing()
- func (t *Topology) EnablePrometheusMetrics()
- func (t *Topology) ListNodes(ids ...string) []*node.Node
- func (t *Topology) Name() string
- func (t *Topology) NewTemplate(name string) *node.Node
- func (t *Topology) SetBootstrapNode(n *node.Node)
- func (t *Topology) SetLogging(spec, format string)
- func (t *Topology) Type() string
Constants ¶
View Source
const ( ListenPort api.PortName = "Listen" // Port at which the fsc node might listen for some service ViewPort api.PortName = "View" // Port at which the View Service Server respond P2PPort api.PortName = "P2P" // Port at which the P2P Communication Layer respond WebPort api.PortName = "Web" // Port at which the Web Server respond )
View Source
const (
TopologyName = "fsc"
)
Variables ¶
This section is empty.
Functions ¶
func GetKVSOrionCreator ¶
func GetKVSOrionDatabase ¶
func GetKVSOrionNetwork ¶
func GetPersistenceType ¶
func PeerPortNames ¶
PeerPortNames returns the list of ports that need to be reserved for a Peer.
func WithOrionPersistence ¶
WithOrionPersistence set FSC backend to an orion backend
Types ¶
type BuilderClient ¶
type Monitoring ¶ added in v0.3.0
type Platform ¶
type Platform struct { Context api.Context NetworkID string Builder *Builder Topology *Topology EventuallyTimeout time.Duration Organizations []*node2.Organization Peers []*node2.Peer Resolvers []*Resolver // contains filtered or unexported fields }
func NewPlatform ¶
func (*Platform) AdminLocalMSPIdentityCert ¶
func (*Platform) AdminLocalMSPPrivateKey ¶
func (*Platform) BootstrapViewNodeGroupRunner ¶
func (*Platform) CACertsBundlePath ¶
func (*Platform) CheckTopology ¶
func (p *Platform) CheckTopology()
func (*Platform) ClientAuthRequired ¶
func (*Platform) ConcatenateTLSCACertificates ¶
func (p *Platform) ConcatenateTLSCACertificates()
func (*Platform) CryptoConfigPath ¶
func (*Platform) CryptoPath ¶
func (*Platform) FSCNodeGroupRunner ¶
func (*Platform) FSCNodeRunner ¶
func (*Platform) GenerateArtifacts ¶
func (p *Platform) GenerateArtifacts()
func (*Platform) GenerateCmd ¶
func (*Platform) GenerateConfigTree ¶
func (p *Platform) GenerateConfigTree()
func (*Platform) GenerateCoreConfig ¶
func (*Platform) GenerateCryptoConfig ¶
func (p *Platform) GenerateCryptoConfig()
func (*Platform) GenerateResolverMap ¶
func (p *Platform) GenerateResolverMap()
func (*Platform) GetAdminSigningIdentity ¶
func (*Platform) GetSigningIdentity ¶
func (*Platform) InitClients ¶
func (p *Platform) InitClients()
func (*Platform) LocalMSPIdentityCert ¶
func (*Platform) LocalMSPPrivateKey ¶
func (*Platform) NodeClientConfigPath ¶
func (*Platform) NodeLocalPrivateKeyPath ¶
func (*Platform) Organization ¶
func (p *Platform) Organization(orgName string) *node2.Organization
func (*Platform) PeerAddress ¶
func (*Platform) PeerOrgs ¶
func (p *Platform) PeerOrgs() []*node2.Organization
func (*Platform) StartSession ¶
type ResolverIdentity ¶
type Templates ¶ added in v0.3.0
type Templates struct { Node string `yaml:"node,omitempty"` Core string `yaml:"core,omitempty"` Crypto string `yaml:"crypto,omitempty"` }
Templates can be used to provide custom templates to GenerateConfigTree.
func (*Templates) CoreTemplate ¶ added in v0.3.0
func (*Templates) CryptoTemplate ¶ added in v0.3.0
func (*Templates) NodeTemplate ¶ added in v0.3.0
type Topology ¶
type Topology struct { TopologyName string `yaml:"name,omitempty"` TopologyType string `yaml:"type,omitempty"` Nodes []*node.Node `yaml:"peers,omitempty"` GRPCLogging bool `yaml:"grpcLogging,omitempty"` Logging *Logging `yaml:"logging,omitempty"` LogToFile bool `yaml:"logToFile,omitempty"` Templates Templates `yaml:"templates,omitempty"` Monitoring Monitoring `yaml:"monitoring,omitempty"` }
func (*Topology) AddNodeByName ¶
AddNodeByName adds an empty new node with the passed name
func (*Topology) AddNodeFromTemplate ¶
AddNodeFromTemplate adds a new node with the passed name and template
func (*Topology) DisablePrometheusTLS ¶ added in v0.3.0
func (t *Topology) DisablePrometheusTLS()
func (*Topology) EnableLogToFile ¶
func (t *Topology) EnableLogToFile()
func (*Topology) EnableOPTLTracing ¶ added in v0.3.0
func (t *Topology) EnableOPTLTracing()
func (*Topology) EnablePrometheusMetrics ¶
func (t *Topology) EnablePrometheusMetrics()
func (*Topology) SetBootstrapNode ¶
func (*Topology) SetLogging ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.