jenkins

package
v0.0.0-...-d953910 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const JenkinsMagicURL = "/api/json"

Variables

This section is empty.

Functions

func FilterInstances

func FilterInstances()

func ImportJobs

func ImportJobs()

func ScanSecrets

func ScanSecrets()

Types

type FilterStep

type FilterStep struct{}

func (FilterStep) Process

func (g FilterStep) Process(instance *scanct.Instance) ([]scanct.Jenkins, error)

func (FilterStep) SaveResult

func (g FilterStep) SaveResult(db *scanct.Database, result []scanct.Jenkins) error

func (FilterStep) SetProcessed

func (g FilterStep) SetProcessed(db *scanct.Database, i *scanct.Instance) error

func (FilterStep) UnprocessedInputs

func (g FilterStep) UnprocessedInputs(db *scanct.Database) ([]scanct.Instance, error)

type JobStep

type JobStep struct{}

func (JobStep) Process

func (j JobStep) Process(jenkins *scanct.Jenkins) ([]scanct.JenkinsJob, error)

func (JobStep) SaveResult

func (j JobStep) SaveResult(db *scanct.Database, o []scanct.JenkinsJob) error

func (JobStep) SetProcessed

func (j JobStep) SetProcessed(db *scanct.Database, i *scanct.Jenkins) error

func (JobStep) UnprocessedInputs

func (j JobStep) UnprocessedInputs(db *scanct.Database) ([]scanct.Jenkins, error)

type JobsApiResponse

type JobsApiResponse struct {
	Jobs []JobsApiResponseJob `json:"jobs"`
}

type JobsApiResponseJob

type JobsApiResponseJob struct {
	URL  string `json:"url"`
	Name string `json:"name"`
}

type SecretsStep

type SecretsStep struct{}

func (SecretsStep) Process

func (_ SecretsStep) Process(job *scanct.JenkinsJob) ([]scanct.JenkinsFinding, error)

func (SecretsStep) SaveResult

func (_ SecretsStep) SaveResult(db *scanct.Database, findings []scanct.JenkinsFinding) error

func (SecretsStep) SetProcessed

func (_ SecretsStep) SetProcessed(db *scanct.Database, job *scanct.JenkinsJob) error

func (SecretsStep) UnprocessedInputs

func (f SecretsStep) UnprocessedInputs(db *scanct.Database) ([]scanct.JenkinsJob, error)

Jump to

Keyboard shortcuts

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