allocationchange

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocationChange

type AllocationChange interface {
	ProcessChange(rootRef *fileref.Ref) error
	GetAffectedPath() string
	GetSize() int64
}

type AttributesChange

type AttributesChange struct {
	ConnectionID string             `json:"connection_id"`
	AllocationID string             `json:"allocation_id"`
	Path         string             `json:"path"`
	Attributes   fileref.Attributes `json:"attributes"` // new attributes
	// contains filtered or unexported fields
}

func (*AttributesChange) GetAffectedPath

func (ac *AttributesChange) GetAffectedPath() string

func (*AttributesChange) GetSize

func (n *AttributesChange) GetSize() int64

func (*AttributesChange) ProcessChange

func (ac *AttributesChange) ProcessChange(root *fileref.Ref) (err error)

type CopyFileChange

type CopyFileChange struct {
	ObjectTree fileref.RefEntity
	DestPath   string
	// 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) error

type DeleteFileChange

type DeleteFileChange struct {

	//File *fileref.FileRef
	ObjectTree 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) error

type NewFileChange

type NewFileChange struct {
	File *fileref.FileRef
	// 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) 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) 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) error

Jump to

Keyboard shortcuts

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