dronescanner

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: BlueOak-1.0.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DroneFileLocation       = ".drone.yml"
	Name                    = scanner.DroneScannerName
	StepsCheck              = "Drone max steps"
	VolumeCachingCheck      = "Drone volume caching"
	MaximumStepsPerPipeline = 6
)

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (types.Scanner, error)

Types

type DronePipeline

type DronePipeline struct {
	Kind  string  `yaml:"kind"`
	Type  string  `yaml:"type"`
	Name  string  `yaml:"name"`
	Steps []Steps `yaml:"steps"`
}

DronePipeline

func ReadDroneFile added in v0.5.0

func ReadDroneFile(workingDir, droneFileLocation string) (pipelines []DronePipeline, err error)

type Option

type Option func(*scannerConfig)

func WithChecksToRun

func WithChecksToRun(i []string) Option

func WithWorkingDirectory

func WithWorkingDirectory(i string) Option

type Steps

type Steps struct {
	Name      string   `yaml:"name"`
	Image     string   `yaml:"image"`
	Commands  []string `yaml:"commands"`
	Detach    bool     `yaml:"detach"`
	DependsOn []string `yaml:"depends_on"`
}

Steps

Jump to

Keyboard shortcuts

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