pkg

package
v0.0.0-...-7ff6546 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const UNTAR_DIRECTORY = "untarred-repos"

Variables

This section is empty.

Functions

func Untar

func Untar(tarred io.Reader, path string) error

Types

type DecryptedObject

type DecryptedObject struct {
	Key          string
	DecryptedTar io.Reader
}

type Downloader

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

func NewDownloader

func NewDownloader(
	awsAccessKey,
	awsSecretKey,
	awsRegion,
	bucket,
	glURL,
	glUsername,
	glToken,
	metricsPort,
	privateKey,
	shard,
	workdir string,
	runOnce bool) (*Downloader, error)

func (*Downloader) Run

func (d *Downloader) Run(ctx context.Context, dryRun, runOnce bool) error

type EncryptedObject

type EncryptedObject interface {
	Key() string
	Reader() io.ReadCloser
}

type S3object

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

func (S3object) Key

func (s S3object) Key() string

func (S3object) Reader

func (s S3object) Reader() io.ReadCloser

type UntarInfo

type UntarInfo struct {
	DirPath      string
	LocalBranch  string
	RemoteGroup  string
	RemoteName   string
	RemoteBranch string
	ShortSHA     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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