Documentation
¶
Index ¶
- Variables
- func CheckExists(stackName string) (bool, error)
- func GenerateKeyAndPeerId() (privateKey string, peerId string)
- func GenerateSwarmKey() string
- func InitStack(stackName string, memberCount int) error
- func NewFireflyConfigs(stack *Stack) map[string]*FireflyConfig
- func WriteFireflyConfig(config *FireflyConfig, filePath string) error
- type BasicAuth
- type BlockchainConfig
- type DataExchangeConfig
- type DataExchangeListenerConfig
- type DataExchangePeerConfig
- type DatabaseConfig
- type DependsOn
- type DockerComposeConfig
- type EthconnectConfig
- type EthereumConfig
- type FireflyConfig
- type FireflyIPFSConfig
- type HealthCheck
- type HttpEndpointConfig
- type HttpServerConfig
- type LogConfig
- type LoggingConfig
- type Member
- type MigrationsConfig
- type NodeConfig
- type OrgConfig
- type PeerConfig
- type PostgresConfig
- type PublicStorageConfig
- type Service
- type Stack
- type UIConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var StacksDir = path.Join(homeDir, ".firefly", "stacks")
Functions ¶
func CheckExists ¶
func GenerateKeyAndPeerId ¶
func GenerateSwarmKey ¶
func GenerateSwarmKey() string
func NewFireflyConfigs ¶
func NewFireflyConfigs(stack *Stack) map[string]*FireflyConfig
func WriteFireflyConfig ¶ added in v0.0.5
func WriteFireflyConfig(config *FireflyConfig, filePath string) error
Types ¶
type BlockchainConfig ¶
type BlockchainConfig struct {
Type string `yaml:"type,omitempty"`
Ethereum *EthereumConfig `yaml:"ethereum,omitempty"`
}
type DataExchangeConfig ¶ added in v0.0.10
type DataExchangeConfig struct {
Type string `yaml:"type,omitempty"`
HTTPS *HttpEndpointConfig `yaml:"https,omitempty"`
}
type DataExchangeListenerConfig ¶ added in v0.0.10
type DataExchangePeerConfig ¶ added in v0.0.10
type DataExchangePeerConfig struct {
API *DataExchangeListenerConfig `json:"api,omitempty"`
P2P *DataExchangeListenerConfig `json:"p2p,omitempty"`
Peers []*PeerConfig `json:"peers"`
}
type DatabaseConfig ¶
type DatabaseConfig struct {
Type string `yaml:"type,omitempty"`
Postgres *PostgresConfig `yaml:"postgres,omitempty"`
}
type DockerComposeConfig ¶
type DockerComposeConfig struct {
Version string `yaml:"version,omitempty"`
Services map[string]*Service `yaml:"services,omitempty"`
}
func CreateDockerCompose ¶
func CreateDockerCompose(stack *Stack) *DockerComposeConfig
type EthconnectConfig ¶
type EthereumConfig ¶
type EthereumConfig struct {
Ethconnect *EthconnectConfig `yaml:"ethconnect,omitempty"`
}
type FireflyConfig ¶
type FireflyConfig struct {
Log *LogConfig `yaml:"log,omitempty"`
Debug *HttpServerConfig `yaml:"debug,omitempty"`
HTTP *HttpServerConfig `yaml:"http,omitempty"`
UI *UIConfig `yaml:"ui,omitempty"`
Node *NodeConfig `yaml:"node,omitempty"`
Org *OrgConfig `yaml:"org,omitempty"`
Blockchain *BlockchainConfig `yaml:"blockchain,omitempty"`
Database *DatabaseConfig `yaml:"database,omitempty"`
P2PFS *PublicStorageConfig `yaml:"publicstorage,omitempty"`
DataExchange *DataExchangeConfig `yaml:"dataexchange,omitempty"`
}
func ReadFireflyConfig ¶ added in v0.0.5
func ReadFireflyConfig(filePath string) (*FireflyConfig, error)
type FireflyIPFSConfig ¶
type FireflyIPFSConfig struct {
API *HttpEndpointConfig `yaml:"api,omitempty"`
Gateway *HttpEndpointConfig `yaml:"gateway,omitempty"`
}
type HealthCheck ¶
type HttpEndpointConfig ¶
type HttpServerConfig ¶
type LoggingConfig ¶
type Member ¶
type Member struct {
ID string `json:"id,omitempty"`
Index *int `json:"index,omitempty"`
Address string `json:"address,omitempty"`
PrivateKey string `json:"privateKey,omitempty"`
ExposedFireflyPort int `json:"exposedFireflyPort,omitempty"`
ExposedEthconnectPort int `json:"exposedEthconnectPort,omitempty"`
ExposedPostgresPort int `json:"exposedPostgresPort,omitempty"`
ExposedDataexchangePort int `json:"exposedDataexchangePort,omitempty"`
ExposedIPFSApiPort int `json:"exposedIPFSApiPort,omitempty`
ExposedIPFSGWPort int `json:"exposedIPFSGWPort,omitempty`
ExposedUIPort int `json:"exposedUiPort ,omitempty"`
}
type MigrationsConfig ¶
type NodeConfig ¶
type NodeConfig struct {
Name string `yaml:"name,omitempty"`
}
type PeerConfig ¶ added in v0.0.10
type PostgresConfig ¶
type PostgresConfig struct {
URL string `yaml:"url,omitempty"`
Migrations *MigrationsConfig `yaml:"migrations,omitempty"`
}
type PublicStorageConfig ¶
type PublicStorageConfig struct {
Type string `yaml:"type,omitempty"`
IPFS *FireflyIPFSConfig `yaml:"ipfs,omitempty"`
}
type Service ¶
type Service struct {
Image string `yaml:"image,omitempty"`
Command string `yaml:"command,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
Volumes []string `yaml:"volumes,omitempty"`
Ports []string `yaml:"ports,omitempty"`
DependsOn map[string]map[string]string `yaml:"depends_on,omitempty"`
HealthCheck *HealthCheck `yaml:"healthcheck,omitempty"`
Logging *LoggingConfig `yaml:"logging,omitempty"`
}
type Stack ¶
type Stack struct {
Name string `json:"name,omitempty"`
Members []*Member `json:"members,omitempty"`
SwarmKey string `json:"swarmKey,omitempty"`
}
func (*Stack) GenerateDataExchangeHTTPSConfig ¶ added in v0.0.10
func (s *Stack) GenerateDataExchangeHTTPSConfig(memberId string) *DataExchangePeerConfig
func (*Stack) RemoveStack ¶ added in v0.0.10
func (*Stack) ResetStack ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.