project

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 12 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
	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