Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitCommandEnvAndURL ¶
func GetGitCommandEnvAndURL(repo, username, password string, sshPrivateKey string) (string, []string, error)
GetGitCommandEnvAndURL returns URL and env options for git operation
func NormalizeGitURL ¶
NormalizeGitURL normalizes a git URL for lookup and storage
Types ¶
type Client ¶
type Client interface { Root() string Init() error Fetch() error Checkout(revision string) error LsRemote(revision string) (string, error) CommitSHA() (string, error) Reset() error }
Client is a generic git client interface
type ClientFactory ¶ added in v0.4.0
type ClientFactory interface {
NewClient(repoURL, path, username, password, sshPrivateKey string) Client
}
ClientFactory is a factory of Git Clients Primarily used to support creation of mock git clients during unit testing
func NewFactory ¶ added in v0.4.0
func NewFactory() ClientFactory
Click to show internal directories.
Click to hide internal directories.