content

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFs

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

func Open added in v0.0.20

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

func Stat added in v0.0.20

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

Types

type Directory

type Directory struct {
	internal.ReadOnlyFile
	ghpath.ContentPath
	// contains filtered or unexported fields
}

func (*Directory) Close

func (d *Directory) Close() error

Close implements afero.File.

func (*Directory) Name

func (d *Directory) Name() string

Name implements afero.File.

func (*Directory) Read

func (d *Directory) Read(p []byte) (n int, err error)

Read implements afero.File.

func (*Directory) ReadAt

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

ReadAt implements afero.File.

func (*Directory) Readdir

func (d *Directory) Readdir(count int) ([]fs.FileInfo, error)

Readdir implements afero.File.

func (*Directory) Readdirnames

func (d *Directory) Readdirnames(n int) ([]string, error)

Readdirnames implements afero.File.

func (*Directory) Seek

func (d *Directory) Seek(offset int64, whence int) (int64, error)

Seek implements afero.File.

func (*Directory) Stat

func (d *Directory) Stat() (fs.FileInfo, error)

Stat implements afero.File.

type DirectoryInfo

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

func (*DirectoryInfo) IsDir

func (d *DirectoryInfo) IsDir() bool

IsDir implements fs.FileInfo.

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.

func (*DirectoryInfo) Name

func (d *DirectoryInfo) Name() string

Name implements fs.FileInfo.

func (*DirectoryInfo) Size

func (d *DirectoryInfo) Size() (s int64)

Size implements fs.FileInfo.

func (*DirectoryInfo) Sys

func (d *DirectoryInfo) Sys() any

Sys implements fs.FileInfo.

type File

type File struct {
	internal.ReadOnlyFile
	ghpath.ContentPath
	// 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.BranchPath
	// 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.

Jump to

Keyboard shortcuts

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