Documentation ¶
Index ¶
- Variables
- func GenerateDockerServiceDefinitions(s *types.Stack) []*docker.ServiceDefinition
- func WriteCryptogenConfig(memberCount int, path string) error
- func WriteNetworkConfig(outputPath string) error
- type Account
- type BCCSP
- type BCCSPSecurity
- type CA
- type Channel
- type ChannelPeer
- type Client
- type CredentialStore
- type CryptogenConfig
- type FabricNetworkConfig
- type FabricProvider
- func (p *FabricProvider) CreateAccount(args []string) (interface{}, error)
- func (p *FabricProvider) DeployContract(filename, contractName, instanceName string, member *types.Organization, ...) (*types.ContractDeploymentResult, error)
- func (p *FabricProvider) DeployFireFlyContract() (*types.ContractDeploymentResult, error)
- func (p *FabricProvider) FirstTimeSetup() error
- func (p *FabricProvider) GetBlockchainPluginConfig(stack *types.Stack, m *types.Organization) (blockchainConfig *types.BlockchainConfig)
- func (p *FabricProvider) GetConnectorExternalURL(org *types.Organization) string
- func (p *FabricProvider) GetConnectorName() string
- func (p *FabricProvider) GetConnectorURL(org *types.Organization) string
- func (p *FabricProvider) GetContracts(filename string, extraArgs []string) ([]string, error)
- func (p *FabricProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition
- func (p *FabricProvider) GetOrgConfig(stack *types.Stack, m *types.Organization) (orgConfig *types.OrgConfig)
- func (p *FabricProvider) ParseAccount(account interface{}) interface{}
- func (p *FabricProvider) PostStart(firstTimeSetup bool) error
- func (p *FabricProvider) PreStart() error
- func (p *FabricProvider) Reset() error
- func (p *FabricProvider) WriteConfig(options *types.InitOptions) error
- type InstalledChaincode
- type Logging
- type NetworkEntity
- type Org
- type Organization
- type Path
- type Provider
- type QueryInstalledResponse
- type Registrar
- type Spec
- type TLSCerts
- type TLSCertsClient
- type Template
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var FabricCAImageName = "hyperledger/fabric-ca:1.5"
View Source
var FabricOrdererImageName = "hyperledger/fabric-orderer:2.5"
View Source
var FabricPeerImageName = "hyperledger/fabric-peer:2.5"
View Source
var FabricToolsImageName = "hyperledger/fabric-tools:2.5.6"
Note: Any change of image tag should be checked if it is published in arm64 format. Refer to this commit for when arm64 support was added and the code workaround was removed: https://github.com/hyperledger/firefly-cli/pull/323/commits/71237b73b07bfee72b355dea83af9cd874b2a2de
Functions ¶
func GenerateDockerServiceDefinitions ¶
func GenerateDockerServiceDefinitions(s *types.Stack) []*docker.ServiceDefinition
func WriteCryptogenConfig ¶
func WriteNetworkConfig ¶
Types ¶
type BCCSP ¶
type BCCSP struct {
Security *BCCSPSecurity `yaml:"security,omitempty"`
}
type BCCSPSecurity ¶
type Channel ¶
type Channel struct { Orderers []string `yaml:"orderers,omitempty"` Peers map[string]*ChannelPeer `yaml:"peers,omitempty"` }
type ChannelPeer ¶
type Client ¶
type Client struct { BCCSP *BCCSP `yaml:"BCCSP,omitempty"` CredentialStore *CredentialStore `yaml:"credentialStore"` CryptoConfig *Path `yaml:"cryptoconfig,omitempty"` Logging *Logging `yaml:"logging,omitempty"` Organization string `yaml:"organization,omitempty"` TLSCerts *TLSCerts `yaml:"tlsCerts,omitempty"` }
type CredentialStore ¶
type CryptogenConfig ¶
type FabricNetworkConfig ¶
type FabricNetworkConfig struct { CertificateAuthorities map[string]*NetworkEntity `yaml:"certificateAuthorities,omitempty"` Channels map[string]*Channel `yaml:"channels,omitempty"` Client *Client `yaml:"client,omitempty"` Organization string `yaml:"organization,omitempty"` Orderers map[string]*NetworkEntity `yaml:"orderers,omitempty"` Organizations map[string]*Organization `yaml:"organizations,omitempty"` Peers map[string]*NetworkEntity `yaml:"peers,omitempty"` Version string `yaml:"version,omitempty"` }
type FabricProvider ¶
type FabricProvider struct {
// contains filtered or unexported fields
}
func NewFabricProvider ¶ added in v1.1.0
func NewFabricProvider(ctx context.Context, stack *types.Stack) *FabricProvider
func (*FabricProvider) CreateAccount ¶ added in v0.0.47
func (p *FabricProvider) CreateAccount(args []string) (interface{}, error)
func (*FabricProvider) DeployContract ¶ added in v0.0.45
func (p *FabricProvider) DeployContract(filename, contractName, instanceName string, member *types.Organization, extraArgs []string) (*types.ContractDeploymentResult, error)
func (*FabricProvider) DeployFireFlyContract ¶ added in v0.0.47
func (p *FabricProvider) DeployFireFlyContract() (*types.ContractDeploymentResult, error)
func (*FabricProvider) FirstTimeSetup ¶
func (p *FabricProvider) FirstTimeSetup() error
func (*FabricProvider) GetBlockchainPluginConfig ¶ added in v1.1.0
func (p *FabricProvider) GetBlockchainPluginConfig(stack *types.Stack, m *types.Organization) (blockchainConfig *types.BlockchainConfig)
func (*FabricProvider) GetConnectorExternalURL ¶ added in v1.1.0
func (p *FabricProvider) GetConnectorExternalURL(org *types.Organization) string
func (*FabricProvider) GetConnectorName ¶ added in v1.1.0
func (p *FabricProvider) GetConnectorName() string
func (*FabricProvider) GetConnectorURL ¶ added in v1.1.0
func (p *FabricProvider) GetConnectorURL(org *types.Organization) string
func (*FabricProvider) GetContracts ¶ added in v0.0.45
func (p *FabricProvider) GetContracts(filename string, extraArgs []string) ([]string, error)
func (*FabricProvider) GetDockerServiceDefinitions ¶
func (p *FabricProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition
func (*FabricProvider) GetOrgConfig ¶ added in v1.1.0
func (p *FabricProvider) GetOrgConfig(stack *types.Stack, m *types.Organization) (orgConfig *types.OrgConfig)
func (*FabricProvider) ParseAccount ¶ added in v0.0.47
func (p *FabricProvider) ParseAccount(account interface{}) interface{}
func (*FabricProvider) PostStart ¶
func (p *FabricProvider) PostStart(firstTimeSetup bool) error
func (*FabricProvider) PreStart ¶
func (p *FabricProvider) PreStart() error
func (*FabricProvider) Reset ¶
func (p *FabricProvider) Reset() error
func (*FabricProvider) WriteConfig ¶
func (p *FabricProvider) WriteConfig(options *types.InitOptions) error
type InstalledChaincode ¶
type NetworkEntity ¶
type Organization ¶
type QueryInstalledResponse ¶
type QueryInstalledResponse struct {
InstalledChaincodes []*InstalledChaincode `json:"installed_chaincodes"`
}
type TLSCerts ¶
type TLSCerts struct {
Client *TLSCertsClient `yaml:"client,omitempty"`
}
type TLSCertsClient ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.