Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CodeMountingError = func(err error) error {
return errors.Wrapf(err, "error mounting code")
}
ReadFileError = func(err error, path string) error {
return errors.Wrapf(err, "error reading file %s", path)
}
ListFilesError = func(err error, path string) error {
return errors.Wrapf(err, "error listing files of %s", path)
}
)
Functions ¶
Types ¶
type MountedRepo ¶
type MountedRepo interface {
GetOwner() string
GetRepo() string
GetSha() string
GetFileContents(ctx context.Context, path string) ([]byte, error)
ListFiles(ctx context.Context, path string) ([]os.FileInfo, error)
}
func NewLazilyMountedRepo ¶
func NewLazilyMountedRepo(client *github.Client, owner, repo, sha string) MountedRepo
Click to show internal directories.
Click to hide internal directories.