allocationchange

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Types and methods related to file operations (rename, move, delete, etc).

Index

Constants

This section is empty.

Variables

View Source
var ErrRefNotFound = errors.New("ref_not_found", "Ref not found")

Functions

This section is empty.

Types

type AllocationChange

type AllocationChange interface {
	ProcessChange(rootRef *fileref.Ref, fileIDMeta map[string]string) error
	GetAffectedPath() []string
	GetSize() int64
}

type CopyFileChange

type CopyFileChange struct {
	ObjectTree fileref.RefEntity
	DestPath   string
	Uuid       uuid.UUID
	// contains filtered or unexported fields
}

func (*CopyFileChange) GetAffectedPath

func (n *CopyFileChange) GetAffectedPath() []string

func (*CopyFileChange) GetSize

func (n *CopyFileChange) GetSize() int64

func (*CopyFileChange) ProcessChange

func (ch *CopyFileChange) ProcessChange(rootRef *fileref.Ref, fileIDMeta map[string]string) (err error)

type DeleteFileChange

type DeleteFileChange struct {
	FileMetaRef fileref.RefEntity
	// contains filtered or unexported fields
}

func (*DeleteFileChange) GetAffectedPath

func (n *DeleteFileChange) GetAffectedPath() []string

func (*DeleteFileChange) GetSize

func (n *DeleteFileChange) GetSize() int64

func (*DeleteFileChange) ProcessChange

func (ch *DeleteFileChange) ProcessChange(rootRef *fileref.Ref, _ map[string]string) (err error)

type DirCreateChange added in v1.8.6

type DirCreateChange struct {
	Timestamp  common.Timestamp
	RemotePath string
	Uuid       uuid.UUID
}

func (*DirCreateChange) GetAffectedPath added in v1.8.6

func (d *DirCreateChange) GetAffectedPath() []string

func (*DirCreateChange) GetSize added in v1.8.6

func (d *DirCreateChange) GetSize() int64

func (*DirCreateChange) ProcessChange added in v1.8.6

func (d *DirCreateChange) ProcessChange(rootRef *fileref.Ref, FileIDMeta map[string]string) (err error)

type EmptyFileChange added in v1.8.17

type EmptyFileChange struct {
	// contains filtered or unexported fields
}

func (*EmptyFileChange) GetAffectedPath added in v1.8.17

func (ch *EmptyFileChange) GetAffectedPath() []string

func (*EmptyFileChange) GetSize added in v1.8.17

func (ch *EmptyFileChange) GetSize() int64

func (*EmptyFileChange) ProcessChange added in v1.8.17

func (ch *EmptyFileChange) ProcessChange(rootRef *fileref.Ref, _ map[string]string) (err error)

type MoveFileChange added in v1.8.10

type MoveFileChange struct {
	ObjectTree fileref.RefEntity
	DestPath   string
	Uuid       uuid.UUID
	// contains filtered or unexported fields
}

func (*MoveFileChange) GetAffectedPath added in v1.8.10

func (n *MoveFileChange) GetAffectedPath() []string

func (*MoveFileChange) GetSize added in v1.8.10

func (n *MoveFileChange) GetSize() int64

func (*MoveFileChange) ProcessChange added in v1.8.10

func (ch *MoveFileChange) ProcessChange(rootRef *fileref.Ref, fileIDMeta map[string]string) (err error)

type NewFileChange

type NewFileChange struct {
	File *fileref.FileRef
	Uuid uuid.UUID
	// contains filtered or unexported fields
}

func (*NewFileChange) GetAffectedPath

func (n *NewFileChange) GetAffectedPath() []string

func (*NewFileChange) GetSize

func (n *NewFileChange) GetSize() int64

func (*NewFileChange) ProcessChange

func (ch *NewFileChange) ProcessChange(rootRef *fileref.Ref, fileIDMeta map[string]string) (err error)

type RenameFileChange

type RenameFileChange struct {
	ObjectTree fileref.RefEntity
	NewName    string
	// contains filtered or unexported fields
}

func (*RenameFileChange) GetAffectedPath

func (n *RenameFileChange) GetAffectedPath() []string

func (*RenameFileChange) GetSize

func (n *RenameFileChange) GetSize() int64

func (*RenameFileChange) ProcessChange

func (ch *RenameFileChange) ProcessChange(rootRef *fileref.Ref, _ map[string]string) (err error)

type UpdateFileChange

type UpdateFileChange struct {
	OldFile *fileref.FileRef
	NewFile *fileref.FileRef
	// contains filtered or unexported fields
}

func (*UpdateFileChange) GetAffectedPath

func (n *UpdateFileChange) GetAffectedPath() []string

func (*UpdateFileChange) GetSize

func (n *UpdateFileChange) GetSize() int64

func (*UpdateFileChange) ProcessChange

func (ch *UpdateFileChange) ProcessChange(rootRef *fileref.Ref, _ map[string]string) (err error)

Jump to

Keyboard shortcuts

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