s3

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT-0 Imports: 11 Imported by: 0

Documentation

Overview

Package s3 provides a client to make API requests to Amazon S3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, region string) (clients.S3Client, error)

New returns an S3 client.

Types

type S3

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

S3 wraps an Amazon S3 client.

func (*S3) UploadTemplate

func (s *S3) UploadTemplate(bucket, region, key string, data io.Reader) (string, error)

Upload uploads a template file to an S3 bucket under the specified key. Returns an object URL that can be passed directly to CloudFormation

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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