Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- func GetEndpoints(clusterInfo *rpcpb.ClusterInfo) []string
- func SetDefaultSnapshot(snapshotsDir string, force bool) error
- type Deployer
- func (d *Deployer) BackendStartedHere() bool
- func (d *Deployer) DeployToLocalNetwork(chain string, chainGenesis string) error
- func (d *Deployer) SetupLocalEnv() (string, string, error)
- func (d *Deployer) StartServer() error
- func (d *Deployer) WaitForHealthy(ctx context.Context, cli client.Client, healthCheckInterval time.Duration) (*rpcpb.ClusterInfo, error)
Constants ¶
const (
WriteReadReadPerms = 0o644
)
Variables ¶
This section is empty.
Functions ¶
func GetEndpoints ¶ added in v0.1.4
func GetEndpoints(clusterInfo *rpcpb.ClusterInfo) []string
GetEndpoints get a human readable list of endpoints from clusterinfo
func SetDefaultSnapshot ¶ added in v0.1.4
Initialize default snapshot with bootstrap snapshot archive If force flag is set to true, overwrite the default snapshot if it exists
Types ¶
type Deployer ¶ added in v0.1.3
type Deployer struct {
// contains filtered or unexported fields
}
func NewLocalDeployer ¶ added in v0.1.3
func NewLocalDeployer(app *application.Avalanche) *Deployer
func (*Deployer) BackendStartedHere ¶ added in v0.1.3
BackendStartedHere returns true if the backend was started by this run, or false if it found it there already
func (*Deployer) DeployToLocalNetwork ¶ added in v0.1.3
DeployToLocalNetwork does the heavy lifting: * it checks the gRPC is running, if not, it starts it * kicks off the actual deployment
func (*Deployer) SetupLocalEnv ¶ added in v0.1.4
SetupLocalEnv also does some heavy lifting: * sets up default snapshot if not installed * checks if avalanchego is installed in the local binary path * if not, it downloads it and installs it (os - and archive dependent) * returns the location of the avalanchego path and plugin