Documentation
¶
Index ¶
- type Agent
- type Details
- type ProjectInfo
- type System
- func (s *System) CreateAgent(w http.ResponseWriter, r *http.Request)
- func (s *System) CreateAgentForProject(name, projectId string) (string, error)
- func (s *System) CreateAgentInDB(name, projectId string) (*Agent, error)
- func (s *System) DeleteAgent(w http.ResponseWriter, r *http.Request)
- func (s *System) DeleteAgentFromDB(agentId string) error
- func (s *System) DeleteAllAgentsForProject(projectId string) error
- func (s *System) GetAgent(w http.ResponseWriter, r *http.Request)
- func (s *System) GetAgentDetails(agentId, companyId string) (*Agent, error)
- func (s *System) GetAgents(companyId string) ([]*Agent, error)
- func (s *System) GetAgentsForProject(companyId, projectId string) ([]*Agent, error)
- func (s *System) GetAgentsRequest(w http.ResponseWriter, r *http.Request)
- func (s *System) GetProjectAgents(w http.ResponseWriter, r *http.Request)
- func (s *System) SetContext(ctx context.Context) *System
- func (s *System) UpdateAgent(w http.ResponseWriter, r *http.Request)
- func (s *System) UpdateAgentDetails(agent Agent) error
- func (s *System) ValidateAgentWithEnvironment(ctx context.Context, agentId, projectId, environmentId string) (bool, error)
- func (s *System) ValidateAgentWithoutEnvironment(ctx context.Context, agentId, projectId string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
Id string `json:"id"`
Name string `json:"name"`
RequestLimit int `json:"request_limit"`
AgentId string `json:"agent_id"`
Environments []*environment.Environment `json:"environments"`
EnvironmentLimit int `json:"environment_limit"`
Enabled bool `json:"enabled"`
ProjectInfo *ProjectInfo `json:"project_info"`
}
type Details ¶
type Details struct {
Id string `json:"id"`
Name string `json:"name"`
Environments []environment.Environment `json:"environments"`
Enabled bool `json:"enabled"`
}
type ProjectInfo ¶
type System ¶
type System struct {
Config *ConfigBuilder.Config
Context context.Context
}
func NewSystem ¶
func NewSystem(cfg *ConfigBuilder.Config) *System
func (*System) CreateAgent ¶
func (s *System) CreateAgent(w http.ResponseWriter, r *http.Request)
func (*System) CreateAgentForProject ¶
func (*System) CreateAgentInDB ¶
func (*System) DeleteAgent ¶
func (s *System) DeleteAgent(w http.ResponseWriter, r *http.Request)
func (*System) DeleteAgentFromDB ¶
func (*System) DeleteAllAgentsForProject ¶
func (*System) GetAgentDetails ¶
func (*System) GetAgentsForProject ¶
func (*System) GetAgentsRequest ¶
func (s *System) GetAgentsRequest(w http.ResponseWriter, r *http.Request)
func (*System) GetProjectAgents ¶
func (s *System) GetProjectAgents(w http.ResponseWriter, r *http.Request)
func (*System) UpdateAgent ¶
func (s *System) UpdateAgent(w http.ResponseWriter, r *http.Request)
func (*System) UpdateAgentDetails ¶
func (*System) ValidateAgentWithEnvironment ¶
Click to show internal directories.
Click to hide internal directories.