Documentation ¶
Index ¶
- Constants
- Variables
- func InitializeLayer0ModuleInputs(version string)
- func ListLocalInstances() ([]string, error)
- func ListRemoteInstances(s s3iface.S3API) ([]string, error)
- func OptionalStringPrompter(m ModuleInput, current interface{}) (interface{}, error)
- func RequiredStringPrompter(m ModuleInput, current interface{}) (interface{}, error)
- type Instance
- type LocalInstance
- func (l *LocalInstance) Apply(wait bool) error
- func (l *LocalInstance) Destroy(force bool) error
- func (l *LocalInstance) Init(dockerInputPath string, inputOverrides map[string]interface{}) error
- func (l *LocalInstance) Output(key string) (string, error)
- func (l *LocalInstance) Plan() error
- func (l *LocalInstance) Pull(s s3iface.S3API) error
- func (l *LocalInstance) Push(s s3iface.S3API) error
- func (l *LocalInstance) Set(inputs map[string]interface{}) error
- func (l *LocalInstance) Upgrade(version string, force bool) error
- type ModuleInput
Constants ¶
View Source
const ( INPUT_SOURCE = "source" INPUT_LAYER0_VERSION = "layer0_version" INPUT_AWS_ACCESS_KEY = "access_key" INPUT_AWS_SECRET_KEY = "secret_key" INPUT_AWS_REGION = "region" INPUT_AWS_SSH_KEY_PAIR = "ssh_key_pair" INPUT_USERNAME = "username" INPUT_PASSWORD = "password" INPUT_DOCKERCFG = "dockercfg" INPUT_VPC_ID = "vpc_id" )
View Source
const ( OUTPUT_NAME = "name" OUTPUT_ENDPOINT = "endpoint" OUTPUT_TOKEN = "token" OUTPUT_S3_BUCKET = "s3_bucket" OUTPUT_ACCOUNT_ID = "account_id" OUTPUT_ACCESS_KEY = "access_key" OUTPUT_SECRET_KEY = "secret_key" OUTPUT_VPC_ID = "vpc_id" OUTPUT_PRIVATE_SUBNETS = "private_subnets" OUTPUT_PUBLIC_SUBNETS = "public_subnets" OUTPUT_ECS_ROLE = "ecs_role" OUTPUT_SSH_KEY_PAIR = "ssh_key_pair" OUTPUT_ECS_AGENT_SECURITY_GROUP_ID = "ecs_agent_security_group_id" OUTPUT_ECS_INSTANCE_PROFILE = "ecs_agent_instance_profile" OUTPUT_AWS_LINUX_SERVICE_AMI = "linux_service_ami" OUTPUT_WINDOWS_SERVICE_AMI = "windows_service_ami" OUTPUT_AWS_DYNAMO_TAG_TABLE = "dynamo_tag_table" OUTPUT_AWS_DYNAMO_JOB_TABLE = "dynamo_job_table" OUTPUT_AWS_REGION = "region" )
View Source
const INPUT_AWS_ACCESS_KEY_DESCRIPTION = `` /* 432-byte string literal not displayed */
View Source
const INPUT_AWS_REGION_DESCRIPTION = `` /* 297-byte string literal not displayed */
View Source
const INPUT_AWS_SECRET_KEY_DESCRIPTION = `` /* 437-byte string literal not displayed */
View Source
const INPUT_AWS_SSH_KEY_PAIR_DESCRIPTION = `` /* 357-byte string literal not displayed */
View Source
const INPUT_LAYER0_VERSION_DESCRIPTION = `` /* 336-byte string literal not displayed */
View Source
const INPUT_PASSWORD_DESCRIPTION = `` /* 224-byte string literal not displayed */
View Source
const INPUT_SOURCE_DESCRIPTION = `` /* 300-byte string literal not displayed */
View Source
const INPUT_USERNAME_DESCRIPTION = `` /* 221-byte string literal not displayed */
View Source
const INPUT_VPC_ID_DESCRIPTION = `` /* 606-byte string literal not displayed */
View Source
const LAYER0_MODULE_SOURCE = "github.com/quintilesims/layer0//setup/module"
Variables ¶
View Source
var Layer0ModuleInputs = []*ModuleInput{ { Name: INPUT_SOURCE, Description: INPUT_SOURCE_DESCRIPTION, Default: fmt.Sprintf("%s?ref=master", LAYER0_MODULE_SOURCE), // contains filtered or unexported fields }, { Name: INPUT_LAYER0_VERSION, Description: INPUT_LAYER0_VERSION_DESCRIPTION, Default: "latest", // contains filtered or unexported fields }, { Name: INPUT_AWS_ACCESS_KEY, Description: INPUT_AWS_ACCESS_KEY_DESCRIPTION, // contains filtered or unexported fields }, { Name: INPUT_AWS_SECRET_KEY, Description: INPUT_AWS_SECRET_KEY_DESCRIPTION, // contains filtered or unexported fields }, { Name: INPUT_AWS_REGION, Description: INPUT_AWS_REGION_DESCRIPTION, Default: aws.DEFAULT_AWS_REGION, // contains filtered or unexported fields }, { Name: INPUT_AWS_SSH_KEY_PAIR, Description: INPUT_AWS_SSH_KEY_PAIR_DESCRIPTION, // contains filtered or unexported fields }, { Name: INPUT_USERNAME, Default: "layer0", Description: INPUT_USERNAME_DESCRIPTION, // contains filtered or unexported fields }, { Name: INPUT_PASSWORD, Description: INPUT_PASSWORD_DESCRIPTION, // contains filtered or unexported fields }, { Name: INPUT_DOCKERCFG, StaticValue: "${file(\"dockercfg.json\")}", }, { Name: INPUT_VPC_ID, Description: INPUT_VPC_ID_DESCRIPTION, // contains filtered or unexported fields }, }
Functions ¶
func InitializeLayer0ModuleInputs ¶
func InitializeLayer0ModuleInputs(version string)
func ListLocalInstances ¶
func OptionalStringPrompter ¶
func OptionalStringPrompter(m ModuleInput, current interface{}) (interface{}, error)
func RequiredStringPrompter ¶
func RequiredStringPrompter(m ModuleInput, current interface{}) (interface{}, error)
Types ¶
type Instance ¶
type Instance interface { Apply(wait bool) error Destroy(force bool) error Init(dockercfgPath string, inputOverrides map[string]interface{}) error Output(key string) (string, error) Plan() error Pull(s s3iface.S3API) error Push(s s3iface.S3API) error Set(inputs map[string]interface{}) error Upgrade(version string, force bool) error }
func NewLocalInstance ¶
type LocalInstance ¶
func (*LocalInstance) Apply ¶
func (l *LocalInstance) Apply(wait bool) error
func (*LocalInstance) Destroy ¶
func (l *LocalInstance) Destroy(force bool) error
func (*LocalInstance) Init ¶
func (l *LocalInstance) Init(dockerInputPath string, inputOverrides map[string]interface{}) error
func (*LocalInstance) Plan ¶
func (l *LocalInstance) Plan() error
func (*LocalInstance) Set ¶
func (l *LocalInstance) Set(inputs map[string]interface{}) error
type ModuleInput ¶
type ModuleInput struct { Name string Description string Default interface{} StaticValue interface{} // contains filtered or unexported fields }
func (ModuleInput) Prompt ¶
func (m ModuleInput) Prompt(current interface{}) (interface{}, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_instance is a generated GoMock package.
|
Package mock_instance is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.