Documentation ¶
Overview ¶
Package source is the interface for filesystems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnimplemented is returned when a method is not implemented. ErrUnimplemented = errors.New("unimplemented") // ErrReadonly is returned when this filesystem is readonly. ErrReadonly = errors.New("readonly") // ErrNotDir is returned when something is not a directory. ErrNotDir = errors.New("not a directory") )
View Source
var ErrOverSized = errors.New("oversized reader")
ErrOverSized is the error when the reader exceeds the limit.
Functions ¶
func NewGitHubFs ¶
func NewGitHubFs(repoOwner, repoName string, token *string, options ...GitHubFsOption) (afero.Fs, error)
NewGitHubFs creates a new github filesystem.
Types ¶
type GitHubFsOption ¶
type GitHubFsOption func(*githubFsOptions)
GitHubFsOption is the option for NewGitHubFs.
func GitHubRef ¶
func GitHubRef(ref string) GitHubFsOption
GitHubRef sets the ref of the GitHub repository.
Click to show internal directories.
Click to hide internal directories.