gcp

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetryTimeout   = 2 * time.Second
	DefaultSSHPort = 22
)

Variables

View Source
var DestroyCmd = &cobra.Command{
	Use:   "destroy",
	Short: "List and destroy GCP deployments",
	Long: `List all active GCP deployments in config.yaml, 
and allow the user to select one for destruction. Projects that are already being destroyed will not be listed.`,
	RunE: runDestroy,
}
View Source
var GCPCmd = &cobra.Command{
	Use:   "gcp",
	Short: "GCP-related commands",
	Long:  `Commands for interacting with Google Cloud Platform (GCP).`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		return nil
	},
}

Functions

func ExecuteCreateDeployment

func ExecuteCreateDeployment(cmd *cobra.Command, _ []string) error

func GetGCPCheckPermissionsCmd

func GetGCPCheckPermissionsCmd() *cobra.Command

func GetGCPCmd

func GetGCPCmd() *cobra.Command

func GetGCPCreateDeploymentCmd

func GetGCPCreateDeploymentCmd() *cobra.Command

func GetGCPCreateProjectCmd

func GetGCPCreateProjectCmd() *cobra.Command

func GetGCPCreateVMCmd

func GetGCPCreateVMCmd() *cobra.Command

func GetGCPDestroyCmd

func GetGCPDestroyCmd() *cobra.Command

func GetListAllAssetsInProjectCmd

func GetListAllAssetsInProjectCmd() *cobra.Command

func InitializeCommands

func InitializeCommands()

Types

type ConfigDeployment

type ConfigDeployment struct {
	Name         string
	Type         models.DeploymentType
	ID           string
	UniqueID     string
	FullViperKey string
}

Jump to

Keyboard shortcuts

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