git_source

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Remote                  = true
	Local                   = false
	CredentialHelperCommand = "%s credentials %s"

	UnableToFetchError    = err.ErrorF("Fetching from remote repository has failed: %v")
	UnableToCheckoutError = err.ErrorF("Unable to checkout reference %v: %v")
)
View Source
const (
	AnonymousAuthentication = iota
	UsernamePasswordAuthentication
	PrivateKeyAuthentication
	AzSpnAuthentication
)

Authentication methods

View Source
const (
	HttpUriFormat = "%s://%s%s"
)
View Source
const (
	InvalidConfigurationObjectError = err.Error("expected GitConfig configuration object")
)

Variables

This section is empty.

Functions

func ServeCredentials

func ServeCredentials(w we.ResponseWriter, r we.RequestScope) error

func Source

func Source(sourceConfig domain.SourceConfig, index int) (spi.Source, error)

Types

type Branch added in v0.0.8

type Branch struct {
	Name     string
	CommitId string
	Date     string
}

type Branches added in v0.0.8

type Branches struct {
	Error  string
	Remote []Branch
	Local  []Branch
}

type Repository added in v0.0.9

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

func Git added in v0.0.9

func Git(config *domain.GitConfig, baseDir string) (*Repository, error)

func (*Repository) Branches added in v0.0.9

func (r *Repository) Branches(remote bool) (branches []Branch, e error)

func (*Repository) ClearTTL added in v0.0.43

func (r *Repository) ClearTTL()

func (*Repository) Exec added in v0.0.9

func (r *Repository) Exec(parameters ...string) (*bytes.Buffer, error)

func (*Repository) Fetch added in v0.0.9

func (r *Repository) Fetch(label string) error

func (*Repository) Refresh added in v0.0.9

func (r *Repository) Refresh(label string) error

Jump to

Keyboard shortcuts

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