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