Versions in this module Expand all Collapse all v1 v1.3.7 Jul 17, 2024 Changes in this version + const BlobVM + const CustomVM + const SubnetEvm + const TimestampVM + var DevnetNetwork = NewNetwork(Devnet, constants.DevnetNetworkID, constants.DevnetAPIEndpoint) + var LocalNetwork = NewNetwork(Local, constants.LocalNetworkID, constants.LocalAPIEndpoint) + var MainnetNetwork = NewNetwork(Mainnet, odygoconstants.MainnetID, constants.MainnetAPIEndpoint) + var TestnetNetwork = NewNetwork(Testnet, odygoconstants.TestnetID, constants.TestnetAPIEndpoint) + var UndefinedNetwork = NewNetwork(Undefined, 0, "") + func HostAnsibleIDToCloudID(hostAnsibleID string) (string, string, error) + func HostCloudIDToAnsibleID(cloudService string, hostCloudID string) (string, error) + func NewHostConnection(h *Host) (*goph.Client, error) + type CloudConfig map[string]RegionConfig + func (ccm *CloudConfig) GetAllInstanceIDs() []string + func (ccm *CloudConfig) GetInstanceIDsForRegion(region string) []string + func (ccm *CloudConfig) GetRegions() []string + type ClusterConfig struct + MonitoringInstance string + Network Network + Nodes []string + type ClustersConfig struct + Clusters map[string]ClusterConfig + GCPConfig GCPConfig + KeyPair map[string]string + Version string + type ClustersConfigV0 struct + Clusters map[string][]string + GCPConfig GCPConfig + KeyPair map[string]string + type ElasticSubnet struct + AssetID ids.ID + OChainTXID ids.ID + SubnetID ids.ID + TokenName string + TokenSymbol string + Txs map[string]ids.ID + Validators map[string]PermissionlessValidators + type ElasticSubnetConfig struct + AssetID ids.ID + InitialSupply uint64 + MaxConsumptionRate uint64 + MaxDelegatorStakeDuration time.Duration + MaxSupply uint64 + MaxValidatorStake uint64 + MaxValidatorStakeDuration time.Duration + MaxValidatorWeightFactor byte + MinConsumptionRate uint64 + MinDelegationFee uint32 + MinDelegatorStake uint64 + MinDelegatorStakeDuration time.Duration + MinValidatorStake uint64 + MinValidatorStakeDuration time.Duration + SubnetID ids.ID + UptimeRequirement uint32 + type Exportable struct + ChainConfig []byte + Genesis []byte + NetworkUpgrades []byte + NodeConfig []byte + Sidecar Sidecar + SubnetConfig []byte + type GCPConfig struct + ProjectName string + ServiceAccFilePath string + type Host struct + Connection *goph.Client + IP string + NodeID string + SSHCommonArgs string + SSHPrivateKeyPath string + SSHUser string + func (h *Host) Command(script string, env []string, timeout time.Duration) ([]byte, error) + func (h *Host) Connect() error + func (h *Host) Connected() bool + func (h *Host) Disconnect() error + func (h *Host) Download(remoteFile string, localFile string, timeout time.Duration) error + func (h *Host) Forward(httpRequest string, timeout time.Duration) ([]byte, error) + func (h *Host) GetAnsibleInventoryRecord() string + func (h *Host) GetCloudID() string + func (h *Host) MkdirAll(remoteDir string, timeout time.Duration) error + func (h *Host) UntimedForward(httpRequest string) ([]byte, error) + func (h *Host) UntimedMkdirAll(remoteDir string) error + func (h *Host) Upload(localFile string, remoteFile string, timeout time.Duration) error + func (h *Host) WaitForSSHPort(timeout time.Duration) error + func (h *Host) WaitForSSHShell(timeout time.Duration) error + type Network struct + Endpoint string + ID uint32 + Kind NetworkKind + func NetworkFromNetworkID(networkID uint32) Network + func NetworkFromString(s string) Network + func NewDevnetNetwork(ip string, port int) Network + func NewNetwork(kind NetworkKind, id uint32, endpoint string) Network + func (n *Network) HandlePublicNetworkSimulation() + func (n Network) DChainEndpoint() string + func (n Network) GenesisParams() *genesis.Params + func (n Network) Name() string + func (n Network) NetworkIDFlagValue() string + type NetworkData struct + BlockchainID ids.ID + RPCVersion int + SubnetID ids.ID + type NetworkKind int64 + const Devnet + const Local + const Mainnet + const Testnet + const Undefined + func (nk NetworkKind) String() string + type NodeConfig struct + AMI string + CertPath string + CloudService string + ElasticIP string + KeyPair string + NodeID string + Region string + SecurityGroup string + UseStaticIP bool + type NodeResult struct + Err error + NodeID string + Value interface{} + type NodeResults struct + Lock sync.Mutex + Results []NodeResult + func (nr *NodeResults) AddResult(nodeID string, value interface{}, err error) + func (nr *NodeResults) GetErrorHostMap() map[string]error + func (nr *NodeResults) GetErrorHosts() []string + func (nr *NodeResults) GetNodeList() []string + func (nr *NodeResults) GetResultMap() map[string]interface{} + func (nr *NodeResults) GetResults() []NodeResult + func (nr *NodeResults) HasErrors() bool + func (nr *NodeResults) HasNodeIDWithError(nodeID string) bool + func (nr *NodeResults) Len() int + type OdygoCompatibility map[string][]string + type PermissionlessValidators struct + TxID ids.ID + type RegionConfig struct + CertFilePath string + CertName string + ImageID string + InstanceIDs []string + InstanceType string + KeyPair string + NumNodes int + Prefix string + PublicIPs []string + SecurityGroup string + SecurityGroupName string + type Sidecar struct + ChainID string + CustomVMBranch string + CustomVMBuildScript string + CustomVMRepoURL string + ElasticSubnet map[string]ElasticSubnet + ImportedFromOPM bool + ImportedVMID string + Name string + Networks map[string]NetworkData + RPCVersion int + Subnet string + SubnetEVMMainnetChainID uint + TokenName string + VM VMType + VMVersion string + Version string + func (sc Sidecar) GetVMID() (string, error) + type VMCompatibility struct + RPCChainVMProtocolVersion map[string]int + type VMType string + func VMTypeFromString(s string) VMType + func (v VMType) RepoName() string