Documentation ¶
Index ¶
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) 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.