mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Enable workspace debug logging (#6838)
* feat: Enable workspace debug logging * Fix * Fix * Fix * fix * fix * Enable RBAC * unit tests * Fix * fix * fix * fix * more tests * fix: workspacebuild_test use roles * fix: swagger comment * fix: ctx.Done * fix: address PR comments * break loop
This commit is contained in:
@@ -46,6 +46,12 @@ type WorkspacesResponse struct {
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type ProvisionerLogLevel string
|
||||
|
||||
const (
|
||||
ProvisionerLogLevelDebug ProvisionerLogLevel = "debug"
|
||||
)
|
||||
|
||||
// CreateWorkspaceBuildRequest provides options to update the latest workspace build.
|
||||
type CreateWorkspaceBuildRequest struct {
|
||||
TemplateVersionID uuid.UUID `json:"template_version_id,omitempty" format:"uuid"`
|
||||
@@ -59,6 +65,9 @@ type CreateWorkspaceBuildRequest struct {
|
||||
// This will not delete old params not included in this list.
|
||||
ParameterValues []CreateParameterRequest `json:"parameter_values,omitempty"`
|
||||
RichParameterValues []WorkspaceBuildParameter `json:"rich_parameter_values,omitempty"`
|
||||
|
||||
// Log level changes the default logging verbosity of a provider ("info" if empty).
|
||||
LogLevel ProvisionerLogLevel `json:"log_level,omitempty" validate:"omitempty,oneof=debug"`
|
||||
}
|
||||
|
||||
type WorkspaceOptions struct {
|
||||
|
||||
Reference in New Issue
Block a user