fs

package
v1.9.13-beta2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 27 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFSFile added in v1.8.4

type CFSFile struct {
	Label string `json:"label"`
}

type CleanPlan added in v1.8.4

type CleanPlan struct {
	Dir           string
	FilesToRemove []*FileInfo
	Label         string
}

type FSClient

type FSClient struct {
	Quiet bool
	// contains filtered or unexported fields
}

func CreateFSClient

func CreateFSClient(coloniesClient *client.ColoniesClient, colonyName string, executorPrvKey string) (*FSClient, error)

func CreateFSClientWithColonyFS

func CreateFSClientWithColonyFS(coloniesClient *client.ColoniesClient, colonyName string, executorPrvKey string, serverURL string) (*FSClient, error)

func (*FSClient) ApplyCleanPlan added in v1.8.4

func (fsClient *FSClient) ApplyCleanPlan(cleanPlan *CleanPlan) error

func (*FSClient) ApplySyncPlan

func (fsClient *FSClient) ApplySyncPlan(syncPlan *SyncPlan) error

func (*FSClient) CalcCleanPlan added in v1.8.4

func (fsClient *FSClient) CalcCleanPlan(dir string, label string) (*CleanPlan, error)

func (*FSClient) CalcCleanPlans added in v1.8.4

func (fsClient *FSClient) CalcCleanPlans(dir string, label string) ([]*CleanPlan, error)

func (*FSClient) CalcSyncPlan

func (fsClient *FSClient) CalcSyncPlan(dir string, label string, keepLocal bool) (*SyncPlan, error)

func (*FSClient) CalcSyncPlans added in v1.6.0

func (fsClient *FSClient) CalcSyncPlans(dir string, label string, keepLocal bool) ([]*SyncPlan, error)

func (*FSClient) Download

func (fsClient *FSClient) Download(colonyName string, fileID string, downloadDir string) error

func (*FSClient) DownloadSnapshot

func (fsClient *FSClient) DownloadSnapshot(snapshotID string, downloadDir string) error

func (*FSClient) RemoveAllFilesWithLabel

func (fsClient *FSClient) RemoveAllFilesWithLabel(label string) error

func (*FSClient) RemoveFileByID

func (fsClient *FSClient) RemoveFileByID(colonyName string, fileID string) error

func (*FSClient) RemoveFileByName

func (fsClient *FSClient) RemoveFileByName(colonyName string, label string, name string) error

type FileInfo

type FileInfo struct {
	Name       string
	Checksum   string
	Size       int64
	S3Filename string
	Dir        bool
}

type SyncPlan

type SyncPlan struct {
	Dir           string
	LocalMissing  []*FileInfo
	RemoteMissing []*FileInfo
	Conflicts     []*FileInfo
	KeepLocal     bool
	Label         string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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