Documentation ¶
Index ¶
- Variables
- type FileRepo
- func (f *FileRepo) Add(tenant string, name string, fileType int32, bytes []byte) error
- func (f *FileRepo) File(tenant string, name string) ([]byte, error)
- func (f *FileRepo) Files() ([]*pb.TenantFiles, error)
- func (f *FileRepo) GetMetadataForFile(tenant string, name string) (*Metadata, error)
- func (f *FileRepo) WriteMetadataForFile(tenant string, name string, fileType int32) error
- type MemRepo
- type Metadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileExists = errors.New("file exists")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type FileRepo ¶
type FileRepo struct {
// contains filtered or unexported fields
}
func NewFileRepo ¶
func (*FileRepo) GetMetadataForFile ¶
Click to show internal directories.
Click to hide internal directories.