Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { Path string Protocol string Provider string Name string Branch string CommitHash string }
Metadata contains repository metadata.
type Repository ¶
type Repository interface { // GetMetadataFromRemoteURL extracts information from git repository remote URL and parse it to repository.Repository. // It only accepts 2 formats for now: "git@github.com:user/git-repo-name.git" and "https://github.com/user/git-repo-name.git". GetMetadataFromRemoteURL() (*Metadata, error) // ListFiles walking through git worktree and list of all files in repository whether is tracked or untracked. // This function respect rules defined in every .gitignore and also will exclude all files with type in ignoreList. ListFiles() ([]string, error) }
Repository defines methods to interact with git repository.
Click to show internal directories.
Click to hide internal directories.