Versions in this module Expand all Collapse all v2 v2.8.1 Aug 19, 2026 Changes in this version + type GlobalVariable struct + AllEnvironments bool + Environments []environment.Environment + IsSecret bool + Key string + Value string + func (GlobalVariable) TableName() string v2.8.0 Aug 13, 2026 Changes in this version + func RegisterMaterializedVariables(api huma.API, variableService *VariableService, ...) + func RegisterVariables(api huma.API, variableService *VariableService, ...) + type CreateGlobalVariableInput struct + Body env.CreateGlobalVariableRequest + type CreateGlobalVariableOutput struct + Body base.ApiResponse[env.GlobalVariableMutationResponse] + type DeleteGlobalVariableInput struct + ID string + type DeleteGlobalVariableOutput struct + Body base.ApiResponse[env.GlobalVariableMutationResponse] + type GetGlobalVariableSyncStatusInput struct + type GetGlobalVariableSyncStatusOutput struct + Body base.ApiResponse[[]env.EnvironmentSyncStatus] + type GetGlobalVariablesInput struct + EnvironmentID string + type GetGlobalVariablesOutput struct + Body base.ApiResponse[[]env.Variable] + type ListGlobalVariablesInput struct + type ListGlobalVariablesOutput struct + Body base.ApiResponse[[]env.GlobalVariable] + type Module struct + func New(service *VariableService, environmentService *environment.EnvironmentService) *Module + func (m *Module) RegisterRoutes(api huma.API, cfg *config.Config) + func (m *Module) Service() *VariableService + type SyncGlobalVariablesInput struct + type SyncGlobalVariablesOutput struct + Body base.ApiResponse[[]env.EnvironmentSyncStatus] + type UpdateGlobalVariableInput struct + Body env.UpdateGlobalVariableRequest + ID string + type UpdateGlobalVariableOutput struct + Body base.ApiResponse[env.GlobalVariableMutationResponse] + type UpdateGlobalVariablesInput struct + Body env.Summary + EnvironmentID string + type UpdateGlobalVariablesOutput struct + Body base.ApiResponse[base.MessageResponse] + type VariableHandler struct + func (h *VariableHandler) CreateVariable(ctx context.Context, input *CreateGlobalVariableInput) (*CreateGlobalVariableOutput, error) + func (h *VariableHandler) DeleteVariable(ctx context.Context, input *DeleteGlobalVariableInput) (*DeleteGlobalVariableOutput, error) + func (h *VariableHandler) GetMaterializedVariables(ctx context.Context, input *GetGlobalVariablesInput) (*GetGlobalVariablesOutput, error) + func (h *VariableHandler) GetSyncStatus(_ context.Context, _ *GetGlobalVariableSyncStatusInput) (*GetGlobalVariableSyncStatusOutput, error) + func (h *VariableHandler) ListVariables(ctx context.Context, _ *ListGlobalVariablesInput) (*ListGlobalVariablesOutput, error) + func (h *VariableHandler) SyncVariables(ctx context.Context, _ *SyncGlobalVariablesInput) (*SyncGlobalVariablesOutput, error) + func (h *VariableHandler) UpdateMaterializedVariables(ctx context.Context, input *UpdateGlobalVariablesInput) (*UpdateGlobalVariablesOutput, error) + func (h *VariableHandler) UpdateVariable(ctx context.Context, input *UpdateGlobalVariableInput) (*UpdateGlobalVariableOutput, error) + type VariableService struct + func NewVariableService(db *database.DB, environmentService *environment.EnvironmentService, ...) *VariableService + func (s *VariableService) CreateVariable(ctx context.Context, req env.CreateGlobalVariableRequest) (*env.GlobalVariable, error) + func (s *VariableService) DeleteVariable(ctx context.Context, id string) error + func (s *VariableService) ImportLegacyLocalEnvFile(ctx context.Context) error + func (s *VariableService) ListVariables(ctx context.Context) ([]env.GlobalVariable, error) + func (s *VariableService) ReadLocalEnvFile(ctx context.Context) ([]env.Variable, error) + func (s *VariableService) SyncAll(ctx context.Context) []env.EnvironmentSyncStatus + func (s *VariableService) SyncAllBackground(ctx context.Context) []env.EnvironmentSyncStatus + func (s *VariableService) SyncEnvironment(ctx context.Context, envID string) error + func (s *VariableService) SyncStatuses() []env.EnvironmentSyncStatus + func (s *VariableService) UpdateVariable(ctx context.Context, id string, req env.UpdateGlobalVariableRequest) (*env.GlobalVariable, error) + func (s *VariableService) WriteLocalEnvFile(ctx context.Context, vars []env.Variable) error