Documentation ¶
Index ¶
- func CleanRepoUrl(repoUrl string) string
- type Repository
- func (r Repository) Branch() (string, error)
- func (r Repository) Commit() (string, error)
- func (r Repository) GitEnv() map[string]string
- func (r Repository) IsDirty() (bool, error)
- func (r Repository) ParseURL(remote string) (*url.URL, error)
- func (r Repository) RepoHostname(remote string) (string, error)
- func (r Repository) RepoPath(remote string) (string, error)
- func (r Repository) RepoUrl(remoteName string) (string, error)
- func (r Repository) Tag() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanRepoUrl ¶
Types ¶
type Repository ¶ added in v0.0.2
type Repository struct {
Repo *git.Repository
}
func NewRepository ¶ added in v0.0.2
func NewRepository() (Repository, error)
func (Repository) Branch ¶ added in v0.0.2
func (r Repository) Branch() (string, error)
func (Repository) Commit ¶ added in v0.0.2
func (r Repository) Commit() (string, error)
func (Repository) GitEnv ¶ added in v0.0.2
func (r Repository) GitEnv() map[string]string
func (Repository) IsDirty ¶ added in v0.0.3
func (r Repository) IsDirty() (bool, error)
func (Repository) ParseURL ¶ added in v0.0.3
func (r Repository) ParseURL(remote string) (*url.URL, error)
func (Repository) RepoHostname ¶ added in v0.0.3
func (r Repository) RepoHostname(remote string) (string, error)
func (Repository) RepoPath ¶ added in v0.0.3
func (r Repository) RepoPath(remote string) (string, error)
func (Repository) RepoUrl ¶ added in v0.0.2
func (r Repository) RepoUrl(remoteName string) (string, error)
func (Repository) Tag ¶ added in v0.0.2
func (r Repository) Tag() (string, error)
Click to show internal directories.
Click to hide internal directories.