variable

package
v0.0.2-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SystemVarTeamID           = "CLOUDNESS_TEAM_ID"
	SystemVarProjectID        = "CLOUDNESS_PROJECT_ID"
	SystemVarEnvironmentID    = "CLOUDNESS_ENVIRONMENT_ID"
	SystemVarAppName          = "CLOUDNESS_APP_NAME"
	SystemVarAppID            = "CLOUDNESS_APP_ID"
	SystemVarAppPrivateDomain = "CLOUDNESS_PRIVATE_DOMAIN"
	SystemVarAppPublicDomain  = "CLOUDNESS_PUBLIC_DOMAIN"
	SystemVarAppPublicURL     = "CLOUDNESS_PUBLIC_URL"
	SystemVarAppTCPPort       = "CLOUDNESS_TCP_APPLICATION_PORT"
	SystemVarServiceName      = "CLOUDNESS_SERVICE_NAME"
)

Variables

Functions

func IsSystemVar

func IsSystemVar(key string) bool

Types

type AddVariableInput

type AddVariableInput struct {
	Key   string            `json:"new_key"`
	Value string            `json:"new_value"`
	Type  enum.VariableType `json:"type"`
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(variableStore store.VariableStore) *Controller

func ProvideController

func ProvideController(variableStore store.VariableStore) *Controller

func (*Controller) Add

func (c *Controller) Add(ctx context.Context, envID, appID int64, in *AddVariableInput) error

func (*Controller) AddSystem

func (c *Controller) AddSystem(ctx context.Context, envID, appID int64, key, value string) error

func (*Controller) AddTemplateVariables

func (c *Controller) AddTemplateVariables(ctx context.Context, envID int64, serviceAppMap map[string]*types.Application, template *types.Template) error

func (*Controller) Delete

func (c *Controller) Delete(ctx context.Context, appID, varUID int64) error

func (*Controller) DeleteByKey

func (c *Controller) DeleteByKey(ctx context.Context, appID int64, key string) error

func (*Controller) ListDTO

func (c *Controller) ListDTO(ctx context.Context, envID, appID int64) (*types.VariableDTO, error)

func (*Controller) ListInEnvironment

func (c *Controller) ListInEnvironment(ctx context.Context, envID int64) ([]*types.Variable, error)

func (*Controller) ListWithUpdate

func (c *Controller) ListWithUpdate(ctx context.Context, envID, appID int64) (map[string]*types.Variable, error)

func (*Controller) ToDTO

func (c *Controller) ToDTO(allVars []*types.Variable, appID int64) *types.VariableDTO

func (*Controller) Update

func (c *Controller) Update(ctx context.Context, envID, appID int64, varUID int64, in *UpdateVariableInput) error

func (*Controller) UpdateDefaultVariables

func (c *Controller) UpdateDefaultVariables(
	ctx context.Context,
	server *types.Server,
	tenant *types.Tenant,
	project *types.Project,
	env *types.Environment,
	app *types.Application,
) error

func (*Controller) UpdateGenerate

func (c *Controller) UpdateGenerate(ctx context.Context, envID, appID int64, varUID int64, in *GenerateVariableInput) error

func (*Controller) UpsertMany

func (c *Controller) UpsertMany(ctx context.Context, variables []*types.Variable) error

type GenerateVariableInput

type GenerateVariableInput struct {
	Length int `json:"length,string"`
}

type UpdateVariableInput

type UpdateVariableInput struct {
	Value string            `json:"value"`
	Type  enum.VariableType `json:"type"`
}

Jump to

Keyboard shortcuts

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