project

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 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
}

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