Documentation
¶
Index ¶
- Constants
- Variables
- func AddDataLimitAccessKey(region string, id int, limit int) error
- func AskCreateDefaultSubnet() (string, error)
- func AskCreateDefaultVpc() (string, error)
- func AskDeleteTagSubnet() (string, error)
- func AskDeleteTagVpc() (string, error)
- func AskNewTfVars(region, az, instanceType, ami string) (string, error)
- func AskPrompt(Message, AnswerOne, AnswerTwo string) (string, error)
- func AskPromptOptionList(Message string, Options []string, size int) (string, error)
- func AskTerraformExecution(Message string) (string, error)
- func CallProcess(process string, args ...string) error
- func CheckOutlineConnect(instance *EC2) (bool, error)
- func CreateKeyDotTf(workSpacePath string) error
- func CreateMainDotTf(workSpacePath string, region, ami, instanceType, az string) error
- func CreateOutputDotTf(workSpacePath string) error
- func CreateProviderDotTf(workSpacePath string, region string) error
- func CreateStartSession(ctx context.Context, cfg aws.Config, input *ssm.StartSessionInput) (*ssm.StartSessionOutput, error)
- func CreateTags(ctx context.Context, cfg aws.Config, id *string, tagName string) error
- func CreateTf(workSpacePath string, region, ami, instanceType, az string) error
- func CreateWorkspace(ctx context.Context, execPath, _defaultTerraformPath, regionName string) error
- func DeleteAccessKey(region string, id string) error
- func DeleteDataLimitAccessKey(region string, id int) error
- func DeleteIgws(ctx context.Context, cfg aws.Config, vpcId string) (bool, error)
- func DeleteKeyPair() error
- func DeleteSubnets(ctx context.Context, cfg aws.Config, vpcId string) (bool, error)
- func DeleteTagSubnet(ctx context.Context, cfg aws.Config, subnetId string) (bool, error)
- func DeleteTagVpc(ctx context.Context, cfg aws.Config, vpcId string) (bool, error)
- func ExistsKeyPair() bool
- func FindTagInstance(ctx context.Context, cfg aws.Config) ([]string, error)
- func GetApiURL(region string) (string, error)
- func GetAsset(filename string) ([]byte, error)
- func GetCertSha256(region string) (string, error)
- func GetPublicIP() (string, error)
- func GetSSMPlugin() ([]byte, error)
- func GetSSMPluginName() string
- func GetWorkspaceList(ctx context.Context, execPath, _defaultTerraformPath string) ([]string, error)
- func NewConfig(ctx context.Context, key, secret, session, region, roleArn string) (aws.Config, error)
- func NewSharedConfig(ctx context.Context, profile string, ...) (aws.Config, error)
- func PrintProvisioning(cmd, title, content string)
- func PrintReady(cmd, region, title, content string)
- func RenameAccessKey(region string, id int, name string) error
- func ReturnTerraformPath(region string) string
- func SaveTerraformVariable(jsonData map[string]interface{}, jsonFilePath string) (string, error)
- func SetRoot(execPath, terraformPath string) (*tfexec.Terraform, error)
- func TerraformReady(ctx context.Context, ver string) (string, error)
- func ValidateOutlineJson(ctx context.Context, terraformVersion, _defaultTerraformPath string) ([]string, error)
- func WrapArgsError(argFn cobra.PositionalArgs) cobra.PositionalArgs
- func WrapError(err error) error
- type AccessKey
- type AccessKeys
- type Ami
- type AvailabilityZone
- type DataLimit
- type DefaultSubnet
- type DefaultVpc
- type DetectVariable
- type EC2
- type InstanceType
- type OutlineInfo
- type Region
- type Target
- type Workspace
Constants ¶
View Source
const (
DefaultIPv4Url = "http://ipv4.icanhazip.com"
)
Variables ¶
View Source
var ( // ErrInvalidParams is an error type to use when passed arguments are invalid. ErrInvalidParams = errors.New("[err] invalid params") // ErrUnknown is an error type to use when error reason doesn't know. ErrUnknown = errors.New("[err] unknown") )
Functions ¶
func AskCreateDefaultSubnet ¶
It receives input from the user whether or not to create a default subnet.
func AskCreateDefaultVpc ¶
func AskDeleteTagSubnet ¶
Get a response from the user asking if they want to delete the govpn-subnet.
func AskDeleteTagVpc ¶
func AskNewTfVars ¶
func AskPromptOptionList ¶
func AskTerraformExecution ¶
func CallProcess ¶
func CheckOutlineConnect ¶
func CreateKeyDotTf ¶
func CreateMainDotTf ¶
func CreateOutputDotTf ¶
func CreateProviderDotTf ¶
func CreateStartSession ¶
func CreateStartSession(ctx context.Context, cfg aws.Config, input *ssm.StartSessionInput) (*ssm.StartSessionOutput, error)
func CreateTags ¶
func CreateWorkspace ¶
func DeleteAccessKey ¶
func DeleteKeyPair ¶
func DeleteKeyPair() error
func DeleteSubnets ¶
func DeleteTagSubnet ¶
Delete the tagged subnet.
func DeleteTagVpc ¶
func ExistsKeyPair ¶
func ExistsKeyPair() bool
func GetCertSha256 ¶
func GetPublicIP ¶ added in v1.0.16
func GetSSMPlugin ¶
func GetSSMPluginName ¶
func GetSSMPluginName() string
func GetWorkspaceList ¶ added in v1.0.18
func NewSharedConfig ¶
func PrintProvisioning ¶
func PrintProvisioning(cmd, title, content string)
func PrintReady ¶
func PrintReady(cmd, region, title, content string)
func ReturnTerraformPath ¶ added in v1.0.21
func SaveTerraformVariable ¶
func ValidateOutlineJson ¶ added in v1.0.18
func WrapArgsError ¶ added in v1.0.18
func WrapArgsError(argFn cobra.PositionalArgs) cobra.PositionalArgs
Types ¶
type AccessKey ¶
type AccessKey struct { ID string `json:"id"` Name string `json:"name"` Password string `json:"password"` Port int `json:"port"` Method string `json:"method"` DataLimit DataLimit AccessURL string `json:"accessUrl"` }
func CreateAccessKey ¶
type AccessKeys ¶
type AccessKeys struct {
Keys []AccessKey `json:"accessKeys"`
}
func GetAccessKeys ¶
func GetAccessKeys(region string) (*AccessKeys, error)
func (*AccessKeys) GetAccessUrlList ¶
func (l *AccessKeys) GetAccessUrlList() []string
type DefaultSubnet ¶
type DefaultSubnet struct { New bool // Indicates whether to create a new subnet. Existence bool // Indicates whether a default subnet exists. ID string // Save the id value of the default subnet. }
A struct with information about the default subnet.
func CreateDefaultSubnet ¶
Create a default subnet.
func ExistsDefaultSubnet ¶
Make sure the default subnet exists.
func ExistsTagSubnet ¶
Verify that tagged subnets exist.
type DetectVariable ¶
type EC2 ¶
type EC2 struct { Existence bool Id string PublicIP string LaunchTime time.Time InstanceType string Region string PublicDomain string PrivateDomain string }
func FindSpecificTagInstance ¶
func (*EC2) GetInstanceType ¶
func (*EC2) GetLaunchTime ¶
func (*EC2) GetPrivateDomain ¶
func (*EC2) GetPublicDomain ¶
func (*EC2) GetPublicIP ¶
type OutlineInfo ¶
type Workspace ¶
func ExistsWorkspace ¶
Click to show internal directories.
Click to hide internal directories.