Versions in this module Expand all Collapse all v0 v0.27.0 Nov 5, 2026 Changes in this version + const AllowlistTypeWarning + const DefaultFixTimeout + const UnallowlistReasonWarning + var AllowlistTypes = []string + var ErrAutofixDiff = errors.New("get autofix diff") + var ErrAutofixFailed = errors.New("autofix failed") + var ErrAutofixStatusUnreadable = errors.New("autofix status could not be read") + var ErrAutofixStillRunning = errors.New("autofix is still running") + var ErrFindingIDRequired = errors.New("a finding ID is required") + var ErrInvalidAllowlistType = errors.New("invalid allowlist type") + var ErrInvalidLimit = errors.New("limit must be greater than zero") + var ErrInvalidStatus = errors.New("invalid status") + var ErrInvalidTime = errors.New("invalid time") + var ErrInvalidTimeout = errors.New("timeout must be greater than zero") + var ErrInvalidVerdict = errors.New("invalid feedback verdict") + var ErrNoPullRequest = errors.New("autofix finished without opening a new pull request") + var ErrReasonRequired = errors.New("a reason is required") + var ErrUnknownType = errors.New("unknown finding type") + var ErrUnreadableResponse = errors.New("unreadable findings response") + var ErrUnsupported = errors.New("operation is not supported for this finding type") + var FeedbackVerdicts = []string + var Statuses = []string + var Types = map[string]Type + var Verbs = []Verb + func APITypesFor(name string) ([]string, error) + func AcceptedNames(pick func(Type) bool) []string + func HasRepository(apiTypes []string) bool + func ListFeedback(ctx context.Context, c *api.Client, findingID string) (json.RawMessage, error) + func Names() []string + func NamesWith(pick func(Type) bool) []string + func SubmitFeedback(ctx context.Context, c *api.Client, findingID, verdict, comment string) (json.RawMessage, error) + type Action func(ctx context.Context, c *api.Client, findingID string, body []byte) (json.RawMessage, error) + type AutofixPullRequest struct + Status string + URL string + type AutofixStatus struct + Explanation string + PullRequests []AutofixPullRequest + State string + Terminal bool + type FixOptions struct + Timeout time.Duration + WaitForPR bool + type FixResult struct + CheckWith string + Diff json.RawMessage + Failure error + PullRequest *PullRequestStatus + RunID string + State string + func Fix(ctx context.Context, c *api.Client, typeName, findingID string, ...) (FixResult, error) + type FixStart struct + RunID string + State string + func StartFix(ctx context.Context, c *api.Client, typeName, findingID string) (FixStart, error) + type Params struct + AllowlistType string + Reason string + type PullRequestStatus struct + State string + URL string + type SearchOptions struct + APITypes []string + Debug io.Writer + From string + Limit int + Repository string + Severity string + Status string + To string + type SearchResult struct + Findings []json.RawMessage + Returned int + Total int + Truncated bool + func Search(ctx context.Context, c *api.Client, opts SearchOptions) (SearchResult, error) + type Type struct + APITypes []string + AllowOnPatch bool + Allowlist Action + AllowlistTypeUnrecorded bool + Archive Action + AutofixDiff Action + AutofixFix Action + AutofixStatus Action + CreateTicket Action + DeleteTicket Action + Get Action + MarkFalsePositive Action + Triage Action + Unallowlist Action + UnallowlistReasonUnrecorded bool + Unarchive Action + UnmarkFalsePositive Action + func Lookup(name string) (Type, error) + type Verb struct + Description string + Name string + NeedsAllowlistType bool + NeedsReason bool + OptIn bool + Tool string + Write bool + func (v Verb) Run(ctx context.Context, c *api.Client, typeName, findingID string, params Params) (json.RawMessage, error) + func (v Verb) TypeValues() []string + func (v Verb) Types() []string + func (v Verb) Warning(typeName string) string