repository

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFs

func NewFs(gh *github.Client, owner string) afero.Fs

func Open

func Open(ctx context.Context, gh *github.Client, path ghpath.Path) (afero.File, error)

func Readdir

func Readdir(ctx context.Context, gh *github.Client, user string, count int) ([]fs.FileInfo, error)

func Readdirnames

func Readdirnames(ctx context.Context, gh *github.Client, user string, n int) ([]string, error)

func Stat

func Stat(ctx context.Context, gh *github.Client, path ghpath.Path) (fs.FileInfo, error)

Types

type File

type File struct {
	internal.ReadOnlyFile
	ghpath.OwnerPath
	// contains filtered or unexported fields
}

func (*File) Close

func (f *File) Close() error

Close implements afero.File.

func (*File) Name

func (f *File) Name() string

Name implements afero.File.

func (*File) Read

func (f *File) Read(p []byte) (n int, err error)

Read implements afero.File.

func (*File) ReadAt

func (f *File) ReadAt(p []byte, off int64) (n int, err error)

ReadAt implements afero.File.

func (*File) Readdir

func (f *File) Readdir(count int) ([]fs.FileInfo, error)

Readdir implements afero.File.

func (*File) Readdirnames

func (f *File) Readdirnames(n int) ([]string, error)

Readdirnames implements afero.File.

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

Seek implements afero.File.

func (*File) Stat

func (f *File) Stat() (fs.FileInfo, error)

Stat implements afero.File.

type FileInfo

type FileInfo struct {
	// contains filtered or unexported fields
}

func (*FileInfo) IsDir

func (f *FileInfo) IsDir() bool

IsDir implements fs.FileInfo.

func (*FileInfo) ModTime

func (f *FileInfo) ModTime() time.Time

ModTime implements fs.FileInfo.

func (*FileInfo) Mode

func (f *FileInfo) Mode() fs.FileMode

Mode implements fs.FileInfo.

func (*FileInfo) Name

func (f *FileInfo) Name() string

Name implements fs.FileInfo.

func (*FileInfo) Size

func (f *FileInfo) Size() int64

Size implements fs.FileInfo.

func (*FileInfo) Sys

func (f *FileInfo) Sys() any

Sys implements fs.FileInfo.

type Fs

type Fs struct {
	internal.ReadOnlyFs
	ghpath.OwnerPath
	// contains filtered or unexported fields
}

func (*Fs) Name

func (f *Fs) Name() string

Name implements afero.Fs.

func (*Fs) Open

func (f *Fs) Open(name string) (afero.File, error)

Open implements afero.Fs.

func (*Fs) OpenFile

func (f *Fs) OpenFile(name string, _ int, _ fs.FileMode) (afero.File, error)

OpenFile implements afero.Fs.

func (*Fs) Stat

func (f *Fs) Stat(name string) (fs.FileInfo, error)

Stat implements afero.Fs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL