util

package
v0.0.0-...-326c0ea Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

func InStrings(subject string, collection []string) bool

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

func NewSigner(sshKeyPath string) (ssh.Signer, error)

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.

Jump to

Keyboard shortcuts

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