Documentation
¶
Index ¶
- func AssociateIAMRole(instanceID, iamRole string) (string, error)
- func CreateAWSKeyPair(keyName string, option int) (string, string, string, error)
- func CreateInstanceAndUploadDockerImage(...) (string, string, error)
- func CreateKubernetesCluster(version, securityGroupID, name, roleArn, uuid, subnetIds string) (string, error)
- func CreateRepository(name string) (string, error)
- func GetIAMRoleARN(name string) (string, error)
- func Init(region, accessKey, secretKey string)
- func InstallGo(fileNamePem, user, publicDNS string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssociateIAMRole ¶
AssociateIAMRole allows you connect your IAM role to your instance
func CreateAWSKeyPair ¶
CreateAWSKeyPair allows you create your key pair if needed set option to 1 if you want to save the pem file to disk
func CreateInstanceAndUploadDockerImage ¶
func CreateInstanceAndUploadDockerImage(ami, instanceType, securityGroupID, deviceName, keyPairName, dockerUser, passDocker, dockerImgName string, gbSize int64) (string, string, error)
CreateInstanceAndUploadDockerImage create a server instance, and return the instanceID, public dns, or error if fails. You must provide the ami id, for example: "ami-0e4035ae3f70c400f", the instanceType too, such as "t2.micro" and your securityGroupID: "sg-00000000", also the gbSize is the disk space in gigabytes
func CreateKubernetesCluster ¶
func CreateKubernetesCluster(version, securityGroupID, name, roleArn, uuid, subnetIds string) (string, error)
CreateKubernetesCluster allows you create a new Kubernetes cluster
func CreateRepository ¶
CreateRepository allows you create a new repository in aws ErrCodeResourceInUseException
func GetIAMRoleARN ¶
GetIAMRoleARN allows you create a new Kubernetes cluster
Types ¶
This section is empty.