-
Notifications
You must be signed in to change notification settings - Fork 1
/
plant.txt
109 lines (78 loc) · 2.47 KB
/
plant.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
@startuml
namespace blockchain {
interface IProvider {
+ Init( string) error
+ Create() error
}
}
namespace conf {
class InitializationOptions << (S,Aquamarine) >> {
+ NumberOfMembers int
+ UserId string
+ ConfigurationFile string
+ BlockchainType types.BlockchainProvider
+ OrgNames []string
+ NodeNames []string
+ ServicesPort int
}
}
namespace deployer {
interface IDeployer {
+ GenerateFiles( *types.Network, string) error
}
}
namespace docker {
class DockerComposeConfig << (S,Aquamarine) >> {
+ Version string
+ Services <font color=blue>map</font>[string]*Service
+ Volumes <font color=blue>map</font>[string]<font color=blue>struct</font>{}
}
}
namespace enablerplatform {
class EnablerPlatformManager << (S,Aquamarine) >> {
- logger *zerolog.Logger
+ UserId string
+ Enablers []*types.Network
+ Options *conf.InitializationOptions
- writePlatformInfo(enabler *types.Network) error
- ensureDirectories(s *types.Network) error
- getBlockchainProvider(enabler *types.Network) blockchain.IProvider
+ InitEnablerPlatform(userId string, numberOfMembers int, initOptions *conf.InitializationOptions) error
+ GetCurrentCount(s string) int
}
}
namespace fabric {
class FabricDefinition << (S,Aquamarine) >> {
+ Logger *zerolog.Logger
+ Enabler *types.Network
+ DeployerType string
+ Deployer deployer.IDeployer
- writeConfigs(userId string) error
- generateGenesisBlock(userId string) error
+ Init(userId string) error
+ Create() error
+ GetDockerServiceDefinitions() []*docker.ServiceDefinition
}
class FabricDocker << (S,Aquamarine) >> {
+ Deploy()
+ GenerateFiles(enabler *types.Network, userId string) error
}
}
"blockchain.IProvider" <|-- "fabric.FabricDefinition"
"deployer.IDeployer" <|-- "fabric.FabricDocker"
namespace types {
class BlockchainProvider << (S,Aquamarine) >> {
+ String() string
}
class Network << (S,Aquamarine) >> {
+ NetworkName string
+ Members []*Member
+ ExposedBlockchainPort int
+ BlockchainProvider string
+ InterfaceProvider blockchain.IProvider
}
class types.BlockchainProvider << (T, #FF7700) >> {
}
}
"__builtin__.int" #.. "types.BlockchainProvider"
@enduml