Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseGithubURL ¶
ParseRepoURL breaks a path into repo and filepath eg: for /practo/tipoca-stream/pkg/README.md this: "practo/tipoca-stream" and "pkg/README.md"
Types ¶
type GitCache ¶
type GitCache struct {
// contains filtered or unexported fields
}
func (*GitCache) GetFileLocalPath ¶
GetFileLocalPath takes the relative path of the file from repo and returns the local path the file should be present if downloaded
type GitCacheInterface ¶
type GitCacheInterface interface { GetFileVersion(filePath string) (string, error) GetFileLocalPath(filepath string) string }
func NewGitCache ¶
func NewGitCache(repoURL string, accessToken string) (GitCacheInterface, error)
Click to show internal directories.
Click to hide internal directories.