Documentation ¶
Index ¶
- Variables
- func AddTestDNS(t *testing.T, name string) (*iaas.DNS, func())
- func AddTestELB(t *testing.T, name string) func()
- func AddTestServer(t *testing.T, name string) (*iaas.Server, func())
- func AddTestSwitch(t *testing.T, name string) (*iaas.Switch, func())
- func StringOrFilePath(t *testing.T, s string) config.StringOrFilePath
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Zone = "is1a" APIClient = api.NewCallerWithOptions(&api.CallerOptions{ Options: &client.Options{ AccessToken: "fake", AccessTokenSecret: "fake", UserAgent: "sacloud/autoscaler/fake/test", Trace: os.Getenv("SAKURACLOUD_TRACE") != "", }, TraceAPI: os.Getenv("SAKURACLOUD_TRACE") != "", FakeMode: true, }) Logger = log.NewLogger(&log.LoggerOption{ Writer: os.Stderr, JSON: false, TimeStamp: true, Caller: true, Level: slog.LevelDebug, }) )
Functions ¶
func AddTestDNS ¶ added in v0.0.2
func AddTestELB ¶ added in v0.4.0
func AddTestServer ¶ added in v0.0.2
func AddTestSwitch ¶ added in v0.1.0
func StringOrFilePath ¶ added in v0.4.0
func StringOrFilePath(t *testing.T, s string) config.StringOrFilePath
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.