Documentation ¶
Overview ¶
Package helper provides the functions to work with SiteHost API.
Index ¶
Constants ¶
View Source
const ( // JobStatusPending is the status for a pending job. JobStatusPending = "Pending" // JobStatusCompleted is the status for a completed job. JobStatusCompleted = "Completed" // JobStatusFailed is the status for a failed job. JobStatusFailed = "Failed" // JobRequestDelay is the time wait to send a new request to check the job status. JobRequestDelay = 10 * time.Second // JobRequestTimeout is the time to wait before timeout. JobRequestTimeout = 60 * time.Minute // JobRequestMinTimeout is the minimum time to wait before refreshes. JobRequestMinTimeout = 3 * time.Second // JobRequestNotFoundChecks is the number of times to allow not found. JobRequestNotFoundChecks = 60 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CombinedConfig ¶
CombinedConfig is a struct with API wrapper and the Config.
type Config ¶
Config is a wrapper to save the configuration connection from terraform.
func (*Config) Client ¶
func (c *Config) Client() (*CombinedConfig, diag.Diagnostics)
Client returns a new CombinedConfig instance.
Click to show internal directories.
Click to hide internal directories.