awslet

package
v0.0.0-...-e732ebd Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ACL_TYPE_STRING = "" /* 134-byte string literal not displayed */
View Source
const DEFAULT_ACL_TYPE = "public-read-write"
View Source
const DEFAULT_AWS_REGION = "us-east-1"
View Source
const DEFAULT_STORAGE_TYPE = "STANDARD"
View Source
const STORAGE_TYPE_STRING = "STANDARD STANDARD_IA REDUCED_REDUNDANCY "

Variables

This section is empty.

Functions

func BucketStatus

func BucketStatus(service *s3.S3, bucketName string) (bool, error)

func BucketUpload

func BucketUpload(service *s3.S3, bucketName string, acl string, fileName string, keyName string, storageClass string, multipart bool) (bool, error)

func CancelUpdateStack

func CancelUpdateStack(service *cloudformation.CloudFormation, stackName string, clientRequestToken string) (bool, error)

func ContinueUpdateRollbackStack

func ContinueUpdateRollbackStack(service *cloudformation.CloudFormation, stackName string, clientRequestToken string,
	stackRoleArn string, resourceTypesSkip []*string) (bool, error)

func CreateBucket

func CreateBucket(service *s3.S3, bucketName string, region string, acl string, versioning bool, corsFile string) (*string, error)

func CreateCfnService

func CreateCfnService(session *session.Session, region string) *cloudformation.CloudFormation

func CreateCfnServiceAssumeRole

func CreateCfnServiceAssumeRole(session *session.Session, region string, role string) *cloudformation.CloudFormation

func CreateCfnServiceWithCredentials

func CreateCfnServiceWithCredentials(session *session.Session, region string, aws_access_key_id string, aws_secret_access_key string, aws_access_token string) (*cloudformation.CloudFormation, error)

func CreateS3Service

func CreateS3Service(session *session.Session, region string) *s3.S3

func CreateS3ServiceAssumeRole

func CreateS3ServiceAssumeRole(session *session.Session, region string, role string) *s3.S3

func CreateS3ServiceWithCredentials

func CreateS3ServiceWithCredentials(session *session.Session, region string, aws_access_key_id string, aws_secret_access_key string, aws_access_token string) (*s3.S3, error)

func CreateSession

func CreateSession() *session.Session

func CreateStack

func CreateStack(service *cloudformation.CloudFormation, stackName string, remoteUrl string, localFilePath string,
	policyURL string, policyBodyLocalFile string, stackRoleArn string, timeoutInMinutes int,
	disableRollback bool, clientRequestToken string,
	notificationArns []*string, resourceTypes []*string, parameters [][]string, tags [][]string) (bool, error)

func DeleteBucket

func DeleteBucket(service *s3.S3, bucketName string) (bool, error)

func DeleteBucketRecursive

func DeleteBucketRecursive(service *s3.S3, bucketName string) (bool, error)

func DeleteStack

func DeleteStack(service *cloudformation.CloudFormation, stackName string) (bool, error)

func ListBuckets

func ListBuckets(service *s3.S3) ([]*s3.Bucket, error)

func NotificationArnsHelper

func NotificationArnsHelper() string

func ParamsHelper

func ParamsHelper() string

func ParseNotificationArns

func ParseNotificationArns(notificationArnString string) []*string

func ParseParams

func ParseParams(parametersString string) [][]string

func ParseResourceTypes

func ParseResourceTypes(resourceTypesString string) []*string

func ParseTags

func ParseTags(tagsString string) [][]string

* Parse Expected CloudFormation Tags in format : * key1=value1/|...|keyN=valueN, * where key and value parameter, and key-value couple fo values are separated by other ones by "|" character. * In the command line this group should be bounded by quote marks (")

func ResourceTypesHelper

func ResourceTypesHelper() string

func StackStatus

func StackStatus(service *cloudformation.CloudFormation, stackName string) (bool, error)

func TagsHelper

func TagsHelper() string

func UpdateStack

func UpdateStack(service *cloudformation.CloudFormation, stackName string, remoteUrl string, localFilePath string, resusePreviousTemplate bool,
	policyURL string, policyBodyLocalFile string, stackRoleArn string, policyUpdateURL string, policyUpdateBodyLocalFile string,
	clientRequestToken string, notificationArns []*string, resourceTypes []*string, parameters [][]string, tags [][]string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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