chore: refactor time.Duration -> int64 milliseconds for FE consumption (#1944)

* Changes all public-facing codersdk types to use a plain int64 (milliseconds) instead of time.Duration.
* Makes autostart_schedule a *string as it may not be present.
* Adds a utils/ptr package with some useful methods.
This commit is contained in:
Cian Johnston
2022-06-02 11:23:34 +01:00
committed by GitHub
parent 51c420c90a
commit dcf03d8ba3
24 changed files with 287 additions and 148 deletions

View File

@ -33,7 +33,7 @@ variable "region" {
description = "What region should your workspace live in?"
default = "us-east-1"
validation {
condition = contains([
condition = contains([
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",