api

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 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を構築して返す

func SetupFakeDefaults added in v2.18.1

func SetupFakeDefaults()

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
	OpenTelemetry        bool
	OpenTelemetryOptions []otel.Option

	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