key

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

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

Documentation

Overview

Package key implements a keystore for managing encryption keys attached to files.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DAO

type DAO interface {
	Migrate(ctx context.Context) error
	ListEncryptedBlockInfo(ctx context.Context, nodeUuid string) ([]*encryption.RangedBlock, error)
	SaveEncryptedBlockInfo(ctx context.Context, nodeUuid string, b *encryption.RangedBlock) error
	GetEncryptedLegacyBlockInfo(ctx context.Context, nodeUuid string) (*encryption.RangedBlock, error)
	ClearNodeEncryptedPartBlockInfo(ctx context.Context, nodeUuid string, partId int) error
	ClearNodeEncryptedBlockInfo(ctx context.Context, nodeUuid string) error

	CopyNode(ctx context.Context, srcUuid, targetUuid string) error

	SaveNode(ctx context.Context, node *encryption.Node) error
	UpgradeNodeVersion(ctx context.Context, nodeUuid string) error
	GetNode(ctx context.Context, nodeUuid string) (*encryption.Node, error)
	DeleteNode(ctx context.Context, nodeUuid string) error

	SaveNodeKey(ctx context.Context, nodeKey *encryption.NodeKey) error
	GetNodeKey(ctx context.Context, node string, user string) (*encryption.NodeKey, error)
	DeleteNodeKey(ctx context.Context, nodeKey *encryption.NodeKey) error
}

type RangedBlocks

type RangedBlocks struct {
	OwnerId    string
	PartId     uint32
	SeqStart   uint32
	SeqEnd     uint32
	HeaderSize uint32
	BlockSize  uint32
	Nonce      []byte
}

Directories

Path Synopsis
dao
sql
service
Package grpc provides a pydio GRPC service for managing files encryption keys
Package grpc provides a pydio GRPC service for managing files encryption keys

Jump to

Keyboard shortcuts

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