Documentation
¶
Index ¶
- Constants
- func GetLogger(flags *Flags) (log.Logger, error)
- func GetVcidFromServiceName(serviceName string) int64
- type DockerConfig
- type DockerResources
- type DockerVolumes
- type FederationNode
- type Flags
- type KeyConfig
- type MutableNodeConfiguration
- type NodeAddress
- type NodeConfiguration
- type Peer
- type Resource
- type Service
- type Services
- type VirtualChain
- type VirtualChainConfig
- type VirtualChainId
Constants ¶
View Source
const DEFAULT_TRUNCATE_WINDOW = 7 * 24 * time.Hour // 1 week
View Source
const SIGNER = "signer"
Variables ¶
This section is empty.
Functions ¶
func GetVcidFromServiceName ¶ added in v1.0.0
Types ¶
type DockerConfig ¶ added in v1.0.0
type DockerConfig struct { Image string Tag string Pull bool ContainerNamePrefix string Resources DockerResources Volumes DockerVolumes }
func (*DockerConfig) FullImageName ¶ added in v1.0.0
func (c *DockerConfig) FullImageName() string
type DockerResources ¶ added in v1.0.0
type DockerVolumes ¶ added in v1.0.0
In Gb with defaults of 100 and 2
type FederationNode ¶ added in v1.0.0
type Flags ¶
type Flags struct { ConfigUrl string KeyPairConfigPath string SSLCertificatePath string SSLPrivateKeyPath string PollingInterval time.Duration Timeout time.Duration MaxReloadTimeDelay time.Duration BootstrapResetTimeout time.Duration EthereumEndpoint string LoggerHttpEndpoint string LogFilePath string StatusFilePath string MetricsFilePath string OrchestratorOptions string ManagementConfig string // Autoupdate AutoUpdate bool ShutdownAfterUpdate bool BoyarBinaryPath string // Testing only WithNamespace bool }
type KeyConfig ¶ added in v0.14.0
func NewKeysConfig ¶ added in v0.14.0
type MutableNodeConfiguration ¶
type MutableNodeConfiguration interface { NodeConfiguration SetEthereumEndpoint(ethereumEndpoint string) MutableNodeConfiguration SetOrchestratorOptions(options *adapter.OrchestratorOptions) MutableNodeConfiguration SetSSLOptions(options adapter.SSLOptions) MutableNodeConfiguration UpdateDefaultServiceConfig() MutableNodeConfiguration }
type NodeAddress ¶ added in v1.0.0
type NodeAddress string
func (NodeAddress) ShortID ¶ added in v1.0.0
func (n NodeAddress) ShortID() string
type NodeConfiguration ¶
type NodeConfiguration interface { FederationNodes() []*FederationNode Chains() []*VirtualChain OrchestratorOptions() *adapter.OrchestratorOptions KeyConfigPath() string KeyConfig() KeyConfig ReloadTimeDelay(maxDelay time.Duration) time.Duration EthereumEndpoint() string NodeAddress() NodeAddress SSLOptions() adapter.SSLOptions Services() Services NamespacedContainerName(name string) string VerifyConfig() error Hash() string }
func GetConfiguration ¶
func GetConfiguration(flags *Flags) (NodeConfiguration, error)
type Services ¶ added in v1.0.0
func (Services) Management ¶ added in v1.0.0
type VirtualChain ¶ added in v1.0.0
type VirtualChain struct { Service Id VirtualChainId InternalHttpPort int // FIXME should be deprecated as vchain specific }
func (*VirtualChain) GetContainerName ¶ added in v1.0.0
func (v *VirtualChain) GetContainerName() string
func (*VirtualChain) GetSerializedConfig ¶ added in v1.0.0
func (c *VirtualChain) GetSerializedConfig() []byte
type VirtualChainConfig ¶ added in v1.0.0
type VirtualChainConfig struct { VirtualChain *VirtualChain Topology []*FederationNode NodeAddress NodeAddress KeyPairConfig []byte `json:"-"` // Prevents key leak via log }
type VirtualChainId ¶ added in v1.0.0
type VirtualChainId uint32
func (VirtualChainId) String ¶ added in v1.0.0
func (id VirtualChainId) String() string
Click to show internal directories.
Click to hide internal directories.