platform

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultAWSWorkspaceVpcName ...
	DefaultAWSWorkspaceVpcName = "hotsub-workspace" + "-" + HotsubSecurityStructureVersion

	// DefaultAWSSubnetName ...
	DefaultAWSSubnetName = "hotsub-subnet" + "-" + HotsubSecurityStructureVersion

	// DefaultAWSInternetGatewayName ...
	DefaultAWSInternetGatewayName = "hotsub-gateway" + "-" + HotsubSecurityStructureVersion

	// DefaultAWSRouteTableName ...
	DefaultAWSRouteTableName = "hotsub-default-rt" + "-" + HotsubSecurityStructureVersion

	// DefaultAWSInstanceProfileNameForCompute default aws instance profile name
	DefaultAWSInstanceProfileNameForCompute = "hotsub-compute" + "-" + HotsubSecurityStructureVersion

	// DefaultAWSSecurityGroupName default aws security group name
	DefaultAWSSecurityGroupName = "hotsub-default" + "-" + HotsubSecurityStructureVersion
)
View Source
const (
	// DefaultGoogleInstanceTag ....
	DefaultGoogleInstanceTag = "hotsub" + "-" + HotsubSecurityStructureVersion

	// DefaultGoogleFirewallName ...
	DefaultGoogleFirewallName = "hotsub-firewall" + "-" + HotsubSecurityStructureVersion
)
View Source
const (
	// HotsubSecurityStructureVersion ...
	HotsubSecurityStructureVersion = "2018-08-06"
)

Variables

This section is empty.

Functions

func DefineMachineSpec

func DefineMachineSpec(ctx params.Context) (*dkmachine.CreateOptions, error)

DefineMachineSpec is a factory layer to connect cli.Context to CreateOptions.

func DefineSharedDataInstanceSpec

func DefineSharedDataInstanceSpec(shared core.Inputs, ctx params.Context) (*dkmachine.CreateOptions, error)

DefineSharedDataInstanceSpec ... It defines ALL the specifications for docker-machine, though it's a bit verbose ;)

Types

type AmazonWebServices

type AmazonWebServices struct{}

AmazonWebServices ...

func (AmazonWebServices) Validate

func (p AmazonWebServices) Validate(ctx params.Context) error

Validate validates the platform itself, setting up the infrastructures if needed. For AWS, it executes:

  1. Create SecurityGroup for hotsub.

type Driver

type Driver string

Driver ...

const (
	AmazonEC2 Driver = "amazonec2"
	Google    Driver = "google"
	Vbox      Driver = "virtualbox"
	Hyperv    Driver = "hyperv"
)

type GoogleCloudPlatform

type GoogleCloudPlatform struct{}

GoogleCloudPlatform ...

func (GoogleCloudPlatform) Validate

func (p GoogleCloudPlatform) Validate(ctx params.Context) error

Validate validates Google platform itself. 1) Create Firewall Rule for specific tag.

type HyperV added in v0.6.0

type HyperV struct {
}

HyperV ...

func (*HyperV) Validate added in v0.6.0

func (p *HyperV) Validate(ctx params.Context) error

Validate does nothing so far. If needed, create a network interface or something like that in the future.

type Platform

type Platform interface {
	Validate(ctx params.Context) error
}

Platform ...

func Get

func Get(ctx params.Context) Platform

Get ...

type Provider

type Provider string

Provider ...

const (
	AWS    Provider = "aws"
	GCP    Provider = "gcp"
	VBOX   Provider = "vbox"
	HYPERV Provider = "hyperv"
)

type Virtualbox

type Virtualbox struct {
}

Virtualbox ...

func (*Virtualbox) Validate

func (p *Virtualbox) Validate(ctx params.Context) error

Validate does nothing so far. If needed, create a network interface or something like that in the future.

Jump to

Keyboard shortcuts

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