s3

package
v0.0.0-...-00906a0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsAlphaNumeric = regexp.MustCompile(`^[a-zA-Z0-9\.-]+$`).MatchString

Functions

This section is empty.

Types

type Config

type Config struct {
	*aws.Config

	AssumeRole string
}

type S3

type S3 struct {
	s3iface.S3API
	// contains filtered or unexported fields
}

func New

func New(config *Config) *S3

func (*S3) GetObject

func (s *S3) GetObject(ctx context.Context, path string) ([]byte, error)

type URL

type URL struct {
	Bucket, Path string
}

func ParseURL

func ParseURL(s string) (*URL, error)

func (*URL) String

func (u *URL) String() string

Jump to

Keyboard shortcuts

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