project

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: 15 Imported by: 0

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
	Context context.Context
}

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(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(projectId string) error

func (*System) GetLimits

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

func (*System) GetLimitsFromDB

func (s *System) GetLimitsFromDB(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(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(companyId string) ([]Project, error)

func (*System) SetContext

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

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(projectId, logo string) error

func (*System) UpdateProjectInDB

func (s *System) UpdateProjectInDB(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