Documentation ¶
Index ¶
- Constants
- func Try(parentContext context.Context, tries int, timeoutPerTry time.Duration, ...) (err error)
- type DockerConfig
- type DockerResources
- type DockerVolumes
- type FederationNode
- type NodeAddress
- type Peer
- type PeersMap
- type ProvisionSharedNetworkInput
- type ProvisionVirtualChainInput
- type RemoveVirtualChainInput
- type Resource
- type Service
- type Services
- type Strelets
- type UpdateReverseProxyInput
- type UpdateServiceInput
- type VirtualChain
- type VirtualChainId
Constants ¶
View Source
const ( PROVISION_VCHAIN_MAX_TRIES = 5 PROVISION_VCHAIN_ATTEMPT_TIMEOUT = 30 * time.Second PROVISION_VCHAIN_RETRY_INTERVAL = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerConfig ¶
type DockerConfig struct { Image string Tag string Pull bool ContainerNamePrefix string Resources DockerResources Volumes DockerVolumes }
func (*DockerConfig) FullImageName ¶
func (c *DockerConfig) FullImageName() string
type DockerResources ¶
type DockerVolumes ¶ added in v0.15.0
In Gb with defaults of 100 and 2
type FederationNode ¶
type NodeAddress ¶
type NodeAddress string
type PeersMap ¶
type PeersMap map[NodeAddress]*Peer
type ProvisionSharedNetworkInput ¶ added in v0.14.0
type ProvisionSharedNetworkInput struct {
}type ProvisionVirtualChainInput ¶
type ProvisionVirtualChainInput struct { VirtualChain *VirtualChain Peers *PeersMap NodeAddress NodeAddress KeyPairConfig []byte `json:"-"` // Prevents key leak via log }
type RemoveVirtualChainInput ¶
type RemoveVirtualChainInput struct {
VirtualChain *VirtualChain
}
type Service ¶ added in v0.14.0
type Service struct { Port int DockerConfig DockerConfig Config map[string]interface{} Disabled bool }
func (*Service) InternalEndpoint ¶ added in v0.14.0
type Strelets ¶
type Strelets interface { ProvisionVirtualChain(ctx context.Context, input *ProvisionVirtualChainInput) error RemoveVirtualChain(ctx context.Context, input *RemoveVirtualChainInput) error UpdateReverseProxy(ctx context.Context, input *UpdateReverseProxyInput) error UpdateService(ctx context.Context, input *UpdateServiceInput) error }
func NewStrelets ¶
func NewStrelets(docker adapter.Orchestrator) Strelets
type UpdateReverseProxyInput ¶ added in v0.12.0
type UpdateReverseProxyInput struct { Chains []*VirtualChain IP string SSLOptions adapter.SSLOptions }
type UpdateServiceInput ¶ added in v0.14.0
type VirtualChain ¶
type VirtualChain struct { Id VirtualChainId HttpPort int GossipPort int DockerConfig DockerConfig Config map[string]interface{} Disabled bool }
type VirtualChainId ¶
type VirtualChainId uint32
func (VirtualChainId) String ¶
func (id VirtualChainId) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.