environment

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Id            string                 `json:"id"`
	Name          string                 `json:"name"`
	EnvironmentId string                 `json:"environment_id"`
	AgentId       string                 `json:"agent_id"`
	Enabled       bool                   `json:"enabled"`
	Level         int                    `json:"level"`
	CanPromote    bool                   `json:"canPromote"`
	SecretMenu    *secretmenu.SecretMenu `json:"secret_menu,omitempty"`
	Flags         []flags.Flag           `json:"flags,omitempty"`
	ProjectName   string                 `json:"project_name,omitempty"`
	AgentName     string                 `json:"agent_name,omitempty"`
}

type System

type System struct {
	Config  *ConfigBuilder.Config
	Context context.Context
}

func NewSystem

func NewSystem(cfg *ConfigBuilder.Config) *System

func (*System) CloneAgentEnvironment

func (s *System) CloneAgentEnvironment(w http.ResponseWriter, r *http.Request)

func (*System) CloneEnvironmentInDB

func (s *System) CloneEnvironmentInDB(envId, newEnvId, agentId, name string) error

func (*System) CreateAgentEnvironment

func (s *System) CreateAgentEnvironment(w http.ResponseWriter, r *http.Request)

func (*System) CreateEnvironmentInDB

func (s *System) CreateEnvironmentInDB(name, agentId string) (*Environment, error)

func (*System) DeleteAllEnvironmentsForAgent

func (s *System) DeleteAllEnvironmentsForAgent(agentId string) error

func (*System) DeleteEnvironment

func (s *System) DeleteEnvironment(w http.ResponseWriter, r *http.Request)

func (*System) DeleteEnvironmentFromDB

func (s *System) DeleteEnvironmentFromDB(envId string) error

func (*System) GetAgentEnvironments

func (s *System) GetAgentEnvironments(w http.ResponseWriter, r *http.Request)

func (*System) GetAgentEnvironmentsFromDB

func (s *System) GetAgentEnvironmentsFromDB(agentId, companyId string) ([]*Environment, error)

func (*System) GetEnvironment

func (s *System) GetEnvironment(w http.ResponseWriter, r *http.Request)

func (*System) GetEnvironmentFromDB

func (s *System) GetEnvironmentFromDB(envId, companyId string) (*Environment, error)

func (*System) GetEnvironments

func (s *System) GetEnvironments(w http.ResponseWriter, r *http.Request)

func (*System) GetEnvironmentsFromDB

func (s *System) GetEnvironmentsFromDB(companyId string) ([]*Environment, error)

func (*System) LinkChildEnvironmentInDB added in v0.14.7

func (s *System) LinkChildEnvironmentInDB(parentEnvId, childEnvId, agentId string) error

func (*System) SetContext

func (s *System) SetContext(ctx context.Context) *System

func (*System) UpdateEnvironment

func (s *System) UpdateEnvironment(w http.ResponseWriter, r *http.Request)

func (*System) UpdateEnvironmentInDB

func (s *System) UpdateEnvironmentInDB(env Environment) error

Jump to

Keyboard shortcuts

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