Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneToBucketOptions ¶
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. // depth must be > 0. CloneToBucket( ctx context.Context, envContainer app.EnvContainer, url string, depth uint32, writeBucket storage.WriteBucket, options CloneToBucketOptions, ) error }
Cloner clones git repositories to buckets.
type ClonerOptions ¶
type ClonerOptions struct { HTTPSUsernameEnvKey string HTTPSPasswordEnvKey string SSHKeyFileEnvKey string SSHKnownHostsFilesEnvKey string }
ClonerOptions are options for a new Cloner.
type Name ¶ added in v0.17.0
type Name interface {
// contains filtered or unexported methods
}
Name is a name identifiable by git.
func NewBranchName ¶ added in v0.17.0
NewBranchName returns a new Name for the branch.
func NewRefName ¶ added in v0.17.0
NewRefName returns a new Name for the ref.
func NewRefNameWithBranch ¶ added in v0.17.0
NewRefNameWithBranch returns a new Name for the ref while setting branch as the clone target.
func NewTagName ¶ added in v0.17.0
NewTagName returns a new Name for the tag.
Click to show internal directories.
Click to hide internal directories.