Sybren A. Stüvel 98a5d48611 Manager: make the 'platform' of a variable its own type
This prevents too many `string` types; those are now just used for the
variable name & value, whereas the platform is a `VariablePlatform` type.
2022-03-25 16:19:59 +01:00

23 lines
609 B
Go

package config
// SPDX-License-Identifier: GPL-3.0-or-later
const (
// The "audience" of task variables.
VariableAudienceAll VariableAudience = "all"
VariableAudienceWorkers VariableAudience = "workers"
VariableAudienceUsers VariableAudience = "users"
)
type VariableAudience string
const (
// the "platform" of task variables. It's a free-form string field, but it has
// some predefined values here.
VariablePlatformLinux VariablePlatform = "linux"
VariablePlatformWindows VariablePlatform = "windows"
VariablePlatformDarwin VariablePlatform = "darwin"
)
type VariablePlatform string