aws

package
v0.0.0-...-5510d5e Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAwsSessionConfig

func CreateAwsSessionConfig(provider *Provider) (*aws.Config, error)

func DeleteImage

func DeleteImage(profile string, imageIds []*string) error

func GetLog

func GetLog(workDir, profile, name, prefix, id string) ([]string, error)

func StartBuild

func StartBuild(profile, projectName string) (string, error)

func WaitImageBuildResult

func WaitImageBuildResult(profile string, buildIds map[string]string) (interface{}, error)

func WaitImportImageResult

func WaitImportImageResult(profile string, ids map[string]string) (map[string]string, error)

Types

type Provider

type Provider struct {
	Profile string
	Region  string
	Name    string
}

func NewProvider

func NewProvider(profile, region string) *Provider

func (*Provider) BuildTemplate

func (p *Provider) BuildTemplate(workDir string) error

type S3

type S3 struct {
	Name string
}

func NewS3

func NewS3(name string) *S3

func (*S3) BucketName

func (s *S3) BucketName() string

func (*S3) BuildTemplate

func (s *S3) BuildTemplate(workDir string) error

func (*S3) UploadFile

func (s *S3) UploadFile(profile, src, dst string) error

type S3Uploader

type S3Uploader struct {
	Src  string
	Key  string
	Name string
}

func NewS3Uploader

func NewS3Uploader(src, key string) *S3Uploader

func (*S3Uploader) BuildTemplate

func (su *S3Uploader) BuildTemplate(workDir string) error

Jump to

Keyboard shortcuts

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