mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-09 02:47:29 +02:00
13 lines
343 B
Go
13 lines
343 B
Go
|
|
package host
|
||
|
|
|
||
|
|
import "context"
|
||
|
|
|
||
|
|
// StorageService provides access to a plugin-specific directory with read/write permissions
|
||
|
|
//
|
||
|
|
//nd:hostservice name=Storage permission=storage
|
||
|
|
type StorageService interface {
|
||
|
|
// GetStoragePath retrieves the persistent storage path, if allowed
|
||
|
|
//
|
||
|
|
//nd:hostfunc
|
||
|
|
GetStoragePath(ctx context.Context) string
|
||
|
|
}
|