Giter Club home page Giter Club logo

gohaveazurestorage's Introduction

GoHaveAzureStorage

GoHaveAzureStorage is a Azure Storage Library for Go. As The project is brand new, it is currently in a an alpha state, where only Azure Table Storage is supported. Take a look at the road map, for the planned development on the library.

Installation

go get github.com/ChristianHenrikReich/gohaveazurestorage

Get Started

More detailed information about usage is being written in the Wiki. Tablestorageproxy_test.go is also a good source for information.

package main

import (
	"fmt"
	"gohaveazurestorage"
)

//Either the primary or the secondary key found on Azure Portal
var key = "PrimaryOrSecondaryKey"

//Storage account name
var account = "Account"

func main() {
	// Create an instance of the lib
	goHaveAzureStorage := gohaveazurestorage.New(account, key)
  
  // Example with debug, if last parameter is true then request/response sessions dumps is written to console
  //goHaveAzureStorage := gohaveazurestorage.NewWithDebug(account, key, true)

	// From the lib instace, we can create multiple client instances
	tableStorage := goHaveAzureStorage.TableStorage()

	//Creating a table
	httpStatusCode := tableStorage.CreateTable("Table")
	if httpStatusCode != 201 {
		fmt.Println("Create table error")
	}
}

Note on running the test

The tests works, but they sometimes falls depending on the connection to Azure.

Road map

  • Table Storage
    • Implement preflight command
    • Implement support for shared keys
    • Implement support for CORS
  • Get started on Blob Storage
  • Get started on Queue Storage
  • Get started on File Storage

gohaveazurestorage's People

Contributors

christianhenrikreich avatar vodolaz095 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.