Giter VIP home page Giter VIP logo

nifcloud-sdk-go's Introduction

DEPRECATED: This repository is DEPRECATED. Switch to https://github.com/aokumasan/nifcloud-sdk-go-v2

NIFCLOUD SDK for Go

nifcloud-sdk-go is the UNOFFICIAL NIFCLOUD SDK for the Go programming language.

This repository was forked from aws-sdk-go and modified the following items.

  • Fix package name and import path.
  • Remove AWS services.
  • Add JSON models for NIFCLOUD and generate services.
  • Add signature version v2computing for NIFCLOUD Computing.
  • Add protocol computing and script.
  • Fix datetime format.

Features

  • ✔️ Full support for NIFCLOUD Computing / RDB / NAS / Script APIs (as of Nov 13, 2017)
  • ✔️ AWS-SDK-compatible data-driven architecture

Installing

$ go get -u github.com/alice02/nifcloud-sdk-go

or if you use dep, within your repo run:

$ dep ensure -add github.com/alice02/nifcloud-sdk-go

Usage

Write the following code.

package main

import (
        "fmt"

        "github.com/alice02/nifcloud-sdk-go/nifcloud"
        "github.com/alice02/nifcloud-sdk-go/nifcloud/credentials"
        "github.com/alice02/nifcloud-sdk-go/nifcloud/session"
        "github.com/alice02/nifcloud-sdk-go/service/computing"
)

func main() {
        sess := session.Must(session.NewSession(&nifcloud.Config{
                Region: nifcloud.String("jp-east-1"),
                Credentials: credentials.NewEnvCredentials(),
        }))

        client := computing.New(sess)

        fmt.Println(client.DescribeInstances(nil))
}

Set environment variables and execute the program.

$ export AWS_ACCESS_KEY_ID=<Your NIFCLOUD Access Key ID>
$ export AWS_SECRET_ACCESS_KEY=<Your NIFCLOUD Secret Access Key>
$ go run main.go

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.

nifcloud-sdk-go's People

Contributors

jasdel avatar xibz avatar lsegal avatar awstools avatar stripecodahale avatar aokumasan avatar rosenhouse avatar jjeffery avatar ncw avatar alice02 avatar jordonphillips avatar bpot avatar nabeken avatar euank avatar doug-aws avatar titanous avatar jsgv avatar tomwans avatar hyandell avatar stevenh avatar radeksimko avatar normj avatar josharian avatar bmatsuo avatar mengbiping avatar pwaller avatar inickgo avatar heriet avatar astropuffin avatar stefansundin avatar

Stargazers

fuku avatar kzmake avatar Shohei avatar

Watchers

James Cloos 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.