Documentation ¶
Index ¶
- Variables
- func CheckExists(stackName string) bool
- func InitStack(stackName string, memberCount int)
- func NewFireflyConfigs(stack *Stack) map[string]*FireflyConfig
- func WriteSwarmKey(path string)
- type BasicAuth
- type BlockchainConfig
- type DatabaseConfig
- type DependsOn
- type DockerCompose
- type EthconnectConfig
- type FireflyConfig
- type HealthCheck
- type HttpConfig
- type LogConfig
- type LoggingConfig
- type NodeConfig
- type P2PFSConfig
- type Service
- type Stack
Constants ¶
This section is empty.
Variables ¶
View Source
var StacksDir = path.Join(homeDir, ".firefly", "stacks")
Functions ¶
func CheckExists ¶
func NewFireflyConfigs ¶
func NewFireflyConfigs(stack *Stack) map[string]*FireflyConfig
func WriteSwarmKey ¶
func WriteSwarmKey(path string)
Types ¶
type BlockchainConfig ¶
type BlockchainConfig struct { Type string `yaml:"type,omitempty"` Ethconnect *EthconnectConfig `yaml:"ethconnect,omitempty"` }
type DatabaseConfig ¶
type DockerCompose ¶
type DockerCompose struct { Version string `yaml:"version,omitempty"` Services map[string]*Service `yaml:"services,omitempty"` }
func CreateDockerCompose ¶
func CreateDockerCompose(stack *Stack) *DockerCompose
type EthconnectConfig ¶
type FireflyConfig ¶
type FireflyConfig struct { Log *LogConfig `yaml:"log,omitempty"` Debug *HttpConfig `yaml:"debug,omitempty"` HTTP *HttpConfig `yaml:"http,omitempty"` Node *NodeConfig `yaml:"node,omitempty"` Blockchain *BlockchainConfig `yaml:"blockchain,omitempty"` Database *DatabaseConfig `yaml:"database,omitempty"` P2PFS *P2PFSConfig `yaml:"p2pfs,omitempty"` }
type HealthCheck ¶
type HttpConfig ¶
type LoggingConfig ¶
type NodeConfig ¶
type NodeConfig struct {
Identity string `yaml:"identity,omitempty"`
}
type P2PFSConfig ¶
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"` }
Click to show internal directories.
Click to hide internal directories.