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