Documentation
¶
Index ¶
- type Environment
- type System
- func (s *System) CloneAgentEnvironment(w http.ResponseWriter, r *http.Request)
- func (s *System) CloneEnvironmentInDB(envId, newEnvId, agentId, name string) error
- func (s *System) CreateAgentEnvironment(w http.ResponseWriter, r *http.Request)
- func (s *System) CreateEnvironmentInDB(name, agentId string) (*Environment, error)
- func (s *System) DeleteAllEnvironmentsForAgent(agentId string) error
- func (s *System) DeleteEnvironment(w http.ResponseWriter, r *http.Request)
- func (s *System) DeleteEnvironmentFromDB(envId string) error
- func (s *System) GetAgentEnvironments(w http.ResponseWriter, r *http.Request)
- func (s *System) GetAgentEnvironmentsFromDB(agentId, companyId string) ([]*Environment, error)
- func (s *System) GetEnvironment(w http.ResponseWriter, r *http.Request)
- func (s *System) GetEnvironmentFromDB(envId, companyId string) (*Environment, error)
- func (s *System) GetEnvironments(w http.ResponseWriter, r *http.Request)
- func (s *System) GetEnvironmentsFromDB(companyId string) ([]*Environment, error)
- func (s *System) LinkChildEnvironmentInDB(parentEnvId, childEnvId, agentId string) error
- func (s *System) SetContext(ctx context.Context) *System
- func (s *System) UpdateEnvironment(w http.ResponseWriter, r *http.Request)
- func (s *System) UpdateEnvironmentInDB(env Environment) error
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 (*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 (*System) DeleteEnvironment ¶
func (s *System) DeleteEnvironment(w http.ResponseWriter, r *http.Request)
func (*System) DeleteEnvironmentFromDB ¶
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 (*System) UpdateEnvironment ¶
func (s *System) UpdateEnvironment(w http.ResponseWriter, r *http.Request)
func (*System) UpdateEnvironmentInDB ¶
func (s *System) UpdateEnvironmentInDB(env Environment) error
Click to show internal directories.
Click to hide internal directories.