mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add YAML support to server (#6934)
This commit is contained in:
+5
-11
@@ -371,27 +371,21 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
|
||||
"flag": "string",
|
||||
"flag_shorthand": "string",
|
||||
"group": {
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {
|
||||
"children": [{}],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
"parent": {},
|
||||
"yaml": "string"
|
||||
},
|
||||
"yaml": "string"
|
||||
},
|
||||
"hidden": true,
|
||||
"name": "string",
|
||||
"use_instead": [{}],
|
||||
"value": null,
|
||||
"value_source": "",
|
||||
"yaml": "string"
|
||||
}
|
||||
]
|
||||
|
||||
+44
-50
@@ -384,33 +384,26 @@
|
||||
|
||||
```json
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {
|
||||
"children": [{}],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
"parent": {},
|
||||
"yaml": "string"
|
||||
},
|
||||
"yaml": "string"
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------- | --------------------------------------- | -------- | ------------ | ----------- |
|
||||
| `children` | array of [clibase.Group](#clibasegroup) | false | | |
|
||||
| `description` | string | false | | |
|
||||
| `name` | string | false | | |
|
||||
| `parent` | [clibase.Group](#clibasegroup) | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------- | ------------------------------ | -------- | ------------ | ----------- |
|
||||
| `description` | string | false | | |
|
||||
| `name` | string | false | | |
|
||||
| `parent` | [clibase.Group](#clibasegroup) | false | | |
|
||||
| `yaml` | string | false | | |
|
||||
|
||||
## clibase.HostPort
|
||||
|
||||
@@ -442,22 +435,15 @@
|
||||
"flag": "string",
|
||||
"flag_shorthand": "string",
|
||||
"group": {
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {
|
||||
"children": [{}],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
"parent": {},
|
||||
"yaml": "string"
|
||||
},
|
||||
"yaml": "string"
|
||||
},
|
||||
"hidden": true,
|
||||
"name": "string",
|
||||
@@ -473,31 +459,26 @@
|
||||
"flag": "string",
|
||||
"flag_shorthand": "string",
|
||||
"group": {
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {
|
||||
"children": [{}],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
"parent": {},
|
||||
"yaml": "string"
|
||||
},
|
||||
"yaml": "string"
|
||||
},
|
||||
"hidden": true,
|
||||
"name": "string",
|
||||
"use_instead": [],
|
||||
"value": null,
|
||||
"value_source": "",
|
||||
"yaml": "string"
|
||||
}
|
||||
],
|
||||
"value": null,
|
||||
"value_source": "",
|
||||
"yaml": "string"
|
||||
}
|
||||
```
|
||||
@@ -517,6 +498,7 @@
|
||||
| `name` | string | false | | |
|
||||
| `use_instead` | array of [clibase.Option](#clibaseoption) | false | | Use instead is a list of options that should be used instead of this one. The field is used to generate a deprecation warning. |
|
||||
| `value` | any | false | | Value includes the types listed in values.go. |
|
||||
| `value_source` | [clibase.ValueSource](#clibasevaluesource) | false | | |
|
||||
| `yaml` | string | false | | Yaml is the YAML key used to configure this option. If unset, YAML configuring is disabled. |
|
||||
|
||||
## clibase.Struct-array_codersdk_GitAuthConfig
|
||||
@@ -599,6 +581,24 @@
|
||||
| `scheme` | string | false | | |
|
||||
| `user` | [url.Userinfo](#urluserinfo) | false | | username and password information |
|
||||
|
||||
## clibase.ValueSource
|
||||
|
||||
```json
|
||||
""
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
| Value |
|
||||
| --------- |
|
||||
| `` |
|
||||
| `flag` |
|
||||
| `env` |
|
||||
| `yaml` |
|
||||
| `default` |
|
||||
|
||||
## coderd.SCIMUser
|
||||
|
||||
```json
|
||||
@@ -1997,27 +1997,21 @@ CreateParameterRequest is a structure used to create a new parameter value for a
|
||||
"flag": "string",
|
||||
"flag_shorthand": "string",
|
||||
"group": {
|
||||
"children": [
|
||||
{
|
||||
"children": [],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {
|
||||
"children": [{}],
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"parent": {}
|
||||
}
|
||||
"parent": {},
|
||||
"yaml": "string"
|
||||
},
|
||||
"yaml": "string"
|
||||
},
|
||||
"hidden": true,
|
||||
"name": "string",
|
||||
"use_instead": [{}],
|
||||
"value": null,
|
||||
"value_source": "",
|
||||
"yaml": "string"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user