Documentation ¶
Index ¶
Constants ¶
View Source
const GitHubPrefix = "https://github.com/"
View Source
const GitLabPrefix = "https://gitlab.com/"
View Source
const LocalPathPrefix = "file://"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
type GitHub struct {
// contains filtered or unexported fields
}
func (*GitHub) DownloadContent ¶
func (*GitHub) WorkingDir ¶
type GitLab ¶ added in v0.0.11
type GitLab struct {
// contains filtered or unexported fields
}
func NewGitLab ¶ added in v0.0.11
func NewGitLab(remoteURI string, opt ...GitLabOption) (*GitLab, error)
func (*GitLab) DownloadContent ¶ added in v0.0.11
func (*GitLab) WorkingDir ¶ added in v0.0.11
type GitLabOption ¶ added in v0.0.12
type GitLabOption func(*GitLab)
func WithHTTPClient ¶ added in v0.0.12
func WithHTTPClient(httpClient *http.Client) GitLabOption
type LocalPath ¶
type LocalPath struct {
// contains filtered or unexported fields
}
func NewLocalPath ¶
func (*LocalPath) DownloadContent ¶
func (*LocalPath) WorkingDir ¶
type RemoteContentProvider ¶
type RemoteContentProvider interface { // DownloadContent Download the remote content to a local working directory DownloadContent() error // Cleanup Perform the cleanup task for the provider Cleanup() error // WorkingDir Get the local working directory WorkingDir() string // RemoteURI Get the remote URI RemoteURI() string }
func ByURI ¶
func ByURI(uri string) (RemoteContentProvider, error)
Click to show internal directories.
Click to hide internal directories.