Versions in this module Expand all Collapse all v0 v0.1.0 Apr 5, 2026 Changes in this version + var ErrAlreadyOpened = errors.New("already opened") + var ErrExist = errors.New("already exists") + var ErrInvalidSeek = errors.New("invalid seek offset") + var ErrNotExist = errors.New("does not exist") + var ErrNotImplemented = errors.New("not implemented") + var ErrNotSupported = errors.New("git fs doesn't support this operation") + type Client struct + func NewClient(ctx context.Context, options ...ClientOptions) (*Client, error) + type ClientOptions func(*Client) error + func WithGithubApplication(clientID string, installationID int64, privateKey []byte) ClientOptions + func WithGithubClient(githubClient *gh.Client) ClientOptions + func WithGithubToken(token string) ClientOptions + type File struct + func NewFile(fs *Fs, path, name string) *File + func (f *File) Close() error + func (f *File) Name() string + func (f *File) RangeReader(offset, length int64) (io.ReadCloser, error) + func (f *File) Read(p []byte) (n int, err error) + func (f *File) ReadAt(p []byte, off int64) (n int, err error) + func (f *File) Readdir(count int) ([]os.FileInfo, error) + func (f *File) ReaddirAll() ([]os.FileInfo, error) + func (f *File) Readdirnames(count int) ([]string, error) + func (f *File) Seek(offset int64, whence int) (int64, error) + func (f *File) Stat() (os.FileInfo, error) + func (f *File) Sync() error + func (f *File) Truncate(size int64) error + func (f *File) Write(p []byte) (int, error) + func (f *File) WriteAt(p []byte, off int64) (int, error) + func (f *File) WriteString(s string) (n int, err error) + type Fs struct + func NewFsFromClient(client *Client, owner, repo, branch string, opts ...Option) *Fs + func (*Fs) Name() string + func (fs *Fs) Branch() string + func (fs *Fs) Chmod(name string, mode os.FileMode) error + func (fs *Fs) Chown(name string, uid, gid int) error + func (fs *Fs) Chtimes(name string, atime, mtime time.Time) error + func (fs *Fs) Create(name string) (afero.File, error) + func (fs *Fs) Mkdir(name string, perm os.FileMode) error + func (fs *Fs) MkdirAll(path string, perm os.FileMode) error + func (fs *Fs) Open(name string) (afero.File, error) + func (fs *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) + func (fs *Fs) Owner() string + func (fs *Fs) Remove(name string) error + func (fs *Fs) RemoveAll(path string) error + func (fs *Fs) Rename(oldname, newname string) error + func (fs *Fs) Repo() string + func (fs *Fs) Stat(name string) (os.FileInfo, error) + type GitHubFileInfo struct + func (fi *GitHubFileInfo) IsDir() bool + func (fi *GitHubFileInfo) ModTime() time.Time + func (fi *GitHubFileInfo) Mode() os.FileMode + func (fi *GitHubFileInfo) Name() string + func (fi *GitHubFileInfo) Size() int64 + func (fi *GitHubFileInfo) Sys() any + type Option func(*Fs) + func WithAPITimeout(d time.Duration) Option + func WithCacheTTL(d time.Duration) Option + func WithCommitAuthor(name, email string) Option