@groovy.transform.CompileStatic class GitlabBackend extends OpenTofuBackend
Supports remote state storage in Gitlab.
Fields inherited from class | Fields |
---|---|
class OpenTofuBackend |
parent |
Constructor and description |
---|
GitlabBackend
(String name, OpenTofuExtension parent, Project tempProjectRef) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
setAccessToken(Object tok) Set authentication token as a secret. |
|
void |
setAddress(Object address) Sets the Gitlab address for storing state. |
|
void |
setRetryMax(Integer value) The number of HTTP request retries. |
|
void |
setRetryWaitMax(Integer value) The maximum time in seconds to wait between HTTP request attempts. |
|
void |
setRetryWaitMin(Integer value) The minimum time in seconds to wait between HTTP request attempts. |
|
void |
setUsername(Object tok) Sets the username. |
Set authentication token as a secret.
This is evaluated immediately and encrypted in memory.
tok
- Auth token.Sets the Gitlab address for storing state.
address
- Anything convertible to URI and in the form of
https://<GITLAB_HOST>/api/v4/projects/<PROJECT_ID>/terraform/state/<STATE-NAME>
The number of HTTP request retries.
value
- Number of retries.The maximum time in seconds to wait between HTTP request attempts.
value
- Time in seconds.The minimum time in seconds to wait between HTTP request attempts.
value
- Time in seconds.Sets the username.
This is evaluated immediately and encrypted in memory.
tok
- User name.