Documentation ¶
Index ¶
- Constants
- Variables
- func NewPlatformFactory() *platformFactory
- type Admin
- type Attr
- type Builder
- type Config
- type Credentials
- type Driver
- type FabricNetwork
- type Identity
- type InteropChaincode
- type Network
- type Platform
- func (p *Platform) Cleanup()
- func (p *Platform) Fabric(relay *RelayServer) FabricNetwork
- func (p *Platform) FabricDriverConfigPath(relay *RelayServer) string
- func (p *Platform) FabricDriverConnectionProfilePath(relay *RelayServer) string
- func (p *Platform) FabricDriverDir(relay *RelayServer) string
- func (p *Platform) FabricDriverWalletDir(relay *RelayServer) string
- func (p *Platform) FabricDriverWalletId(relay *RelayServer, id string) string
- func (p *Platform) GenerateArtifacts()
- func (p *Platform) GenerateConfigTree()
- func (p *Platform) InteropChaincodeFile() string
- func (p *Platform) Load()
- func (p *Platform) Members() []grouper.Member
- func (p *Platform) Name() string
- func (p *Platform) PostRun(bool)
- func (p *Platform) PrepareInteropChaincode(relay *RelayServer) (*topology.ChannelChaincode, error)
- func (p *Platform) RelayDir() string
- func (p *Platform) RelayServerConfigPath(relay *RelayServer) string
- func (p *Platform) RelayServerDir(relay *RelayServer) string
- func (p *Platform) RelayServerInteropAccessControl(destination *RelayServer, source *RelayServer) string
- func (p *Platform) RelayServerInteropDir(relay *RelayServer) string
- func (p *Platform) RelayServerInteropMembership(relay *RelayServer) string
- func (p *Platform) RelayServerInteropVerificationPolicy(relay *RelayServer) string
- func (p *Platform) RunRelayFabricDriver(...)
- func (p *Platform) RunRelayServer(name string, serverConfigPath, port string)
- func (p *Platform) Type() string
- type Relay
- type RelayServer
- type Topology
Constants ¶
View Source
const ( RelayServerImage = "hyperledger-labs/weaver-relay-server:latest" FabricDriverImage = "hyperledger-labs/weaver-fabric-driver:latest" )
View Source
const FabricExtensionTemplate = `` /* 415-byte string literal not displayed */
View Source
const RelayServerTOML = `` /* 706-byte string literal not displayed */
View Source
const (
TopologyName = "weaver"
)
Variables ¶
View Source
var RequiredImages = []string{ RelayServerImage, FabricDriverImage, }
Functions ¶
func NewPlatformFactory ¶
func NewPlatformFactory() *platformFactory
Types ¶
type Credentials ¶
type FabricNetwork ¶
type FabricNetwork interface { DeployChaincode(chaincode *topology.ChannelChaincode) DefaultIdemixOrgMSPDir() string Topology() *topology.Topology PeerChaincodeAddress(peerName string) string PeerOrgs() []*fabric.Org OrgMSPID(orgName string) string PeersByOrg(fabricHost string, orgName string, includeAll bool) []*fabric.Peer UserByOrg(organization string, user string) *fabric.User UsersByOrg(organization string) []*fabric.User Orderers() []*fabric.Orderer Channels() []*fabric.Channel InvokeChaincode(cc *topology.ChannelChaincode, method string, args ...[]byte) []byte ConnectionProfile(name string, ca bool) *network.ConnectionProfile }
type Identity ¶
type Identity struct { Credentials Credentials `json:"credentials"` MspId string `json:"mspId"` Type string `json:"type"` Version int `json:"version"` }
type InteropChaincode ¶
type Platform ¶
type Platform struct { Context api2.Context Topology *Topology Builder api2.Builder EventuallyTimeout time.Duration NetworkID string }
func NewPlatform ¶
func (*Platform) Fabric ¶
func (p *Platform) Fabric(relay *RelayServer) FabricNetwork
func (*Platform) FabricDriverConfigPath ¶
func (p *Platform) FabricDriverConfigPath(relay *RelayServer) string
func (*Platform) FabricDriverConnectionProfilePath ¶
func (p *Platform) FabricDriverConnectionProfilePath(relay *RelayServer) string
func (*Platform) FabricDriverDir ¶
func (p *Platform) FabricDriverDir(relay *RelayServer) string
func (*Platform) FabricDriverWalletDir ¶
func (p *Platform) FabricDriverWalletDir(relay *RelayServer) string
func (*Platform) FabricDriverWalletId ¶
func (p *Platform) FabricDriverWalletId(relay *RelayServer, id string) string
func (*Platform) GenerateArtifacts ¶
func (p *Platform) GenerateArtifacts()
func (*Platform) GenerateConfigTree ¶
func (p *Platform) GenerateConfigTree()
func (*Platform) InteropChaincodeFile ¶
func (*Platform) PrepareInteropChaincode ¶
func (p *Platform) PrepareInteropChaincode(relay *RelayServer) (*topology.ChannelChaincode, error)
func (*Platform) RelayServerConfigPath ¶
func (p *Platform) RelayServerConfigPath(relay *RelayServer) string
func (*Platform) RelayServerDir ¶
func (p *Platform) RelayServerDir(relay *RelayServer) string
func (*Platform) RelayServerInteropAccessControl ¶
func (p *Platform) RelayServerInteropAccessControl(destination *RelayServer, source *RelayServer) string
func (*Platform) RelayServerInteropDir ¶
func (p *Platform) RelayServerInteropDir(relay *RelayServer) string
func (*Platform) RelayServerInteropMembership ¶
func (p *Platform) RelayServerInteropMembership(relay *RelayServer) string
func (*Platform) RelayServerInteropVerificationPolicy ¶
func (p *Platform) RelayServerInteropVerificationPolicy(relay *RelayServer) string
func (*Platform) RunRelayFabricDriver ¶
func (*Platform) RunRelayServer ¶
type RelayServer ¶
type RelayServer struct { FabricTopology *topology.Topology `yaml:"-"` FabricTopologyName string Name string Hostname string Port uint16 `yaml:"port,omitempty"` Organization string Networks []*Network Drivers []*Driver InteropChaincode InteropChaincode }
func (*RelayServer) AddFabricNetwork ¶
func (w *RelayServer) AddFabricNetwork(ft *topology.Topology) *RelayServer
type Topology ¶
type Topology struct { TopologyName string `yaml:"name,omitempty"` TopologyType string `yaml:"type,omitempty"` Relays []*RelayServer }
func NewTopology ¶
func NewTopology() *Topology
func (*Topology) AddRelayServer ¶
func (t *Topology) AddRelayServer(ft *topology.Topology, org string) *RelayServer
Source Files ¶
Click to show internal directories.
Click to hide internal directories.