Documentation ¶
Index ¶
- func AddCollectionMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error
- func AddDataObjectMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error
- func AddResourceMeta(conn *connection.IRODSConnection, name string, metadata *types.IRODSMeta) error
- func CloseDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle) error
- func CopyDataObject(conn *connection.IRODSConnection, srcPath string, destPath string) error
- func CreateCollection(conn *connection.IRODSConnection, path string, recurse bool) error
- func CreateDataObject(conn *connection.IRODSConnection, path string, resource string, force bool) (*types.IRODSFileHandle, error)
- func DeleteCollection(conn *connection.IRODSConnection, path string, recurse bool, force bool) error
- func DeleteCollectionMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error
- func DeleteDataObject(conn *connection.IRODSConnection, path string, force bool) error
- func DeleteDataObjectMeta(conn *connection.IRODSConnection, path string, metadata *types.IRODSMeta) error
- func DeleteResourceMeta(conn *connection.IRODSConnection, name string, metadata *types.IRODSMeta) error
- func DownloadDataObject(conn *connection.IRODSConnection, irodsPath string, localPath string) error
- func GetCollection(conn *connection.IRODSConnection, path string) (*types.IRODSCollection, error)
- func GetDataObject(conn *connection.IRODSConnection, collection *types.IRODSCollection, ...) (*types.IRODSDataObject, error)
- func GetDataObjectMasterReplica(conn *connection.IRODSConnection, collection *types.IRODSCollection, ...) (*types.IRODSDataObject, error)
- func GetGroup(conn *connection.IRODSConnection, group string) (*types.IRODSUser, error)
- func GetResource(conn *connection.IRODSConnection, name string) (*types.IRODSResource, error)
- func ListCollectionAccess(conn *connection.IRODSConnection, path string) ([]*types.IRODSAccess, error)
- func ListCollectionMeta(conn *connection.IRODSConnection, path string) ([]*types.IRODSMeta, error)
- func ListDataObjectAccess(conn *connection.IRODSConnection, collection *types.IRODSCollection, ...) ([]*types.IRODSAccess, error)
- func ListDataObjectMeta(conn *connection.IRODSConnection, collection *types.IRODSCollection, ...) ([]*types.IRODSMeta, error)
- func ListDataObjects(conn *connection.IRODSConnection, collection *types.IRODSCollection) ([]*types.IRODSDataObject, error)
- func ListDataObjectsMasterReplica(conn *connection.IRODSConnection, collection *types.IRODSCollection) ([]*types.IRODSDataObject, error)
- func ListGroupUsers(conn *connection.IRODSConnection, group string) ([]*types.IRODSUser, error)
- func ListSubCollections(conn *connection.IRODSConnection, path string) ([]*types.IRODSCollection, error)
- func MoveCollection(conn *connection.IRODSConnection, srcPath string, destPath string) error
- func MoveDataObject(conn *connection.IRODSConnection, srcPath string, destPath string) error
- func OpenDataObject(conn *connection.IRODSConnection, path string, resource string, mode string) (*types.IRODSFileHandle, int64, error)
- func OpenDataObjectWithOperation(conn *connection.IRODSConnection, path string, resource string, mode string, ...) (*types.IRODSFileHandle, error)
- func ReadDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle, length int) ([]byte, error)
- func ReplicateDataObject(conn *connection.IRODSConnection, path string, resource string, update bool, ...) error
- func SeekDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle, offset int64, ...) (int64, error)
- func TrimDataObject(conn *connection.IRODSConnection, path string, resource string, minCopies int, ...) error
- func TruncateDataObject(conn *connection.IRODSConnection, path string, size int64) error
- func UploadDataObject(conn *connection.IRODSConnection, localPath string, irodsPath string, ...) error
- func WriteDataObject(conn *connection.IRODSConnection, handle *types.IRODSFileHandle, data []byte) error
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 AddResourceMeta ¶ added in v0.4.0
func AddResourceMeta(conn *connection.IRODSConnection, name string, metadata *types.IRODSMeta) error
AddResourceMeta sets metadata of a resource 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 DeleteResourceMeta ¶ added in v0.4.0
func DeleteResourceMeta(conn *connection.IRODSConnection, name string, metadata *types.IRODSMeta) error
DeleteResourceMeta sets metadata of a resource 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 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 GetGroup ¶ added in v0.3.0
func GetGroup(conn *connection.IRODSConnection, group string) (*types.IRODSUser, error)
GetGroup returns the group
func GetResource ¶ added in v0.4.0
func GetResource(conn *connection.IRODSConnection, name string) (*types.IRODSResource, error)
GetResource returns a data object for the path
func ListCollectionAccess ¶ added in v0.3.0
func ListCollectionAccess(conn *connection.IRODSConnection, path string) ([]*types.IRODSAccess, error)
ListCollectionAccess returns collection accesses for the path
func ListCollectionMeta ¶ added in v0.3.0
func ListCollectionMeta(conn *connection.IRODSConnection, path string) ([]*types.IRODSMeta, error)
ListCollectionMeta returns a colleciton metadata for the path
func ListDataObjectAccess ¶ added in v0.3.0
func ListDataObjectAccess(conn *connection.IRODSConnection, collection *types.IRODSCollection, filename string) ([]*types.IRODSAccess, error)
ListDataObjectAccess returns data object accesses for the path
func ListDataObjectMeta ¶ added in v0.3.0
func ListDataObjectMeta(conn *connection.IRODSConnection, collection *types.IRODSCollection, filename string) ([]*types.IRODSMeta, error)
ListDataObjectMeta 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 ListGroupUsers ¶ added in v0.3.0
func ListGroupUsers(conn *connection.IRODSConnection, group string) ([]*types.IRODSUser, error)
ListGroupUsers returns users in the group
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, adminFlag 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 TrimDataObject ¶ added in v0.4.0
func TrimDataObject(conn *connection.IRODSConnection, path string, resource string, minCopies int, minAgeMinutes int, adminFlag bool) error
TrimDataObject trims replicas for a data object
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.