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) } InvalidDefinitionError = func(msg string) error { return errors.New(msg) } )
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
func NewLocalMountedRepoForFs ¶ added in v0.10.16
func NewLocalMountedRepoForFs(fs afero.Fs, repoRootPath, owner, repo string) (MountedRepo, error)
Creates a mounted repo for a local filesystem
Click to show internal directories.
Click to hide internal directories.