Documentation ¶
Index ¶
- Constants
- Variables
- func NewPlatformFactory() *platformFactory
- func Options(o *node.Options) *opts.Options
- func WithRole(role string) node.Option
- type DB
- type HelperConfig
- type Identity
- type InitConfig
- type Platform
- func (p *Platform) Cleanup()
- func (p *Platform) DeleteVault(id string)
- func (p *Platform) FSCNodeVaultDir(uniqueName string) string
- func (p *Platform) GenerateArtifacts()
- func (p *Platform) GenerateConfigTree()
- func (p *Platform) HelperConfigPath() string
- func (p *Platform) InitOrionServer() error
- func (p *Platform) KeyPath(role string) string
- func (p *Platform) Load()
- func (p *Platform) Members() []grouper.Member
- func (p *Platform) Name() string
- func (p *Platform) PemPath(role string) string
- func (p *Platform) PostRun(load bool)
- func (p *Platform) ServerID() string
- func (p *Platform) ServerUrl() string
- func (p *Platform) StartOrionServer()
- func (p *Platform) Type() string
- type Topology
Constants ¶
View Source
const ( Port = network.HostPort PeerPortID = "peer" OrdererPortID = "orderer" )
View Source
const ExtensionTemplate = `` /* 358-byte string literal not displayed */
View Source
const ServerImage = "orionbcdb/orion-server:latest"
View Source
const (
TopologyName = "orion"
)
Variables ¶
View Source
var RequiredImages = []string{ServerImage}
Functions ¶
func NewPlatformFactory ¶
func NewPlatformFactory() *platformFactory
Types ¶
type HelperConfig ¶ added in v0.4.0
type HelperConfig struct {
*InitConfig `yaml:"init"`
}
func ReadHelperConfig ¶ added in v0.4.0
func ReadHelperConfig(configPath string) (*HelperConfig, error)
type InitConfig ¶ added in v0.4.0
type InitConfig struct { ServerUrl string `yaml:"serverUrl"` CACertPath string `yaml:"caCertPath"` ServerID string `yaml:"serverID"` AdminID string `yaml:"adminID"` AdminCertPath string `yaml:"adminCertPath"` AdminPrivateKeyPath string `yaml:"adminPrivateKeyPath"` CertPaths map[string]string `yaml:"certPaths"` DBs []DB `yaml:"dbs"` }
func (*InitConfig) CreateDBInstance ¶ added in v0.4.0
func (p *InitConfig) CreateDBInstance() (bcdb.BCDB, error)
func (*InitConfig) CreateUserSession ¶ added in v0.4.0
func (*InitConfig) Init ¶ added in v0.4.0
func (p *InitConfig) Init() error
type Platform ¶
type Platform struct { Context api2.Context Topology *Topology Builder api2.Builder EventuallyTimeout time.Duration NetworkID string // contains filtered or unexported fields }
func Network ¶
Network returns the orion network from the passed context bound to the passed id. It returns nil, if nothing is found
func NewPlatform ¶
func (*Platform) DeleteVault ¶
func (*Platform) FSCNodeVaultDir ¶
func (*Platform) GenerateArtifacts ¶
func (p *Platform) GenerateArtifacts()
func (*Platform) GenerateConfigTree ¶
func (p *Platform) GenerateConfigTree()
func (*Platform) HelperConfigPath ¶ added in v0.4.0
func (*Platform) InitOrionServer ¶
func (*Platform) StartOrionServer ¶
func (p *Platform) StartOrionServer()
Click to show internal directories.
Click to hide internal directories.