packager

package
v0.0.0-...-d020a17 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packager

type Packager struct {
	// contains filtered or unexported fields
}

func New

func New(s3 s3iface.S3API, sts stsiface.STSAPI, region string) *Packager

func (*Packager) Package

func (p *Packager) Package(ctx context.Context, prefix string, templateReader TemplateReader, writer io.Writer) (*string, error)

func (*Packager) Upload

func (p *Packager) Upload(ctx context.Context, key, path string) (*UploadedObject, error)

type TemplateReader

type TemplateReader interface {
	fmt.Stringer
	Name() string
}

type UploadedObject

type UploadedObject struct {
	Bucket        string
	Key           string
	VersionId     string
	AlreadyExists bool
}

Jump to

Keyboard shortcuts

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