Help us shape the future of Go! Take the 2026 Go Developer Survey

env

package
v2.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: BSD-3-Clause Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGlobalVariableRequest added in v2.5.0

type CreateGlobalVariableRequest struct {
	Key             string   `json:"key"`
	Value           string   `json:"value"`
	IsSecret        bool     `json:"isSecret,omitempty"`
	AllEnvironments bool     `json:"allEnvironments,omitempty"`
	EnvironmentIDs  []string `json:"environmentIds,omitempty"`
}

type EnvironmentSyncStatus added in v2.5.0

type EnvironmentSyncStatus struct {
	EnvironmentID   string     `json:"environmentId"`
	EnvironmentName string     `json:"environmentName,omitempty"`
	Status          string     `json:"status"` // "synced" | "pending" | "error"
	Error           string     `json:"error,omitempty"`
	LastSyncedAt    *time.Time `json:"lastSyncedAt,omitempty"`
}

type GlobalVariable added in v2.5.0

type GlobalVariable struct {
	ID              string     `json:"id"`
	Key             string     `json:"key"`
	Value           string     `json:"value"`
	IsSecret        bool       `json:"isSecret"`
	AllEnvironments bool       `json:"allEnvironments"`
	EnvironmentIDs  []string   `json:"environmentIds"`
	CreatedAt       time.Time  `json:"createdAt"`
	UpdatedAt       *time.Time `json:"updatedAt,omitempty"`
}

GlobalVariable is the manager-level variable resource. Value is empty on reads when IsSecret is true.

type GlobalVariableMutationResponse added in v2.5.0

type GlobalVariableMutationResponse struct {
	Variable    *GlobalVariable         `json:"variable,omitempty"`
	SyncResults []EnvironmentSyncStatus `json:"syncResults,omitempty"`
}

type Summary

type Summary struct {
	Variables []Variable `json:"variables"`
}

type UpdateGlobalVariableRequest added in v2.5.0

type UpdateGlobalVariableRequest struct {
	Key             *string   `json:"key,omitzero"`
	Value           *string   `json:"value,omitzero"`
	IsSecret        *bool     `json:"isSecret,omitzero"`
	AllEnvironments *bool     `json:"allEnvironments,omitzero"`
	EnvironmentIDs  *[]string `json:"environmentIds,omitzero"`
}

UpdateGlobalVariableRequest updates a variable; nil fields keep the current value. A nil Value on a secret variable keeps the stored ciphertext.

type Variable

type Variable struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL