sakuracloud

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// KB 1000B
	KB int64 = 1000
	// MB 1000KB
	MB = 1000 * KB
	// GB 1000MB
	GB = 1000 * MB
	// TB 1000GB
	TB = 1000 * GB
	// PB 1000TB
	PB = 1000 * TB

	// KiB 1024B
	KiB int64 = 1024
	// MiB 1024KiB
	MiB = 1024 * KiB
	// GiB 1024MiB
	GiB = 1024 * MiB
	// TiB 1024GiB
	TiB = 1024 * GiB
	// PiB 1024TiB
	PiB = 1024 * TiB
)

Variables

View Source
var (
	// Version app version
	Version = "0.0.0"
	// Revision git commit short commithash
	Revision = "xxxxxx" // set on build
)

Functions

func FullVersion

func FullVersion() string

FullVersion return sackerel full version text

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

func StringSliceFromState added in v1.1.0

func StringSliceFromState(is *terraform.InstanceState, key string) []string

StringSliceFromState returns string slice from *terraform.InstanceState.Attributes

Types

type APIClient

type APIClient struct {
	*api.Client
	MarkerTagName string
}

APIClient for SakuraCloud API

type Config

type Config struct {
	AccessToken       string
	AccessTokenSecret string
	Zone              string
	TimeoutMinute     int
	TraceMode         bool
	UseMarkerTags     bool
	MarkerTagName     string
	AcceptLanguage    string
	APIRootURL        string
	RetryMax          int
	RetryInterval     int
}

Config type of SakuraCloud Config

func (*Config) NewClient

func (c *Config) NewClient() *APIClient

NewClient returns new API Client for SakuraCloud

Source Files

Jump to

Keyboard shortcuts

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