project

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 14 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 AgentLimits

type AgentLimits struct {
	AgentsAllowed int `json:"allowed"`
	AgentsUsed    int `json:"used"`
}

type Project

type Project struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	ProjectID  string `json:"project_id"`
	AgentLimit int    `json:"agent_limit"`
	AgentsUsed int    `json:"agents_used"`
	Enabled    bool   `json:"enabled"`
}

type System

type System struct {
	Config *ConfigBuilder.Config
}

func NewSystem

func NewSystem(cfg *ConfigBuilder.Config) *System

func (*System) CreateProject

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

func (*System) CreateProjectInDB

func (s *System) CreateProjectInDB(ctx context.Context, companyId, projectName string) (*Project, error)

func (*System) DeleteProject

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

func (*System) DeleteProjectInDB

func (s *System) DeleteProjectInDB(ctx context.Context, projectId string) error

func (*System) GetLimits

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

func (*System) GetLimitsFromDB

func (s *System) GetLimitsFromDB(ctx context.Context, companyId, projectId string) (AgentLimits, error)

func (*System) GetProject

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

func (*System) GetProjectFromDB

func (s *System) GetProjectFromDB(ctx context.Context, companyId, projectId string) (*Project, error)

func (*System) GetProjects

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

func (*System) GetProjectsFromDB

func (s *System) GetProjectsFromDB(ctx context.Context, companyId string) ([]Project, error)

func (*System) UpdateProject

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

func (*System) UpdateProjectImage

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

func (*System) UpdateProjectImageInDB

func (s *System) UpdateProjectImageInDB(ctx context.Context, projectId, logo string) error

func (*System) UpdateProjectInDB

func (s *System) UpdateProjectInDB(ctx context.Context, projectId, projectName string, enabled bool) (*Project, error)

Jump to

Keyboard shortcuts

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