Documentation ¶
Index ¶
- Constants
- Variables
- func AWSClientFromEnvironment() (*awsProvisioner, bool)
- func AWSCreateCmd() *cobra.Command
- func AWSCreateMinikubeCmd() *cobra.Command
- func AWSDeleteCmd() *cobra.Command
- func BlockUntilSSHOpen(publicIP, sshUser, sshKey string)
- func Cmd() *cobra.Command
- func WaitForSSH(ProvisionedNodes ProvisionedNodes, sshKey string) error
- type AMI
- type AWSOpts
- type Client
- func (c Client) CreateNode(ami AMI, instanceType InstanceType, size int64) (string, error)
- func (c Client) DestroyNodes(nodeIDs []string) error
- func (c Client) GetNode(id string) (*Node, error)
- func (c Client) GetNodes() ([]string, error)
- func (c *Client) MaybeProvisionIG(vpc string) (string, error)
- func (c *Client) MaybeProvisionKeypair(keyloc string) error
- func (c *Client) MaybeProvisionRoute(vpc, igw, subnet string) (string, error)
- func (c *Client) MaybeProvisionSGs(vpc string) (string, error)
- func (c *Client) MaybeProvisionSubnet(vpc string) (string, error)
- func (c *Client) MaybeProvisionVPC() (string, error)
- func (c Client) TagResourceName(resourceId *string, name string) error
- type ClientConfig
- type CompositeError
- type Credentials
- type InstanceType
- type LinuxDistro
- type Node
- type NodeBlueprint
- type NodeCount
- type ProvisionedNodes
Constants ¶
const ( // Ubuntu1604LTSEast is the AMI for Ubuntu 16.04 LTS Ubuntu1604LTSEast = AMI("ami-40d28157") // CentOS7East is the AMI for CentOS 7 CentOS7East = AMI("ami-6d1c2007") // Redhat7East is the AMI for RedHat 7 RedHat7East = AMI("ami-b63769a1") )
const ( Ubuntu1604LTS = LinuxDistro("ubuntu1604LTS") CentOS7 = LinuxDistro("centos7") Redhat7 = LinuxDistro("redhat7") AWSTargetRegion = "us-east-1" AWSKeyName = "kismatic-integration-testing" )
Variables ¶
var (
NodeBlueprintMap = make(map[string]NodeBlueprint)
)
Functions ¶
func AWSClientFromEnvironment ¶
func AWSClientFromEnvironment() (*awsProvisioner, bool)
func AWSCreateCmd ¶
func AWSCreateMinikubeCmd ¶
func AWSDeleteCmd ¶
func BlockUntilSSHOpen ¶
func BlockUntilSSHOpen(publicIP, sshUser, sshKey string)
BlockUntilSSHOpen waits until the node with the given IP is accessible via SSH.
func WaitForSSH ¶
func WaitForSSH(ProvisionedNodes ProvisionedNodes, sshKey string) error
Types ¶
type Client ¶
type Client struct { Config *ClientConfig Credentials Credentials // contains filtered or unexported fields }
Client for provisioning machines on AWS
func (Client) CreateNode ¶
CreateNode is for creating a machine on AWS using the given AMI and InstanceType. Returns the ID of the newly created machine.
func (Client) DestroyNodes ¶
DestroyNodes destroys the nodes identified by the ID.
func (Client) GetNode ¶
GetNode returns information about a specific node. The consumer of this method is responsible for checking that the information it needs has been returned in the Node. (i.e. it's possible for the hostname, public IP to be empty)
func (*Client) MaybeProvisionKeypair ¶
func (*Client) MaybeProvisionRoute ¶
func (*Client) MaybeProvisionSubnet ¶
func (*Client) MaybeProvisionVPC ¶
type ClientConfig ¶
ClientConfig of the AWS client
type CompositeError ¶
type CompositeError struct {
// contains filtered or unexported fields
}
An Error made up of many contributing errors that all have equal weight (e.g. do not form a stack)
func (CompositeError) Error ¶
func (c CompositeError) Error() string
type Credentials ¶
Credentials to be used for accessing the AI
type LinuxDistro ¶
type LinuxDistro string
type Node ¶
type Node struct { PrivateDNSName string PrivateIP string PublicIP string SSHUser string ImageID string }
A Node on AWS
type NodeBlueprint ¶
type NodeBlueprint struct { EtcdInstanceType InstanceType EtcdDisk int64 MasterInstanceType InstanceType MasterDisk int64 WorkerInstanceType InstanceType WorkerDisk int64 }