Documentation
¶
Overview ¶
Project linting
We don't want to run a Python/NodeJS process on every call to lint, so we're using regular expression. This means we won't be right every time but close enough for now. Later we can think of running a lint/lsp server for these calls.
Index ¶
- Variables
- func New(p Projects, telemetry *telemetry.Telemetry) sdkservices.Projects
- func Validate(projectID sdktypes.ProjectID, manifest *manifest.Manifest, ...) []*sdktypes.CheckViolation
- type Checker
- type Projects
- func (ps *Projects) Build(ctx context.Context, projectID sdktypes.ProjectID) (sdktypes.BuildID, error)
- func (ps *Projects) Create(ctx context.Context, project sdktypes.Project) (sdktypes.ProjectID, error)
- func (ps *Projects) Delete(ctx context.Context, pid sdktypes.ProjectID) error
- func (ps *Projects) DownloadResources(ctx context.Context, projectID sdktypes.ProjectID) (map[string][]byte, error)
- func (ps *Projects) Export(ctx context.Context, projectID sdktypes.ProjectID) ([]byte, error)
- func (ps *Projects) GetByID(ctx context.Context, pid sdktypes.ProjectID) (sdktypes.Project, error)
- func (ps *Projects) GetByName(ctx context.Context, oid sdktypes.OrgID, n sdktypes.Symbol) (sdktypes.Project, error)
- func (ps *Projects) Lint(ctx context.Context, projectID sdktypes.ProjectID, resources map[string][]byte, ...) ([]*sdktypes.CheckViolation, error)
- func (ps *Projects) List(ctx context.Context, oid sdktypes.OrgID) ([]sdktypes.Project, error)
- func (ps *Projects) SetResources(ctx context.Context, projectID sdktypes.ProjectID, resources map[string][]byte) error
- func (ps *Projects) Update(ctx context.Context, project sdktypes.Project) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Rules = map[string]string{
"E1": "Project size too large",
"E2": "Duplicate connection name",
"E3": "Duplicate trigger name",
"E4": "Bad `call` format",
"E5": "File not found",
"E6": "Syntax error",
"E7": "Missing handler",
"E8": "Nonexisting connection",
"E9": "Malformed name",
"W1": "Empty variable",
"W2": "No triggers defined",
}
Functions ¶
Types ¶
type Projects ¶
type Projects struct { fx.In Z *zap.Logger DB db.DB Builds sdkservices.Builds Runtimes sdkservices.Runtimes Integrations sdkservices.Integrations }
func (*Projects) DownloadResources ¶
func (*Projects) SetResources ¶
Click to show internal directories.
Click to hide internal directories.