api

package
v2.8.8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCaller

func NewCaller(opts *CallerOptions) sacloud.APICaller

NewCaller 指定のオプションでsacloud.APICallerを構築して返す sacloud.APICallerはプロセス中はキャッシュされる(NewCallerを用いてオプションの違うCallerは取得不可)

Types

type CallerOptions

type CallerOptions struct {
	AccessToken       string
	AccessTokenSecret string

	APIRootURL     string
	DefaultZone    string
	AcceptLanguage string

	HTTPClient *http.Client

	HTTPRequestTimeout   int
	HTTPRequestRateLimit int

	RetryMax     int
	RetryWaitMax int
	RetryWaitMin int

	UserAgent string

	TraceAPI  bool
	TraceHTTP bool

	FakeMode      bool
	FakeStorePath string
}

CallerOptions sacloud.APICallerを作成する際のオプション

Jump to

Keyboard shortcuts

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