Documentation ¶
Index ¶
Constants ¶
View Source
const ( GitRefTypeBranch = "branch" GitRefTypeTag = "tag" GitRefTypeCommit = "commit" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct { URL string `json:"url"` Subfolder string `json:"subfolder"` Branch string `json:"branch,omitempty"` Tag string `json:"tag,omitempty"` Commit string `json:"commit,omitempty"` }
Git struct about git
type GitGetter ¶
type GitGetter 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) (*git.Commit, error) ListBranch(ctx context.Context, gitURL string, params *git.SearchParams) ([]string, error) ListTag(ctx context.Context, gitURL string, params *git.SearchParams) ([]string, error) GetHTTPLink(gitURL string) (string, error) GetCommitHistoryLink(gitURL string, commit string) (string, error) GetTagArchive(ctx context.Context, gitURL, tagName string) (*git.Tag, error) }
type TemplateInfo ¶
Click to show internal directories.
Click to hide internal directories.