git

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloneToBucketOptions

type CloneToBucketOptions struct {
	TransformerOptions []normalpath.TransformerOption
	RecurseSubmodules  bool
}

CloneToBucketOptions are options for Clone.

type Cloner

type Cloner interface {
	// CloneToBucket clones the repository to the bucket.
	//
	// The url must contain the scheme, including file:// if necessary.
	CloneToBucket(
		ctx context.Context,
		envContainer app.EnvContainer,
		url string,
		refName RefName,
		readWriteBucket storage.ReadWriteBucket,
		options CloneToBucketOptions,
	) error
}

Cloner clones git repositories to buckets.

func NewCloner

func NewCloner(logger *zap.Logger, options ClonerOptions) Cloner

NewCloner returns a new Cloner.

type ClonerOptions

type ClonerOptions struct {
	HTTPSUsernameEnvKey      string
	HTTPSPasswordEnvKey      string
	SSHKeyFileEnvKey         string
	SSHKnownHostsFilesEnvKey string
}

ClonerOptions are options for a new Cloner.

type RefName

type RefName interface {
	// contains filtered or unexported methods
}

RefName is a reference name.

func NewBranchRefName

func NewBranchRefName(branch string) RefName

NewBranchRefName returns a new RefName for the branch.

func NewTagRefName

func NewTagRefName(tag string) RefName

NewTagRefName returns a new RefName for the tag.

Jump to

Keyboard shortcuts

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