Documentation ¶
Index ¶
- Constants
- Variables
- func DeployOnAWS(cmd *cobra.Command) error
- func Execute() error
- func GetAwsCmd() *cobra.Command
- func GetBetaCmd() *cobra.Command
- func GetRootCommandForTest() *cobra.Command
- func GetSession(region string) *session.Session
- func PrintUsage()
- func ProcessConfigFile() error
- func ProcessEnvVars()
- func ProcessFlags()
- func SetupRootCommand() *cobra.Command
- type InstanceInfo
- type TemplateData
Constants ¶
View Source
const ( DefaultNumberOfOrchestratorNodes = 1 DefaultNumberOfComputeNodes = 2 RetryTimeout = 2 * time.Second FileNameSplitParts = 2 FilePermissions = 0644 DefaultBootVolumeSize = 8 )
View Source
const ( LogTickerInterval = 2 * time.Second MaxRandomDuration = 10 )
Constants
Variables ¶
View Source
var ( VerboseModeFlag bool = false ProjectSettings = map[string]interface{}{ "ProjectName": "bacalhau-by-andaime", "TargetPlatform": "aws", "NumberOfOrchestratorNodes": 1, "NumberOfComputeNodes": 2, } SetBy = map[string]string{ "ProjectName": "default", "TargetPlatform": "default", "NumberOfOrchestratorNodes": "default", "NumberOfComputeNodes": "default", } ProjectNameFlag string TargetPlatformFlag string NumberOfOrchestratorNodesFlag int NumberOfComputeNodesFlag int TargetRegionsFlag string OrchestratorIPFlag string AWSProfileFlag string InstanceTypeFlag string ComputeInstanceTypeFlag string OrchestratorInstanceTypeFlag string ValidArchitectures = []string{"arm64", "x86_64"} BootVolumeSizeFlag int SessionGuidanceLogged = false )
View Source
var VersionNumber string = "v0.0.1-alpha"
Functions ¶
func DeployOnAWS ¶
func GetBetaCmd ¶
func GetRootCommandForTest ¶
GetRootCommandForTest returns the root command without executing it
func GetSession ¶
func PrintUsage ¶
func PrintUsage()
func ProcessConfigFile ¶
func ProcessConfigFile() error
func ProcessEnvVars ¶
func ProcessEnvVars()
func ProcessFlags ¶
func ProcessFlags()
func SetupRootCommand ¶
Types ¶
type InstanceInfo ¶
Struct to hold instance information
type TemplateData ¶
type TemplateData struct { ProjectName string TargetPlatform string MachineType string NumberOfOrchestratorNodes int NumberOfComputeNodes int TargetRegions string AwsProfile string OrchestratorIPs string NodeType string Location string PublicIP string Orchestrators string Token string }
Struct to hold template data
Source Files ¶
Click to show internal directories.
Click to hide internal directories.