advisors

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT 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

View Source
var (
	AllowedLevels = []string{
		"info",
		"warn",
		"error",
	}

	AllowedTypes = []string{
		"all",
		"security",
		"performance",
	}
)

Functions

func RunLinked

func RunLinked(ctx context.Context, advisorType string, level string, failOn string, projectRef string) error

func RunLocal

func RunLocal(ctx context.Context, advisorType string, level string, failOn string, config pgconn.Config, options ...func(*pgx.ConnConfig)) error

func RunVolcengine

func RunVolcengine(ctx context.Context, client *volcengine.Client, workspaceID, branchID, advisorType, level, failOn string) error

Types

type Lint

type Lint struct {
	Name        string           `json:"name"`
	Title       string           `json:"title"`
	Level       string           `json:"level"`
	Facing      string           `json:"facing"`
	Categories  []string         `json:"categories"`
	Description string           `json:"description"`
	Detail      string           `json:"detail"`
	Remediation string           `json:"remediation"`
	Metadata    *json.RawMessage `json:"metadata,omitempty"`
	CacheKey    string           `json:"cache_key"`
}

func GetVolcengineLints

func GetVolcengineLints(ctx context.Context, client *volcengine.Client, workspaceID, branchID, advisorType, level string) ([]Lint, error)

type LintLevel

type LintLevel int

Jump to

Keyboard shortcuts

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