core

package
v0.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestReleaseManifest added in v0.0.34

func GetLatestReleaseManifest() (*types.VersionManifest, error)

func GetReleaseManifest added in v0.0.34

func GetReleaseManifest(version string) (*types.VersionManifest, error)

func ReadManifestFile added in v0.0.34

func ReadManifestFile(p string) (*types.VersionManifest, error)

func RequestWithRetry

func RequestWithRetry(method, url string, body, result interface{}) (err error)

func WriteFireflyConfig

func WriteFireflyConfig(config *FireflyConfig, filePath string) error

Types

type AdminServerConfig

type AdminServerConfig struct {
	Port      int    `yaml:"port,omitempty"`
	Address   string `yaml:"address,omitempty"`
	Enabled   bool   `yaml:"enabled,omitempty"`
	PreInit   bool   `yaml:"preinit,omitempty"`
	PublicURL string `yaml:"publicURL,omitempty"`
}

type BasicAuth

type BasicAuth struct {
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
}

type BlockchainConfig

type BlockchainConfig struct {
	Type     string          `yaml:"type,omitempty"`
	Ethereum *EthereumConfig `yaml:"ethereum,omitempty"`
	Fabric   *FabricConfig   `yaml:"fabric,omitempty"`
}

type CommonDBConfig

type CommonDBConfig struct {
	URL        string            `yaml:"url,omitempty"`
	Migrations *MigrationsConfig `yaml:"migrations,omitempty"`
}

type DataExchangeConfig

type DataExchangeConfig struct {
	Type  string              `yaml:"type,omitempty"`
	HTTPS *HttpEndpointConfig `yaml:"https,omitempty"`
}

type DatabaseConfig

type DatabaseConfig struct {
	Type       string          `yaml:"type,omitempty"`
	PostgreSQL *CommonDBConfig `yaml:"postgres,omitempty"`
	SQLite3    *CommonDBConfig `yaml:"sqlite3,omitempty"`
}

type EthconnectConfig

type EthconnectConfig struct {
	URL                 string     `yaml:"url,omitempty"`
	Instance            string     `yaml:"instance,omitempty"`
	Topic               string     `yaml:"topic,omitempty"`
	SkipEventStreamInit bool       `yaml:"skipEventstreamInit,omitempty"`
	Auth                *BasicAuth `yaml:"auth,omitempty"`
}

type EthereumConfig

type EthereumConfig struct {
	Ethconnect *EthconnectConfig `yaml:"ethconnect,omitempty"`
}

type FabconnectConfig added in v0.0.36

type FabconnectConfig struct {
	URL                 string `yaml:"url,omitempty"`
	Channel             string `yaml:"channel,omitempty"`
	Chaincode           string `yaml:"chaincode,omitempty"`
	Topic               string `yaml:"topic,omitempty"`
	Signer              string `yaml:"signer,omitempty"`
	SkipEventStreamInit bool   `yaml:"skipEventstreamInit,omitempty"`
}

type FabricConfig added in v0.0.36

type FabricConfig struct {
	Fabconnect *FabconnectConfig `yaml:"fabconnect,omitempty"`
}

type FireflyConfig

type FireflyConfig struct {
	Log          *LogConfig           `yaml:"log,omitempty"`
	Debug        *HttpServerConfig    `yaml:"debug,omitempty"`
	HTTP         *HttpServerConfig    `yaml:"http,omitempty"`
	Admin        *AdminServerConfig   `yaml:"admin,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"`
	Tokens       *TokensConfig        `yaml:"tokens,omitempty"`
}

func NewFireflyConfig added in v0.0.32

func NewFireflyConfig(stack *types.Stack, member *types.Member) *FireflyConfig

func ReadFireflyConfig

func ReadFireflyConfig(filePath string) (*FireflyConfig, error)

type FireflyIPFSConfig

type FireflyIPFSConfig struct {
	API     *HttpEndpointConfig `yaml:"api,omitempty"`
	Gateway *HttpEndpointConfig `yaml:"gateway,omitempty"`
}

type HttpEndpointConfig

type HttpEndpointConfig struct {
	URL  string    `yaml:"url,omitempty"`
	Auth BasicAuth `yaml:"auth,omitempty"`
}

type HttpServerConfig

type HttpServerConfig struct {
	Port      int    `yaml:"port,omitempty"`
	Address   string `yaml:"address,omitempty"`
	PublicURL string `yaml:"publicURL,omitempty"`
}

type LogConfig

type LogConfig struct {
	Level string `yaml:"level,omitempty"`
}

type MigrationsConfig

type MigrationsConfig struct {
	Auto      bool   `yaml:"auto,omitempty"`
	Directory string `yaml:"directory,omitempty"`
}

type NodeConfig

type NodeConfig struct {
	Name string `yaml:"name,omitempty"`
}

type OrgConfig

type OrgConfig struct {
	Name     string `yaml:"name,omitempty"`
	Identity string `yaml:"identity,omitempty"`
}

type PublicStorageConfig

type PublicStorageConfig struct {
	Type string             `yaml:"type,omitempty"`
	IPFS *FireflyIPFSConfig `yaml:"ipfs,omitempty"`
}

type TokenConnector

type TokenConnector struct {
	Plugin string `yaml:"plugin,omitempty"`
	Name   string `yaml:"name,omitempty"`
	URL    string `yaml:"url,omitempty"`
}

type TokensConfig

type TokensConfig []*TokenConnector

type UIConfig

type UIConfig struct {
	Path string `yaml:"path,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL