Skip to content

Commit d6d8009

Browse files
committed
make gen/lint
1 parent 9ca40fc commit d6d8009

File tree

5 files changed

+43
-7
lines changed

5 files changed

+43
-7
lines changed

agent/agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,12 +1463,12 @@ func expandDirectory(dir string) (string, error) {
14631463
// EnvAgentSubsystem is the environment variable used to denote the
14641464
// specialized environment in which the agent is running
14651465
// (e.g. envbox, envbuilder).
1466-
const EnvAgentSubsytem = "CODER_AGENT_SUBSYSTEM"
1466+
const EnvAgentSubsystem = "CODER_AGENT_SUBSYSTEM"
14671467

14681468
// SubsystemFromEnv returns the subsystem (if any) the agent
14691469
// is running inside of.
14701470
func SubsystemFromEnv() agentsdk.AgentSubsystem {
1471-
ss := os.Getenv(EnvAgentSubsytem)
1471+
ss := os.Getenv(EnvAgentSubsystem)
14721472
switch agentsdk.AgentSubsystem(ss) {
14731473
case agentsdk.AgentSubsystemEnvbox:
14741474
return agentsdk.AgentSubsystemEnvbox

coderd/apidoc/docs.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codersdk/agentsdk/agentsdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func (c *Client) PostLifecycle(ctx context.Context, req PostLifecycleRequest) er
552552
type PostStartupRequest struct {
553553
Version string `json:"version"`
554554
ExpandedDirectory string `json:"expanded_directory"`
555-
Subsystem AgentSubsystem `json:"subsytem"`
555+
Subsystem AgentSubsystem `json:"subsystem"`
556556
}
557557

558558
func (c *Client) PostStartup(ctx context.Context, req PostStartupRequest) error {

docs/api/schemas.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@
5656
| `counter` |
5757
| `gauge` |
5858

59+
## agentsdk.AgentSubsystem
60+
61+
```json
62+
"envbox"
63+
```
64+
65+
### Properties
66+
67+
#### Enumerated Values
68+
69+
| Value |
70+
| -------- |
71+
| `envbox` |
72+
5973
## agentsdk.AuthenticateResponse
6074

6175
```json
@@ -327,16 +341,18 @@
327341
```json
328342
{
329343
"expanded_directory": "string",
344+
"subsystem": "envbox",
330345
"version": "string"
331346
}
332347
```
333348

334349
### Properties
335350

336-
| Name | Type | Required | Restrictions | Description |
337-
| -------------------- | ------ | -------- | ------------ | ----------- |
338-
| `expanded_directory` | string | false | | |
339-
| `version` | string | false | | |
351+
| Name | Type | Required | Restrictions | Description |
352+
| -------------------- | -------------------------------------------------- | -------- | ------------ | ----------- |
353+
| `expanded_directory` | string | false | | |
354+
| `subsystem` | [agentsdk.AgentSubsystem](#agentsdkagentsubsystem) | false | | |
355+
| `version` | string | false | | |
340356

341357
## agentsdk.StartupLog
342358

0 commit comments

Comments
 (0)