mirror2s3

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IgnoredFiles = map[string]struct{}{
		".gitignore": struct{}{},
	}
)

Functions

func WithAwsProfile

func WithAwsProfile(name string) func(*Mirror)

Example: example.com

func WithAwsRegion

func WithAwsRegion(name string) func(*Mirror)

Example: us-east-1

func WithBucketURL

func WithBucketURL(url string) func(*Mirror)

Example: s3://example.com

func WithGitRepoRoot

func WithGitRepoRoot(path string) func(*Mirror)

Types

type Mirror

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

func New

func New(options ...func(*Mirror)) *Mirror

func (*Mirror) Run

func (m *Mirror) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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