Documentation ¶
Index ¶
- func NewFs(gh *github.Client, owner, repo, branch string) afero.Fs
- func Open(ctx context.Context, client *github.Client, path ghpath.Path) (afero.File, error)
- func Stat(ctx context.Context, client *github.Client, path ghpath.Path) (fs.FileInfo, error)
- type Directory
- func (d *Directory) Close() error
- func (d *Directory) Name() string
- func (d *Directory) Read(p []byte) (n int, err error)
- func (d *Directory) ReadAt(p []byte, off int64) (n int, err error)
- func (d *Directory) Readdir(count int) ([]fs.FileInfo, error)
- func (d *Directory) Readdirnames(n int) ([]string, error)
- func (d *Directory) Seek(offset int64, whence int) (int64, error)
- func (d *Directory) Stat() (fs.FileInfo, error)
- type DirectoryInfo
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- 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) ([]fs.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (fs.FileInfo, error)
- type FileInfo
- type Fs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Directory ¶
type Directory struct { internal.ReadOnlyFile ghpath.ContentPath // contains filtered or unexported fields }
func (*Directory) Readdirnames ¶
Readdirnames implements afero.File.
type DirectoryInfo ¶
type DirectoryInfo struct {
// contains filtered or unexported fields
}
func (*DirectoryInfo) ModTime ¶
func (d *DirectoryInfo) ModTime() time.Time
ModTime implements fs.FileInfo.
func (*DirectoryInfo) Mode ¶
func (d *DirectoryInfo) Mode() fs.FileMode
Mode implements fs.FileInfo.
type File ¶
type File struct { internal.ReadOnlyFile ghpath.ContentPath // contains filtered or unexported fields }
func (*File) Readdirnames ¶
Readdirnames implements afero.File.
type Fs ¶
type Fs struct { internal.ReadOnlyFs ghpath.BranchPath // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.