feat: move proxy settings page to deployment options (#8246)

* feat: Move workspace proxy page to deployment options

Workspace proxy settings page is now an admin feature

* WorkspaceProxy response extends region
This commit is contained in:
Steven Masley
2023-06-30 11:32:35 -04:00
committed by GitHub
parent 1e8cc2ca8d
commit f0bd258ff1
39 changed files with 645 additions and 342 deletions
+28
View File
@@ -0,0 +1,28 @@
package genericmap
type Foo struct {
Bar string `json:"bar"`
}
type Buzz struct {
Foo `json:"foo"`
Bazz string `json:"bazz"`
}
type Custom interface {
Foo | Buzz
}
type FooBuzz[R Custom] struct {
Something []R `json:"something"`
}
// Not yet supported
//type FooBuzzMap[R Custom] struct {
// Something map[string]R `json:"something"`
//}
// Not yet supported
//type FooBuzzAnonymousUnion[R Foo | Buzz] struct {
// Something []R `json:"something"`
//}
+20
View File
@@ -0,0 +1,20 @@
// Code generated by 'make site/src/api/typesGenerated.ts'. DO NOT EDIT.
// From codersdk/genericmap.go
export interface Buzz {
readonly foo: Foo
readonly bazz: string
}
// From codersdk/genericmap.go
export interface Foo {
readonly bar: string
}
// From codersdk/genericmap.go
export interface FooBuzz<R extends Custom> {
readonly something: R[]
}
// From codersdk/genericmap.go
export type Custom = Foo | Buzz