fs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: BSD-3-Clause Imports: 11 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCollectionMeta added in v0.2.0

func AddCollectionMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error

AddCollectionMeta sets metadata of a data object for the path to the given key values. metadata.AVUID is ignored

func AddDataObjectMeta added in v0.2.0

func AddDataObjectMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error

AddDataObjectMeta sets metadata of a data object for the path to the given key values. metadata.AVUID is ignored

func CloseDataObject

func CloseDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle) error

CloseDataObject closes a file handle of a data object

func CopyDataObject

func CopyDataObject(conn *connection.IRODSConnection, srcPath string, destPath string) error

CopyDataObject creates a copy of a data object for the path

func CreateCollection

func CreateCollection(conn *connection.IRODSConnection, path string, recurse bool) error

CreateCollection creates a collection for the path

func CreateDataObject

func CreateDataObject(conn *connection.IRODSConnection, path string, resource string, force bool) (*types.IRODSFileHandle, error)

CreateDataObject creates a data object for the path, returns a file handle

func DeleteCollection

func DeleteCollection(conn *connection.IRODSConnection, path string, recurse bool, force bool) error

DeleteCollection deletes a collection for the path

func DeleteCollectionMeta added in v0.2.0

func DeleteCollectionMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error

DeleteCollectionMeta sets metadata of a data object for the path to the given key values. The metadata AVU is selected on basis of AVUID if it is supplied, otherwise on basis of Name, Value and Units.

func DeleteDataObject

func DeleteDataObject(conn *connection.IRODSConnection, path string, force bool) error

DeleteDataObject deletes a data object for the path

func DeleteDataObjectMeta added in v0.2.0

func DeleteDataObjectMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error

DeleteDataObjectMeta sets metadata of a data object for the path to the given key values. The metadata AVU is selected on basis of AVUID if it is supplied, otherwise on basis of Name, Value and Units.

func DownloadDataObject

func DownloadDataObject(conn *connection.IRODSConnection, irodsPath string, localPath string) error

DownloadDataObject downloads a data object at the iRODS path to the local path

func GetCollection

func GetCollection(conn *connection.IRODSConnection, path string) (*types.IRODSCollection, error)

GetCollection returns a collection for the path

func GetCollectionMeta

func GetCollectionMeta(conn *connection.IRODSConnection, path string) ([]*types.IRODSMeta, error)

GetCollectionMeta returns a colleciton metadata for the path

func GetDataObject

func GetDataObject(conn *connection.IRODSConnection, collection *types.IRODSCollection, filename string) (*types.IRODSDataObject, error)

GetDataObject returns a data object for the path

func GetDataObjectMasterReplica

func GetDataObjectMasterReplica(conn *connection.IRODSConnection, collection *types.IRODSCollection, filename string) (*types.IRODSDataObject, error)

GetDataObjectMasterReplica returns a data object for the path, returns only master replica

func GetDataObjectMeta

func GetDataObjectMeta(conn *connection.IRODSConnection, collection *types.IRODSCollection, filename string) ([]*types.IRODSMeta, error)

GetDataObjectMeta returns a data object metadata for the path

func ListDataObjects

func ListDataObjects(conn *connection.IRODSConnection, collection *types.IRODSCollection) ([]*types.IRODSDataObject, error)

ListDataObjects lists data objects in the given collection

func ListDataObjectsMasterReplica

func ListDataObjectsMasterReplica(conn *connection.IRODSConnection, collection *types.IRODSCollection) ([]*types.IRODSDataObject, error)

ListDataObjectsMasterReplica lists data objects in the given collection, returns only master replica

func ListSubCollections

func ListSubCollections(conn *connection.IRODSConnection, path string) ([]*types.IRODSCollection, error)

ListSubCollections lists subcollections in the given collection

func MoveCollection

func MoveCollection(conn *connection.IRODSConnection, srcPath string, destPath string) error

MoveCollection moves a collection for the path to another path

func MoveDataObject

func MoveDataObject(conn *connection.IRODSConnection, srcPath string, destPath string) error

MoveDataObject moves a data object for the path to another path

func OpenDataObject

func OpenDataObject(conn *connection.IRODSConnection, path string, resource string, mode string) (*types.IRODSFileHandle, int64, error)

OpenDataObject opens a data object for the path, returns a file handle

func OpenDataObjectWithOperation

func OpenDataObjectWithOperation(conn *connection.IRODSConnection, path string, resource string, mode string, oper common.OperationType) (*types.IRODSFileHandle, error)

OpenDataObjectWithOperation opens a data object for the path, returns a file handle

func ReadDataObject

func ReadDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle, length int) ([]byte, error)

ReadDataObject reads data from a data object

func ReplicateDataObject

func ReplicateDataObject(conn *connection.IRODSConnection, path string, resource string, update bool) error

ReplicateDataObject replicates a data object for the path to the given reousrce

func SeekDataObject

func SeekDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle, offset int64, whence types.Whence) (int64, error)

SeekDataObject moves file pointer of a data object, returns offset

func TruncateDataObject

func TruncateDataObject(conn *connection.IRODSConnection, path string, size int64) error

TruncateDataObject truncates a data object for the path to the given size

func UploadDataObject

func UploadDataObject(conn *connection.IRODSConnection, localPath string, irodsPath string, resource string, replicate bool) error

UploadDataObject put a data object at the local path to the iRODS path

func WriteDataObject

func WriteDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle, data []byte) error

WriteDataObject writes data to a data object

Types

This section is empty.

Jump to

Keyboard shortcuts

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