You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(auth): add API token authentication support (#70)
Add token-based authentication as alternative to username/password.
Implements mutual exclusivity validation and environment variable support.
Add build tags to differentiate integration tests from unit tests.
Add unit tests for configs on both post-processor and builder.
Signed-off-by: Ville Vesilehto <ville.vesilehto@upcloud.com>
Copy file name to clipboardExpand all lines: .web-docs/components/builder/upcloud/README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,6 @@ The upcloud builder is used to generate storage templates on UpCloud.
9
9
10
10
<!-- Code generated from the comments of the Config struct in builder/upcloud/config.go; DO NOT EDIT MANUALLY -->
11
11
12
-
-`username` (string) - The username to use when interfacing with the UpCloud API.
13
-
14
-
-`password` (string) - The password to use when interfacing with the UpCloud API.
15
-
16
12
-`zone` (string) - The zone in which the server and template should be created (e.g. nl-ams1).
17
13
18
14
-`storage_uuid` (string) - The UUID of the storage you want to use as a template when creating the server.
@@ -34,6 +30,12 @@ The upcloud builder is used to generate storage templates on UpCloud.
34
30
35
31
<!-- Code generated from the comments of the Config struct in builder/upcloud/config.go; DO NOT EDIT MANUALLY -->
36
32
33
+
-`username` (string) - The username to use when interfacing with the UpCloud API.
34
+
35
+
-`password` (string) - The password to use when interfacing with the UpCloud API.
36
+
37
+
-`token` (string) - The API token to use when interfacing with the UpCloud API. This is mutually exclusive with username and password.
38
+
37
39
-`storage_name` (string) - The name of the storage that will be used to find the first matching storage in the list of existing templates.
38
40
39
41
Note that `storage_uuid` parameter has higher priority. You should use either `storage_uuid` or `storage_name` for not strict matching (e.g "ubuntu server 20.04").
0 commit comments