Compare commits

...

6 Commits

Author SHA1 Message Date
Lucio Lelii 3ad396ea2f removed 2024-11-29 11:10:08 +01:00
Lucio Lelii 9f8f9e375c updated 2024-11-29 10:59:46 +01:00
Lucio Lelii ad6022647e commit for release 2024-11-27 14:53:51 +01:00
Lucio Lelii 38ab992b28 jnr-fuse upgraded 2024-11-27 14:50:32 +01:00
Lucio Lelii bd31d63bd5 update 2024-11-27 14:49:01 +01:00
Lucio Lelii ca6476fffa shub client 2.0.0 integrated 2024-11-27 14:46:07 +01:00
4 changed files with 138 additions and 136 deletions

View File

@ -2,22 +2,20 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for org.gcube.data-access.sh-fuse-integration
## [v2.0.0] 2021-05-19
## [v2.1.0-SNAPSHOT]
### Feature
- porting to storagehub-client-2.0.0
## [v2.0.0] 2021-05-19
- porting to uma token [#21441]
## [v1.1.1] 2021-01-15
### Fixes
- issue on right displayed
- [#20417]
## [v1.1.0] 2020-09-07
### Fixes
- Solved issue on data download [#19651]

20
pom.xml
View File

@ -4,22 +4,28 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.data-access</groupId>
<artifactId>sh-fuse-integration</artifactId>
<version>2.0.0</version>
<version>2.1.0-SNAPSHOT</version>
<name>SHFuseIntegration</name>
<parent>
<artifactId>maven-parent</artifactId>
<groupId>org.gcube.tools</groupId>
<version>1.1.0</version>
<relativePath />
<version>1.2.0</version>
<relativePath/>
</parent>
<scm>
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/sh-fuse-integration.git</connection>
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/sh-fuse-integration.git</developerConnection>
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/sh-fuse-integration.git
</developerConnection>
<url>https://code-repo.d4science.org/gCubeSystem/sh-fuse-integration</url>
</scm>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>central</id>
@ -33,7 +39,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>2.0.1</version>
<version>2.4.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@ -44,7 +50,7 @@
<dependency>
<groupId>com.github.serceman</groupId>
<artifactId>jnr-fuse</artifactId>
<version>0.5.4</version>
<version>0.5.8</version>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
@ -59,12 +65,10 @@
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-library</artifactId>
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-model</artifactId>
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>

View File

@ -11,6 +11,7 @@ import org.cache2k.Cache;
import org.cache2k.Cache2kBuilder;
import org.gcube.common.authorization.library.AuthorizedTasks;
import org.gcube.common.authorization.library.provider.AccessTokenProvider;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.common.storagehub.client.dsl.ContainerType;
import org.gcube.common.storagehub.client.dsl.FileContainer;

View File

@ -1,6 +1,7 @@
package org.gcube.data.access.storagehub.fuse;
import java.nio.file.Paths;
import java.util.Objects;
import org.gcube.data.access.storagehub.fs.StorageHubFS;
import org.junit.Test;
@ -9,19 +10,17 @@ import jnr.ffi.Platform;
public class FuseTest {
@Test
public void mount() {
StorageHubFS memfs = new StorageHubFS("AccessToken","/gcube");
StorageHubFS memfs = new StorageHubFS("eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJSSklZNEpoNF9qdDdvNmREY0NlUDFfS1l0akcxVExXVW9oMkQ2Tzk1bFNBIn0","/gcube");
try {
String path;
switch (Platform.getNativePlatform().getOS()) {
case WINDOWS:
if (Objects.requireNonNull(Platform.getNativePlatform().getOS()) == Platform.OS.WINDOWS) {
System.out.println("Im here");
path = "J:\\";
break;
default:
} else
path = "/home/lucio/java/mnt";
}
memfs.mount(Paths.get(path), true, true);
} finally {
memfs.umount();