Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- func AddPermissionlessDelegator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)
- func AddPermissionlessValidator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)
- func ApplyUpgradeLocal(subnetName string) (string, error)
- func ApplyUpgradeToPublicNode(subnetName, avagoChainConfDir string) (string, error)
- func CleanNetwork()
- func CleanNetworkHard()
- func ConfigMetrics()
- func ConfigureChainConfig(subnetName string, genesisPath string)
- func ConfigurePerNodeChainConfig(subnetName string, perNodeChainConfigPath string)
- func CreateCustomVMConfig(subnetName string, genesisPath string, vmPath string)
- func CreateKey(keyName string) (string, error)
- func CreateKeyForce(keyName string) (string, error)
- func CreateKeyFromPath(keyName string, keyPath string) (string, error)
- func CreateSubnetEvmConfig(subnetName string, genesisPath string) (string, string)
- func CreateSubnetEvmConfigWithVersion(subnetName string, genesisPath string, version string)
- func DeleteE2ECluster()
- func DeleteE2EInventory()
- func DeleteElasticSubnetConfig(subnetName string)
- func DeleteKey(keyName string) (string, error)
- func DeleteNode(nodeID string)
- func DeleteSubnetConfig(subnetName string)
- func DeploySubnetLocally(subnetName string) string
- func DeploySubnetLocallyExpectError(subnetName string)
- func DeploySubnetLocallyWithArgs(subnetName string, version string, confPath string) string
- func DeploySubnetLocallyWithArgsAndOutput(subnetName string, version string, confPath string) ([]byte, error)
- func DeploySubnetLocallyWithArgsExpectError(subnetName string, version string, confPath string)
- func DeploySubnetLocallyWithVersion(subnetName string, version string) string
- func DeploySubnetLocallyWithViperConf(subnetName string, confPath string) string
- func DescribeSubnet(subnetName string) (string, error)
- func ExportKey(keyName string) (string, error)
- func ExportKeyToFile(keyName string, outputPath string) (string, error)
- func GetLatestAvagoVersionFromGithub() string
- func GetVersion() string
- func ImportSubnetConfig(repoAlias string, subnetName string)
- func ImportSubnetConfigFromURL(repoURL string, branch string, subnetName string)
- func ImportUpgradeBytes(subnetName, filepath string) (string, error)
- func KeyTransferReceive(keyName string, amount string, recoveryStep string) (string, error)
- func KeyTransferSend(keyName string, targetAddr string, amount string) (string, error)
- func ListKeys(network string, omitCChain bool, useNanoAvax bool) (string, error)
- func ListValidators(subnetName string, network string) (string, error)
- func NodeCreate(network, version string, numNodes int, separateMonitoring bool, ...) string
- func NodeDevnet(numNodes int, numAPINodes int) string
- func NodeExport(filename string, withSecrets bool) string
- func NodeImport(filename string, clusterName string) string
- func NodeList() string
- func NodeSSH(name, command string) string
- func NodeStatus() string
- func NodeUpgrade() string
- func NodeWhitelistSSH(sshPubKey string) string
- func RemoveValidator(subnetName string, nodeID string) (string, error)
- func SimulateFujiAddPermissionlessValidator(subnetName string, key string, nodeID string, stakeAmount string, ...) (string, error)
- func SimulateFujiAddValidator(subnetName string, key string, nodeID string, start string, period string, ...) string
- func SimulateFujiDeploy(subnetName string, key string, controlKeys string) string
- func SimulateFujiJoin(subnetName string, avalanchegoConfig string, pluginDir string, nodeID string) string
- func SimulateFujiRemoveValidator(subnetName string, key string, nodeID string) string
- func SimulateFujiTransformSubnet(subnetName string, key string) (string, error)
- func SimulateGetSubnetStatsFuji(subnetName, subnetID string) string
- func SimulateMainnetAddValidator(subnetName string, nodeID string, start string, period string, weight string) string
- func SimulateMainnetDeploy(subnetName string, mainnetChainID int, errorIsExpected bool) string
- func SimulateMainnetJoin(subnetName string, avalanchegoConfig string, pluginDir string, nodeID string) string
- func SimulateMultisigMainnetDeploy(subnetName string, subnetControlAddrs []string, ...) string
- func StartNetwork() string
- func StartNetworkWithVersion(version string) string
- func StopNetwork()
- func TransactionCommit(subnetName string, txPath string, errorIsExpected bool) string
- func TransactionSignWithLedger(subnetName string, txPath string, errorIsExpected bool) string
- func TransformElasticSubnetLocally(subnetName string) (string, error)
- func TransformElasticSubnetLocallyandTransformValidators(subnetName string, stakeAmount string) (string, error)
- func UpgradeCustomVM(subnetName string, binaryPath string) (string, error)
- func UpgradeCustomVMLocal(subnetName string, binaryPath string) string
- func UpgradeVMConfig(subnetName string, targetVersion string) (string, error)
- func UpgradeVMLocal(subnetName string, targetVersion string) string
- func UpgradeVMPublic(subnetName string, targetVersion string, pluginDir string) (string, error)
- type PrometheusConfig
- type ScrapeConfig
- type StaticConfig
Constants ¶
const ( CLIBinary = "./bin/avalanche" SubnetCmd = "subnet" NetworkCmd = "network" KeyCmd = "key" UpgradeCmd = "upgrade" ElasticTransformCmd = "elastic" JoinCmd = "join" RemoveValidatorCmd = "removeValidator" AddPermissionlessDelegatorCmd = "addPermissionlessDelegator" )
const ( ExpectFail = false ExpectSuccess = true )
Variables ¶
This section is empty.
Functions ¶
func AddPermissionlessDelegator ¶ added in v1.2.4
func AddPermissionlessValidator ¶ added in v1.2.1
func ApplyUpgradeLocal ¶ added in v1.1.0
#nosec G204
func ApplyUpgradeToPublicNode ¶ added in v1.1.1
#nosec G204
func ConfigMetrics ¶ added in v1.4.0
func ConfigMetrics()
func ConfigureChainConfig ¶ added in v1.0.2
#nosec G204
func ConfigurePerNodeChainConfig ¶ added in v1.0.4
#nosec G204
func CreateCustomVMConfig ¶ added in v0.2.3
#nosec G204
func CreateKeyForce ¶ added in v0.2.0
#nosec G204
func CreateKeyFromPath ¶ added in v0.2.0
#nosec G204
func CreateSubnetEvmConfig ¶ added in v0.2.3
#nosec G204
func CreateSubnetEvmConfigWithVersion ¶ added in v0.2.3
#nosec G204
func DeleteE2ECluster ¶ added in v1.4.0
func DeleteE2ECluster()
func DeleteE2EInventory ¶ added in v1.4.0
func DeleteE2EInventory()
func DeleteElasticSubnetConfig ¶ added in v1.2.0
func DeleteElasticSubnetConfig(subnetName string)
func DeleteNode ¶ added in v1.4.0
func DeleteNode(nodeID string)
func DeploySubnetLocallyExpectError ¶ added in v1.0.1
func DeploySubnetLocallyExpectError(subnetName string)
#nosec G204
func DeploySubnetLocallyWithArgsAndOutput ¶ added in v1.1.3
func DeploySubnetLocallyWithArgsExpectError ¶ added in v1.0.1
#nosec G204
func DescribeSubnet ¶ added in v1.1.0
#nosec G204
func ExportKeyToFile ¶ added in v0.2.0
#nosec G204
func GetLatestAvagoVersionFromGithub ¶ added in v1.4.0
func GetLatestAvagoVersionFromGithub() string
func GetVersion ¶
func GetVersion() string
func ImportSubnetConfig ¶ added in v0.2.3
#nosec G204
func ImportSubnetConfigFromURL ¶ added in v0.2.3
#nosec G204
func ImportUpgradeBytes ¶ added in v1.1.0
#nosec G204
func KeyTransferReceive ¶ added in v1.2.4
#nosec G204
func KeyTransferSend ¶ added in v1.2.4
#nosec G204
func ListValidators ¶ added in v1.2.1
#nosec G204
func NodeCreate ¶ added in v1.4.0
func NodeDevnet ¶ added in v1.4.0
func NodeExport ¶ added in v1.5.3
func NodeImport ¶ added in v1.5.3
func NodeStatus ¶ added in v1.4.0
func NodeStatus() string
func NodeUpgrade ¶ added in v1.4.0
func NodeUpgrade() string
func NodeWhitelistSSH ¶ added in v1.5.0
func RemoveValidator ¶ added in v1.2.1
func SimulateFujiAddPermissionlessValidator ¶ added in v1.2.4
func SimulateFujiAddValidator ¶ added in v1.0.0
func SimulateFujiAddValidator( subnetName string, key string, nodeID string, start string, period string, weight string, ) string
simulates fuji add validator execution path on a local network
#nosec G204
func SimulateFujiDeploy ¶ added in v1.0.0
simulates fuji deploy execution path on a local network
#nosec G204
func SimulateFujiJoin ¶ added in v1.0.0
func SimulateFujiJoin( subnetName string, avalanchegoConfig string, pluginDir string, nodeID string, ) string
simulates fuji join execution path on a local network
#nosec G204
func SimulateFujiRemoveValidator ¶ added in v1.2.0
simulates fuji add validator execution path on a local network
func SimulateFujiTransformSubnet ¶ added in v1.2.2
func SimulateGetSubnetStatsFuji ¶ added in v1.0.0
#nosec G204
func SimulateMainnetAddValidator ¶ added in v1.0.0
func SimulateMainnetAddValidator( subnetName string, nodeID string, start string, period string, weight string, ) string
simulates mainnet add validator execution path on a local network
#nosec G204
func SimulateMainnetDeploy ¶ added in v1.0.0
simulates mainnet deploy execution path on a local network
#nosec G204
func SimulateMainnetJoin ¶ added in v1.0.0
func SimulateMainnetJoin( subnetName string, avalanchegoConfig string, pluginDir string, nodeID string, ) string
simulates mainnet join execution path on a local network
#nosec G204
func SimulateMultisigMainnetDeploy ¶ added in v1.2.5
func SimulateMultisigMainnetDeploy( subnetName string, subnetControlAddrs []string, chainCreationAuthAddrs []string, txPath string, errorIsExpected bool, ) string
simulates multisig mainnet deploy execution path on a local network
#nosec G204
func StartNetworkWithVersion ¶ added in v1.0.0
#nosec G204
func TransformElasticSubnetLocally ¶ added in v1.2.0
func TransformElasticSubnetLocallyandTransformValidators ¶ added in v1.2.1
func UpgradeCustomVM ¶ added in v1.1.0
#nosec G204
func UpgradeCustomVMLocal ¶ added in v1.1.0
#nosec G204
func UpgradeVMConfig ¶ added in v1.1.0
#nosec G204
func UpgradeVMLocal ¶ added in v1.1.0
#nosec G204
Types ¶
type PrometheusConfig ¶ added in v1.4.0
type PrometheusConfig struct {
ScrapeConfigs []ScrapeConfig `yaml:"scrape_configs"`
}
func ParsePrometheusYamlConfig ¶ added in v1.4.0
func ParsePrometheusYamlConfig(filePath string) PrometheusConfig
ParsePrometheusYamlConfig parses prometheus config YAML file installed in separate monitoring host in /etc/prometheus/prometheus.yml
type ScrapeConfig ¶ added in v1.4.0
type ScrapeConfig struct { JobName string `yaml:"job_name"` StaticConfigs []StaticConfig `yaml:"static_configs"` }
type StaticConfig ¶ added in v1.4.0
type StaticConfig struct {
Targets []string `yaml:"targets"`
}