gotiofs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

package gotiofs provides an adapter from Got to an io/fs.FS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

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

FS implements io/fs.FS

func New

func New(b *branches.Branch) *FS

func (*FS) Open

func (s *FS) Open(name string) (iofs.File, error)

type File

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

func NewFile

func NewFile(fsop gotfs.Operator, ms, ds cadata.Store, root gotfs.Root, p string) *File

func (*File) Close

func (f *File) Close() error

func (*File) Read

func (f *File) Read(buf []byte) (int, error)

func (*File) ReadAt

func (f *File) ReadAt(buf []byte, off int64) (int, error)

func (*File) ReadDir

func (f *File) ReadDir(n int) (ret []iofs.DirEntry, _ error)

func (*File) Seek

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

func (*File) Stat

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

Jump to

Keyboard shortcuts

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