package
Version:
v0.8.4
Opens a new window with list of versions in this module.
Published: Apr 7, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Create(db *bolt.DB, file *pb.File) error
-
func Get(db *bolt.DB, name string) (*pb.File, error)
-
func GetCheap(db *bolt.DB, name string) (*pb.FileCheap, error)
-
func List(db *bolt.DB) ([]*pb.File, error)
-
func ListNames(db *bolt.DB) ([]string, error)
-
func Remove(db *bolt.DB, names ...string) error
-
func Rename(db *bolt.DB, oldName, newName string) error
Create a new file with its content compressed.
Get retrieves the file with the specified name.
GetCheap is like Get but without getting the file content.
List returns a slice with all the files stored in the file bucket.
ListNames returns a slice with all the files names.
Remove removes one or more files from the database.
Rename recreates a file with a new key and deletes the old one.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.