Documentation ¶
Index ¶
Constants ¶
View Source
const ( GitRefTypeBranch = "branch" GitRefTypeTag = "tag" GitRefTypeCommit = "commit" )
Variables ¶
This section is empty.
Functions ¶
func ExtractProjectPathFromURL ¶
ExtractProjectPathFromURL extract git project path from gitURL.
func Register ¶
func Register(kind string, constructor Constructor)
Types ¶
type Helper ¶
type Helper interface { // GetCommit to get commit of a branch/tag/commitID for a specified git URL GetCommit(ctx context.Context, gitURL string, refType string, ref string) (*Commit, error) ListBranch(ctx context.Context, gitURL string, params *SearchParams) ([]string, error) ListTag(ctx context.Context, gitURL string, params *SearchParams) ([]string, error) GetHTTPLink(gitURL string) (string, error) GetCommitHistoryLink(gitURL string, commit string) (string, error) GetTagArchive(ctx context.Context, gitURL, tagName string) (*Tag, error) }
Helper interface to do git operations
type SearchParams ¶
SearchParams contains parameters for searching operation
Click to show internal directories.
Click to hide internal directories.