flamenco/internal/manager/config/enums.go
Sybren A. Stüvel ab3972c696 Manager: add platform for variables named "all"
Variables defined for the "all" platform will be available on all
platforms. Platform-specific values overrule the "all" platform values.
2022-03-25 16:20:39 +01:00

24 lines
690 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
// one semantic value ("all") and some predefined values here.
VariablePlatformAll VariablePlatform = "all"
VariablePlatformLinux VariablePlatform = "linux"
VariablePlatformWindows VariablePlatform = "windows"
VariablePlatformDarwin VariablePlatform = "darwin"
)
type VariablePlatform string