Documentation ¶
Overview ¶
Package filestore provides local file uploads and downloads for cookbook uploading and downloading. All access to the files is through the checksum, rather than the file name.
If config.Config.LocalFstoreDir is != "", the content of the files will be stored in that directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHashes ¶ added in v0.5.0
func DeleteHashes(fileHashes []string)
DeleteHashes deletes all the checksum hashes given from the filestore.
Types ¶
type FileStore ¶
FileStore is an individual file in the filestore. Note that there is no actual name for the file used, but it is identified by the file's checksum. The file's data is stored as a pointer to an array of bytes.
func AllFilestores ¶ added in v0.5.2
func AllFilestores() []*FileStore
AllFilestores returns all file checksums and their contents, for exporting.
Click to show internal directories.
Click to hide internal directories.