Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commitd96c4f2

Browse files
committed
fixup! Add commands for workspace providers
1 parent562619b commitd96c4f2

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

‎coder-sdk/workspace_providers.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ import (
99

1010
// WorkspaceProvider defines an entity capable of deploying and acting as an ingress for Coder environments.
1111
typeWorkspaceProviderstruct {
12-
IDstring`json:"id" table:"-"`
13-
Namestring`json:"name" table:"Name"`
14-
StatusWorkspaceProviderStatus`json:"status" table:"Status"`
15-
Localbool`json:"local" table:"-"`
16-
ClusterAddressstring`json:"cluster_address" table:"Cluster Address"`
17-
DefaultNamespacestring`json:"default_namespace" table:"Namespace"`
18-
StorageClassstring`json:"storage_class" table:"Storage Class"`
19-
ClusterDomainSuffixstring`json:"cluster_domain_suffix" table:"Cluster Domain Suffix"`
20-
EnvproxyAccessURLstring`json:"envproxy_access_url"validate:"required" table:"Access URL"`
21-
DevurlHoststring`json:"devurl_host" table:"Devurl Host"`
22-
SSHEnabledbool`json:"ssh_enabled" table:"SSH Enabled"`
23-
NamespaceWhitelist []string`json:"namespace_whitelist" table:"Namespace Allowlist"`
24-
OrgWhitelist []string`json:"org_whitelist" table:"-"`
12+
IDstring`json:"id"table:"-"`
13+
Namestring`json:"name"table:"Name"`
14+
StatusWorkspaceProviderStatus`json:"status"table:"Status"`
15+
Localbool`json:"local"table:"-"`
16+
ClusterAddressstring`json:"cluster_address"table:"ClusterAddress"`
17+
DefaultNamespacestring`json:"default_namespace"table:"Namespace"`
18+
StorageClassstring`json:"storage_class"table:"StorageClass"`
19+
ClusterDomainSuffixstring`json:"cluster_domain_suffix" table:"ClusterDomainSuffix"`
20+
EnvproxyAccessURLstring`json:"envproxy_access_url" table:"AccessURL" validate:"required"`
21+
DevurlHoststring`json:"devurl_host"table:"DevurlHost"`
22+
SSHEnabledbool`json:"ssh_enabled"table:"SSHEnabled"`
23+
NamespaceWhitelist []string`json:"namespace_whitelist"table:"NamespaceAllowlist"`
24+
OrgWhitelist []string`json:"org_whitelist"table:"-"`
2525
}
2626

2727
// WorkspaceProviderStatus represents the configuration state of a workspace provider.
@@ -60,9 +60,9 @@ type CreateWorkspaceProviderReq struct {
6060

6161
// CreateWorkspaceProviderRes defines the response from creating a new workspace provider entity.
6262
typeCreateWorkspaceProviderResstruct {
63-
IDstring`json:"id" table:"ID"`
64-
Namestring`json:"name" table:"Name"`
65-
StatusWorkspaceProviderStatus`json:"status" table:"Status"`
63+
IDstring`json:"id"table:"ID"`
64+
Namestring`json:"name"table:"Name"`
65+
StatusWorkspaceProviderStatus`json:"status"table:"Status"`
6666
EnvproxyTokenstring`json:"envproxy_token" table:"Envproxy Token"`
6767
}
6868

@@ -90,7 +90,7 @@ func (c *Client) DeleteWorkspaceProviderByName(ctx context.Context, name string)
9090
}
9191
}
9292
ifid=="" {
93-
returnxerrors.Errorf(`no workspace provider found by name "%s"`,name)
93+
returnErrNotFound
9494
}
9595

9696
returnc.requestBody(ctx,http.MethodDelete,"/api/private/resource-pools/"+id,nil,nil)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp