Documentation
¶
Index ¶
- Constants
- func GetPersistenceDataSource(peer *node2.Peer) string
- func GetPersistenceType(peer *node2.Peer) driver2.PersistenceType
- func PeerPortNames() []api.PortName
- func WithAlias(alias string) node2.Option
- func WithPostgresPersistence(config postgres.DataSourceProvider) node.Option
- func WithReplicationFactor(factor int) node2.Option
- type Builder
- type BuilderClient
- type Logging
- type Monitoring
- type P2PCommunicationType
- 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.Replica, env ...string) *runner2.Runner
- func (p *Platform) GenerateArtifacts()
- func (p *Platform) GenerateCmd(output io.Writer, node *node2.Replica) string
- func (p *Platform) GenerateConfigTree()
- func (p *Platform) GenerateCoreConfig(peer *node2.Replica)
- func (p *Platform) GenerateCryptoConfig()
- func (p *Platform) GenerateResolverMap()
- func (p *Platform) GenerateRoutingConfig()
- func (p *Platform) GetAdminSigningIdentity(peer *node2.Peer) (view.SigningIdentity, error)
- func (p *Platform) GetReplicas(peer *node2.Peer) []*node2.Replica
- 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.Replica) string
- func (p *Platform) NodeCmdDir(peer *node2.Replica) string
- func (p *Platform) NodeCmdPackage(peer *node2.Replica) string
- func (p *Platform) NodeCmdPath(peer *node2.Replica) string
- func (p *Platform) NodeConfigPath(peer *node2.Replica) string
- func (p *Platform) NodeDir(peer *node2.Replica) string
- func (p *Platform) NodeKVSDir(peer *node2.Replica) 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.Replica, portName api.PortName) uint16
- func (p *Platform) OperationAddress(peer *node2.Replica) string
- func (p *Platform) Organization(orgName string) *node2.Organization
- func (p *Platform) P2PCommunicationType() P2PCommunicationType
- func (p *Platform) Peer(orgName, peerName string) *node2.Peer
- func (p *Platform) PeerAddress(peer *node2.Replica, portName api.PortName) string
- func (p *Platform) PeerHost(peer *node2.Replica) string
- func (p *Platform) PeerOrgs() []*node2.Organization
- func (p *Platform) PeerPort(peer *node2.Replica, portName api.PortName) uint16
- func (p *Platform) PeersInOrg(orgName string) []*node2.Peer
- func (p *Platform) PostRun(bool)
- func (p *Platform) RoutingConfigPath() string
- 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) EnablePrometheusMetrics()
- func (t *Topology) EnableTracing(typ tracing.TracerType)
- func (t *Topology) EnableTracingWithRatio(typ tracing.TracerType, ratio float64)
- 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 GetPersistenceDataSource ¶ added in v0.4.0
func GetPersistenceType ¶
func GetPersistenceType(peer *node2.Peer) driver2.PersistenceType
func PeerPortNames ¶
PeerPortNames returns the list of ports that need to be reserved for a Peer.
func WithPostgresPersistence ¶ added in v0.4.0
func WithPostgresPersistence(config postgres.DataSourceProvider) node.Option
WithPostgresPersistence is a configuration with SQL vault persistence
func WithReplicationFactor ¶ added in v0.4.0
Types ¶
type BuilderClient ¶
type Monitoring ¶ added in v0.3.0
type P2PCommunicationType ¶ added in v0.4.0
type P2PCommunicationType = string
const ( LibP2P P2PCommunicationType = "libp2p" WebSocket P2PCommunicationType = "websocket" )
type Platform ¶
type Platform struct { Context api.Context NetworkID string Builder *Builder Topology *Topology EventuallyTimeout time.Duration Organizations []*node2.Organization Peers []*node2.Replica Resolvers []*Resolver Routing map[string][]string // 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) GenerateRoutingConfig ¶ added in v0.4.0
func (p *Platform) GenerateRoutingConfig()
func (*Platform) GetAdminSigningIdentity ¶
func (*Platform) GetReplicas ¶ added in v0.4.0
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) P2PCommunicationType ¶ added in v0.4.0
func (p *Platform) P2PCommunicationType() P2PCommunicationType
func (*Platform) PeerAddress ¶
func (*Platform) PeerOrgs ¶
func (p *Platform) PeerOrgs() []*node2.Organization
func (*Platform) RoutingConfigPath ¶ added in v0.4.0
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"` P2PCommunicationType P2PCommunicationType `yaml:"p2p_communication_type,omitempty"` // WebEnabled is used to activate the FSC web server WebEnabled bool `yaml:"web_enabled,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) EnablePrometheusMetrics ¶
func (t *Topology) EnablePrometheusMetrics()
func (*Topology) EnableTracing ¶ added in v0.4.0
func (t *Topology) EnableTracing(typ tracing.TracerType)
func (*Topology) EnableTracingWithRatio ¶ added in v0.4.0
func (t *Topology) EnableTracingWithRatio(typ tracing.TracerType, ratio float64)
func (*Topology) SetBootstrapNode ¶
func (*Topology) SetLogging ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.