Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateGitHubBlobSHA ¶ added in v0.10.0
Types ¶
type CommitInfo ¶
type CommitInfo struct { CommitMsg string CommitBranch string GitFileMap GitFileContentMap }
type GitFileContentMap ¶
type GitFilePathInfo ¶
GitFilePathInfo contains file local path and remote git path
type RepoFileStatus ¶
func (*RepoFileStatus) EncodeToGitHubContentOption ¶
func (f *RepoFileStatus) EncodeToGitHubContentOption(commitMsg string) *github.RepositoryContentFileOptions
type RepoInfo ¶
type RepoInfo struct { // repo detail fields Owner string `yaml:"owner" mapstructure:"owner,omitempty"` Org string `yaml:"org" mapstructure:"org,omitempty"` Repo string `yaml:"name" mapstructure:"name,omitempty"` Branch string `yaml:"branch" mapstructure:"branch,omitempty"` RepoType string `yaml:"scmType" mapstructure:"scmType,omitempty"` Token string `yaml:"token" mapstructure:"token,omitempty"` // url fields APIURL string `yaml:"apiURL" mapstructure:"apiURL,omitempty"` CloneURL ScmURL `yaml:"url" mapstructure:"url,omitempty"` // used for gitlab Namespace string `mapstructure:"nameSpace,omitempty"` Visibility string `mapstructure:"visibility,omitempty"` BaseURL string `yaml:"baseURL" mapstructure:"baseURL,omitempty"` SSHPrivateKey string `yaml:"sshPrivateKey" mapstructure:"sshPrivateKey,omitempty"` // used for GitHub WorkPath string `mapstructure:"workPath,omitempty"` NeedAuth bool `mapstructure:"needAuth,omitempty"` }
func (*RepoInfo) GetCloneURL ¶ added in v0.10.3
func (*RepoInfo) GetRepoName ¶ added in v0.10.3
func (*RepoInfo) GetRepoOwner ¶
func (*RepoInfo) GetRepoPath ¶
func (*RepoInfo) IsGithubRepo ¶ added in v0.10.3
IsGithubRepo return ture if repo is github
func (*RepoInfo) SetDefault ¶ added in v0.10.3
type WebhookConfig ¶
Click to show internal directories.
Click to hide internal directories.