agent

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: 13 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 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 ProjectInfo struct {
	Id   string `json:"project_id"`
	Name string `json:"name"`
}

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 (s *System) CreateAgentForProject(name, projectId string) (string, error)

func (*System) CreateAgentInDB

func (s *System) CreateAgentInDB(name, projectId string) (*Agent, error)

func (*System) DeleteAgent

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

func (*System) DeleteAgentFromDB

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

func (*System) DeleteAllAgentsForProject

func (s *System) DeleteAllAgentsForProject(projectId string) error

func (*System) GetAgent

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

func (*System) GetAgentDetails

func (s *System) GetAgentDetails(agentId, companyId string) (*Agent, error)

func (*System) GetAgents

func (s *System) GetAgents(companyId string) ([]*Agent, error)

func (*System) GetAgentsForProject

func (s *System) GetAgentsForProject(companyId, projectId string) ([]*Agent, error)

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) SetContext

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

func (*System) UpdateAgent

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

func (*System) UpdateAgentDetails

func (s *System) UpdateAgentDetails(agent Agent) error

func (*System) ValidateAgentWithEnvironment

func (s *System) ValidateAgentWithEnvironment(ctx context.Context, agentId, projectId, environmentId string) (bool, error)

func (*System) ValidateAgentWithoutEnvironment

func (s *System) ValidateAgentWithoutEnvironment(ctx context.Context, agentId, projectId string) (bool, error)

Jump to

Keyboard shortcuts

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