Documentation ¶
Index ¶
- func BuildGitHostname(ns string) (string, error)
- func CreateKnownHosts(path string, host string) (string, error)
- func GetExternalRepoAddr(env *testenv.Env, port int, repoName string) (string, error)
- type Git
- func (g *Git) CheckoutRemote(repo *git.Repository, branch string) error
- func (g *Git) Create(repodir string, from string, subdir string) (*git.Repository, error)
- func (g *Git) GetInClusterURL(host string, port int, repoName string) string
- func (g *Git) GetURL() string
- func (g *Git) Update(repo *git.Repository) (string, error)
- type HTTPAuth
- type SSHAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGitHostname ¶ added in v0.8.0
BuildGitHostname builds the hostname of a cluster-local git repo from the provided namespace.
func CreateKnownHosts ¶ added in v0.6.0
CreateKnownHosts works around https://github.com/go-git/go-git/issues/411
Types ¶
type Git ¶
Git represents a git repo with auth.
func NewHTTP ¶ added in v0.8.0
NewHTTP creates a new Git instance with HTTP auth, using environment variables.
func NewSSH ¶ added in v0.8.0
func NewSSH() *Git
NewSSH creates a new Git instance with SSH auth, using environment variables.
func (*Git) CheckoutRemote ¶ added in v0.9.1
Checkouts the specified remote branch from the given repository
func (*Git) Create ¶
Create creates a git repository at the specified repodir, with contents from `from/subdir`, and sets a remote using g's URL.
func (*Git) GetInClusterURL ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.