environment

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 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

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"`
	Enabled       bool                   `json:"enabled"`
	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) 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