Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepositoryRemotes ¶
func GetRepositoryRemotes(repo *git.Repository) (map[string][]string, error)
GetRepositoryRemotes returns a map containing the remote names and the URLs they point to.
func InStrings ¶
InStrings returns true if the subject string is contained in the supplied slice of strings Gently copied from github.com/aws-controllers-k8s/runtime/pkg/util
func NewSigner ¶
newSigner returns a ssh.Signer from a PEM encoded private key path. If the PEM file is encrypted it will try to read the passphrase from a terminal without local echo.
func UpdateRepositoryRemotes ¶
func UpdateRepositoryRemotes(repo *git.Repository, name string, URLs []string) error
UpdateRepositoryRemotes updates the URLs list for a specific remote.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.