cmd

package
v0.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

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 DeployOnAWS(cmd *cobra.Command) error

func Execute

func Execute() error

func GetAwsCmd

func GetAwsCmd() *cobra.Command

GetAndaimeCmd returns the Cobra command for Andaime

func GetBetaCmd

func GetBetaCmd() *cobra.Command

func GetRootCommandForTest

func GetRootCommandForTest() *cobra.Command

GetRootCommandForTest returns the root command without executing it

func GetSession

func GetSession(region string) *session.Session

func PrintUsage

func PrintUsage()

func ProcessConfigFile

func ProcessConfigFile() error

func ProcessEnvVars

func ProcessEnvVars()

func ProcessFlags

func ProcessFlags()

func SetupRootCommand

func SetupRootCommand() *cobra.Command

Types

type InstanceInfo

type InstanceInfo struct {
	InstanceID string
	Region     string
	PublicIP   string
}

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

Directories

Path Synopsis
aws
gcp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL