aws

package
v0.0.0-...-42fb9ca Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const HYPERDRIVE_NAME_TAG string = "hyperdrive-name"
View Source
const HYPERDRIVE_SECURITY_GROUP_NAME string = "-SecurityGroup"
View Source
const HYPERDRIVE_TYPE_TAG string = "hyperdrive-type"
View Source
const HYPERDRIVE_VPC_TAG_KEY string = "hyperdrive-vpc"
View Source
const HYPERDRIVE_VPC_TAG_VALUE string = "true"

Variables

This section is empty.

Functions

func AddInternetGateway

func AddInternetGateway(client *ec2.Client, vID string, igID string)

func CreateInternetGateway

func CreateInternetGateway(client *ec2.Client, projectName string) string

func DownloadObject

func DownloadObject(s3Config types.S3WorkspacePersistenceRemoteConfiguration, filename string, key string) error

func GetDefaultAMI

func GetDefaultAMI(region string) string

func GetHyperName

func GetHyperName(i types.Instance) string

func GetInstanceForStudy

func GetInstanceForStudy(studyName string, remoteCfg hyperdriveTypes.EC2ComputeRemoteConfiguration) (types.Instance, error)

func GetInternetGatewayID

func GetInternetGatewayID(r *ec2.DescribeInternetGatewaysOutput, projectName string) string

func GetSecurityGroupId

func GetSecurityGroupId(r *ec2.DescribeSecurityGroupsOutput, projectName string) string

func GetSubnetID

func GetSubnetID(r *ec2.DescribeSubnetsOutput, projectName string) string

func GetVpcId

func GetVpcId(r *ec2.DescribeVpcsOutput) string

func IsHyperdriveInstance

func IsHyperdriveInstance(i types.Instance) bool

func IsStructureEmpty

func IsStructureEmpty(i types.Instance) bool

func IsStudyInstance

func IsStudyInstance(i types.Instance, studyName string) bool

func ListServers

func ListServers(remoteCfg hyperdriveTypes.EC2ComputeRemoteConfiguration)

func StartHyperpackageEC2

func StartHyperpackageEC2(manifestPath string, remoteCfg hyperdriveTypes.EC2ComputeRemoteConfiguration, ec2Type string, amiID string, syncOptions hyperdriveTypes.WorkspaceSyncOptions, dockerOptions hyperdriveTypes.DockerOptions)

func StartJupyterEC2

func StartJupyterEC2(manifestPath string, remoteCfg hyperdriveTypes.EC2ComputeRemoteConfiguration, ec2Type string, amiID string, jupyterLaunchOptions hyperdriveTypes.JupyterLaunchOptions, syncOptions hyperdriveTypes.WorkspaceSyncOptions)

func StartServer

func StartServer(manifestPath string, remoteCfg hyperdriveTypes.EC2ComputeRemoteConfiguration, ec2Type string, amiID string, startupScript string, hostPort int) string

func StopServer

func StopServer(manifestPath string, remoteCfg hyperdriveTypes.EC2ComputeRemoteConfiguration)

TODO: Refactor this in to a series of smaller, well-named functions for readability

func SyncDirectory

func SyncDirectory(s3Config types.S3WorkspacePersistenceRemoteConfiguration, srcPath string, destPath string)

func UserHomeDir

func UserHomeDir() string

func WriteFileToEC2

func WriteFileToEC2(instanceIp string, remoteCfg hyperdriveTypes.EC2ComputeRemoteConfiguration, projectName string, filePath string)

func WritePublicKey

func WritePublicKey(client *ec2.Client, keyName string, projectName string, publicKeyBytes []byte) error

Types

type EC2Type

type EC2Type int64

Jump to

Keyboard shortcuts

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