advisors

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 14 Imported by: 0

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