model

package
v0.0.0-...-de034e4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	ID          string   `json:"id"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Results     []Result `json:"results"`
}

type BigQueryRow

type BigQueryRow map[string]bigquery.Value

type Result

type Result map[string]any

type Target

type Target struct {
	Tags []string
	IDs  []string
}

func (*Target) Contains

func (x *Target) Contains(t *Task) bool

func (*Target) Validate

func (x *Target) Validate() error

type Task

type Task struct {
	ID          string
	Title       string
	Description string
	Tags        []string
	Query       string
	Dir         string
	Tests       []TaskTest
}

func NewTask

func NewTask(r io.Reader) (*Task, error)

func (*Task) Validate

func (x *Task) Validate() error

type TaskTest

type TaskTest struct {
	Detectable bool
	YamlPath   string
}

type Tasks

type Tasks []*Task

func (Tasks) Validate

func (x Tasks) Validate() error

Jump to

Keyboard shortcuts

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