nifcloud

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRegion = JPEast1

DefaultRegion is jp-east-1

View Source
var JPEast1 = Region{
	"jp-east-1",
	"https://computing.jp-east-1.api.cloud.nifty.com/api/",
}

JPEast1 is jp-east-1 region

View Source
var JPEast2 = Region{
	"jp-east-2",
	"https://computing.jp-east-2.api.cloud.nifty.com/api/",
}

JPEast2 is jp-east-2 region

View Source
var JPEast3 = Region{
	"jp-east-3",
	"https://computing.jp-east-3.api.cloud.nifty.com/api/",
}

JPEast3 is jp-east-3 region

View Source
var JPEast4 = Region{
	"jp-east-4",
	"https://computing.jp-east-4.api.cloud.nifty.com/api/",
}

JPEast4 is jp-east-4 region

View Source
var JPWest1 = Region{
	"jp-west-1",
	"https://computing.jp-west-1.api.cloud.nifty.com/api/",
}

JPWest1 is jp-west-1 region

View Source
var Regions = map[string]Region{
	JPEast1.Name: JPEast1,
	JPEast2.Name: JPEast2,
	JPEast3.Name: JPEast3,
	JPEast4.Name: JPEast4,
	JPWest1.Name: JPWest1,
	USEast1.Name: USEast1,
}

Regions is map that <regionName, Region>

View Source
var USEast1 = Region{
	"us-east-1",
	"https://computing.us-east-1.api.cloud.nifty.com/api/",
}

USEast1 is us-east-1 region

Functions

This section is empty.

Types

type Client

type Client interface {
	CallComputingAPI(params map[string]string) (res string, err error)
}

Client interface

func NewClient

func NewClient(regionName, accessKey, secretKey string, debug bool) Client

NewClient returns Client interface

type Credential

type Credential interface {
	Sign2(req *http.Request)
}

Credential interface

func NewCredential

func NewCredential(accesskey, secretkey string) Credential

NewCredential returns Credential

type Region

type Region struct {
	Name              string
	ComputingEndpoint string
}

Region is struct of Region

func NewRegion

func NewRegion(regionName string) (region Region)

NewRegion returs Region

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL