Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

terminalsin-archive/bunnycdn-storage-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


GitHub issues GitHub forks GitHub stars GitHub license

What is BunnyCDN Edge Storage?

Edge Storage is a cloud storage solution provided by bunny.net that automatically replicates your data to multiple regions around the world. It integrates tightly with the bunny.net CDN and was designed to be the fastest performing global storage solution thanks to smart geographical load balancing.

How to use the API?

It's very simple, here's an example (SandboxStoreTest.java)

private static final String DUMMY_TEST_KEY = "344c04e4-9f81-4496-b63a-d79f6ac21e46";

public void order1Test() {
    final StorageAPI bunny = new BunnyJavaClient(DUMMY_TEST_KEY).getStorageAPI(null);
    bunny.uploadFile("testZone", "test/path/cool", "testfile.jar", new File("mytest.jar"));
    bunny.downloadFile("testZone", "test/path/cool", "testfile.jar");
    bunny.deleteFile("testZone", "test/path/cool", "testfile.jar");
}

How to download?

With maven:

<!-- Step one, add this -->
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>


<!-- Step 2, add this in your dependencies tab -->
<dependency>
    <groupId>com.github.terminalsin</groupId>
    <artifactId>bunnycdn-storage-java</artifactId>
    <version>1.0.2</version>
</dependency>

With gradle:

// Add this first
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

// Then this


dependencies {
    implementation 'com.github.terminalsin:bunnycdn-storage-java:1.0.2'
}

Dependencies

None :) (Okay fine we use JUnit for testing but shhh)

Sponsors

Your kit

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.

Contact

Issues tab. Won't be offering direct support.