Documentation ¶
Overview ¶
Package fileblob provides a bucket implementation that operates on the local filesystem. This should not be used for production: it is intended for local development.
Blob names must only contain alphanumeric characters, slashes, periods, spaces, underscores, and dashes. Repeated slashes, a leading "./" or "../", or the sequence "/./" is not permitted. This is to ensure that blob names map cleanly onto files underneath a directory.
Package fileblob provides a bucket implementation that operates on the local filesystem. This should not be used for production: it is intended for local development.
Blob names must only contain alphanumeric characters, slashes, periods, spaces, underscores, and dashes. Repeated slashes, a leading "./" or "../", or the sequence "/./" is not permitted. This is to ensure that blob names map cleanly onto files underneath a directory.
Index ¶
- Constants
- Variables
- func NewBucket(dir string) (*blob.Bucket, error)
- func OpenSqlBucket(dir string) (*blob.Bucket, error)
- type InfoDataWriter
- type Sqlbucket
- func (b *Sqlbucket) Attributes(ctx context.Context, key string, isUID bool) (*driver.ObjectAttrs, error)
- func (b *Sqlbucket) CreateArea(ctx context.Context, area string, groups []string) error
- func (b *Sqlbucket) Delete(ctx context.Context, key string) error
- func (b *Sqlbucket) Move(ctx context.Context, keySrc string, keyDst string) error
- func (b *Sqlbucket) NewRangeReader(ctx context.Context, key string, offset, length int64, exactKeyName bool) (driver.Reader, error)
- func (b *Sqlbucket) NewTypedWriter(ctx context.Context, key string, contentType string, opt *driver.WriterOptions) (driver.Writer, error)
- func (b *Sqlbucket) PutMetadataList(ctx context.Context, name string, metaList []map[string]string) error
Constants ¶
const APP_FILE_ID string = "258081623"
const CHECKPOINT_INFO_ENTRY = "checkpoint"
const SCHEMA_VERSION string = "1"
const USER_UUID_INFO_ENTRY = "useruuid"
Variables ¶
var AttrsExt = ""
var DBName = ""
var DataDir = ""
var FTSExt = ""
var MetaDir = ""
var RevisionDir = ""
Functions ¶
Types ¶
type InfoDataWriter ¶
type InfoDataWriter struct {
// contains filtered or unexported fields
}
func (InfoDataWriter) Close ¶
func (w InfoDataWriter) Close() error
type Sqlbucket ¶
type Sqlbucket struct {
// contains filtered or unexported fields
}
func OpenSqlBucketDirect ¶
NewBucketDirect creates a new bucket that reads and writes to dir. dir must exist.
func (*Sqlbucket) Attributes ¶
func (*Sqlbucket) CreateArea ¶
func (*Sqlbucket) Move ¶
Move is used only by the revision system when creating a new revision point before updating object with new contents (no need to delete previous object or change metadata) and when moving objects to the recycle bin