Documentation
¶
Index ¶
- Constants
- type Arch
- type ArchOS
- type DB
- func (d *DB) AddPackage(rpath string, info os.FileInfo, p *Package) error
- func (i *DB) AddRef(count uint64) uint64
- func (d *DB) Close() error
- func (d *DB) CurrentVersion() (v string)
- func (i *DB) DelRef(count uint64) uint64
- func (d *DB) ExportAndUpload(k hsm.Key) error
- func (i *DB) FillAttr(attr *fuse.Attr) error
- func (d *DB) GetInode(reqino uint64) (apkgfs.Inode, error)
- func (d *DB) Inodes() uint64
- func (i *DB) IsDir() bool
- func (d *DB) Length() (sz uint64)
- func (d *DB) ListSubs() []ArchOS
- func (i *DB) Lookup(ctx context.Context, name string) (n uint64, err error)
- func (i *DB) Mode() os.FileMode
- func (i *DB) Open(flags uint32) (uint32, error)
- func (i *DB) OpenDir() (uint32, error)
- func (d *DB) PackagesSize() uint64
- func (d *DB) ReadDir(input *fuse.ReadIn, out *fuse.DirEntryList, plus bool) error
- func (i *DB) Readlink() ([]byte, error)
- func (d *DB) RemovePackage(name string) error
- func (d *DB) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (db *DB) SetNotifyTarget(tgt NotifyTarget)
- func (i *DB) StatFs(out *fuse.StatfsOut) error
- func (d *DB) SubGet(sub ArchOS) (*DB, error)
- func (d *DB) Update()
- type NotifyTarget
- type OS
- type Package
- type PackageMeta
- type PackageMetaFile
Constants ¶
View Source
const (
// from sys/personality.h
PER_LINUX32 = 0x0008
)
View Source
const PKG_URL_PREFIX = "https://data.apkg.net/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchOS ¶
func ParseArchOS ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CurrentVersion ¶
func (*DB) PackagesSize ¶
func (*DB) RemovePackage ¶
func (*DB) SetNotifyTarget ¶ added in v0.2.3
func (db *DB) SetNotifyTarget(tgt NotifyTarget)
type NotifyTarget ¶ added in v0.2.3
type PackageMeta ¶
type PackageMeta struct { BaseName string `json:"base_name"` FullName string `json:"full_name"` Name string `json:"name"` // x11-libs.libdrm.libs Names []string `json:"names,omitempty"` // name + version Version string `json:"version"` // 2.4.115 Arch string `json:"arch"` OS string `json:"os"` BlockSize int64 `json:"block_size"` Blocks int `json:"blocks"` Category string `json:"category"` Subcat string `json:"subcat"` Hash string `json:"hash"` Inodes uint32 `json:"inodes"` LDSO []byte `json:"ld.so.cache,omitempty"` // optional ld.so.cache file, as base64 Provides map[string]*PackageMetaFile `json:"provides"` Size int64 `json:"size"` Virtual map[string]map[string]string `json:"virtual,omitempty"` Created []int64 `json:"created"` }
Click to show internal directories.
Click to hide internal directories.