Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureUrlComposer ¶
type AzureUrlComposer struct {
// contains filtered or unexported fields
}
func (*AzureUrlComposer) FileUrlByBranch ¶
func (r *AzureUrlComposer) FileUrlByBranch(branch string) string
func (*AzureUrlComposer) FileUrlByCommit ¶
func (r *AzureUrlComposer) FileUrlByCommit(commit string) string
func (*AzureUrlComposer) FileUrlByTag ¶
func (r *AzureUrlComposer) FileUrlByTag(tag string) string
type GitHubUrlComposer ¶
type GitHubUrlComposer struct {
// contains filtered or unexported fields
}
func (*GitHubUrlComposer) FileUrlByBranch ¶
func (r *GitHubUrlComposer) FileUrlByBranch(branch string) string
func (*GitHubUrlComposer) FileUrlByCommit ¶
func (r *GitHubUrlComposer) FileUrlByCommit(commit string) string
func (*GitHubUrlComposer) FileUrlByTag ¶
func (r *GitHubUrlComposer) FileUrlByTag(tag string) string
type ProviderType ¶
type ProviderType string
const ( ProviderGitHub ProviderType = "github" ProviderAzure ProviderType = "azure" ProviderBitBucket ProviderType = "bitbucket" ProviderGitLab ProviderType = "gitlab" )
func (ProviderType) IsSupported ¶
func (pt ProviderType) IsSupported() error
func (ProviderType) String ¶
func (pt ProviderType) String() string
type UrlComposer ¶
type UrlComposer interface { FileUrlByCommit(commit string) string FileUrlByBranch(branch string) string FileUrlByTag(tag string) string }
func NewUrlComposer ¶
func NewUrlComposer(provider ProviderType, remoteUrl, path string) (UrlComposer, error)
Click to show internal directories.
Click to hide internal directories.