crypt

package
v3.35.3-8Mi Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

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"`
}

type Crypt

type Crypt struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*Crypt) Config

func (d *Crypt) Config() driver.Config

func (*Crypt) Copy

func (d *Crypt) Copy(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Crypt) Drop

func (d *Crypt) Drop(ctx context.Context) error

func (*Crypt) Get

func (d *Crypt) Get(ctx context.Context, path string) (model.Obj, error)

func (*Crypt) GetAddition

func (d *Crypt) GetAddition() driver.Additional

func (*Crypt) Init

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 (*Crypt) List

func (d *Crypt) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*Crypt) MakeDir

func (d *Crypt) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*Crypt) Move

func (d *Crypt) Move(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Crypt) Put

func (d *Crypt) Put(ctx context.Context, dstDir model.Obj, streamer model.FileStreamer, up driver.UpdateProgress) error

func (*Crypt) Remove

func (d *Crypt) Remove(ctx context.Context, obj model.Obj) error

func (*Crypt) Rename

func (d *Crypt) Rename(ctx context.Context, srcObj model.Obj, newName string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL