Documentation
¶
Index ¶
- type Addition
- type Crypt
- func (d *Crypt) Config() driver.Config
- func (d *Crypt) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Crypt) Drop(ctx context.Context) error
- func (d *Crypt) Get(ctx context.Context, path string) (model.Obj, error)
- func (d *Crypt) GetAddition() driver.Additional
- func (d *Crypt) Init(ctx context.Context) error
- func (d *Crypt) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Crypt) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Crypt) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Crypt) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Crypt) Put(ctx context.Context, dstDir model.Obj, streamer model.FileStreamer, ...) error
- func (d *Crypt) Remove(ctx context.Context, obj model.Obj) error
- func (d *Crypt) Rename(ctx context.Context, srcObj model.Obj, newName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
FileNameEnc string `json:"filename_encryption" type:"select" required:"true" options:"off,standard,obfuscate" default:"off"`
DirNameEnc string `json:"directory_name_encryption" type:"select" required:"true" options:"false,true" default:"false"`
RemotePath string `json:"remote_path" required:"true" help:"This is where the encrypted data stores"`
Password string `json:"password" required:"true" confidential:"true" help:"the main password"`
Salt string `` /* 127-byte string literal not displayed */
EncryptedSuffix string `json:"encrypted_suffix" required:"true" default:".bin" help:"for advanced user only! encrypted files will have this suffix"`
FileNameEncoding string `` /* 136-byte string literal not displayed */
Thumbnail bool `json:"thumbnail" required:"true" default:"false" help:"enable thumbnail which pre-generated under .thumbnails folder"`
ShowHidden bool `json:"show_hidden" default:"true" required:"false" help:"show hidden directories and files"`
}
Click to show internal directories.
Click to hide internal directories.