Documentation ¶
Index ¶
- func GitConfig(target string, r *io.Reader) ([]string, error)
- func LoadGitConfigFileFromHome() (*io.Reader, error)
- func LoadGitCredentialsFileFromHome() (*io.Reader, error)
- func WriteFileWithDirectory(path string, data []byte, perm os.FileMode) error
- func WriteToml(dest string, input interface{}) error
- type AuthProvider
- type AuthProviderHTTPS
- type AuthProviderWithSSH
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadGitConfigFileFromHome ¶ added in v0.1.18
func LoadGitCredentialsFileFromHome ¶ added in v0.1.18
func WriteFileWithDirectory ¶
Types ¶
type AuthProvider ¶
type AuthProvider interface { GetRepositoryURL(repoName string) string AuthMethod() transport.AuthMethod }
func NewHTTPSAuthProvider ¶ added in v0.1.4
func NewHTTPSAuthProvider(username, password string) AuthProvider
func NewSSHAuthProvider ¶ added in v0.1.4
func NewSSHAuthProvider(pemFile, password, port string) AuthProvider
type AuthProviderHTTPS ¶
type AuthProviderHTTPS struct {
// contains filtered or unexported fields
}
func (*AuthProviderHTTPS) AuthMethod ¶
func (p *AuthProviderHTTPS) AuthMethod() transport.AuthMethod
func (*AuthProviderHTTPS) GetRepositoryURL ¶
func (p *AuthProviderHTTPS) GetRepositoryURL(repoName string) string
type AuthProviderWithSSH ¶
type AuthProviderWithSSH struct {
// contains filtered or unexported fields
}
func (*AuthProviderWithSSH) AuthMethod ¶
func (p *AuthProviderWithSSH) AuthMethod() transport.AuthMethod
func (*AuthProviderWithSSH) GetRepositoryURL ¶
func (p *AuthProviderWithSSH) GetRepositoryURL(repoName string) string
Click to show internal directories.
Click to hide internal directories.