gitlab

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: 24 Imported by: 0

Documentation

Index

Constants

View Source
const CloneRepositoryTimeout = 30 * time.Second
View Source
const DoRegister = false
View Source
const MaxFileSize = 1024 * 1024

MaxFileSize is 1 MiB

View Source
const MaxItemCountPerPage = 100 // 100 is the maximum defined by the GitLab API
View Source
const RegisterEmail = "scanct-testing2@rgwohlbold.de"
View Source
const RegisterMagicString = "<a data-qa-selector=\"register_link\" href=\"/users/sign_up\">Register now</a>"
View Source
const RegisterUsername = "scanct-testing2"
View Source
const SignInMagicString = "<meta content=\"GitLab\" property=\"og:site_name\">"
View Source
const SignInURL = "/users/sign_in"

Variables

This section is empty.

Functions

func CloneRepository

func CloneRepository(r *scanct.Repository) (*git.Repository, error)

func FilterInstances

func FilterInstances()

func FindingsForRepository

func FindingsForRepository(repository *git.Repository) ([]report.Finding, error)

func ImportRepositories

func ImportRepositories()

func ScanSecrets

func ScanSecrets()

func Signup

func Signup(httpClient *http.Client, gl *scanct.GitLab) error

Types

type FilterStep

type FilterStep struct{}

func (FilterStep) Process

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

func (FilterStep) SaveResult

func (g FilterStep) SaveResult(db *scanct.Database, result []scanct.GitLab) 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 RepositoryStep

type RepositoryStep struct{}

func (RepositoryStep) Process

func (r RepositoryStep) Process(gl *scanct.GitLab) ([]scanct.Repository, error)

func (RepositoryStep) SaveResult

func (r RepositoryStep) SaveResult(db *scanct.Database, repos []scanct.Repository) error

func (RepositoryStep) SetProcessed

func (r RepositoryStep) SetProcessed(db *scanct.Database, i *scanct.GitLab) error

func (RepositoryStep) UnprocessedInputs

func (r RepositoryStep) UnprocessedInputs(db *scanct.Database) ([]scanct.GitLab, error)

type SecretsStep

type SecretsStep struct{}

func (SecretsStep) Process

func (s SecretsStep) Process(repository *scanct.Repository) ([]scanct.Finding, error)

func (SecretsStep) SaveResult

func (s SecretsStep) SaveResult(db *scanct.Database, findings []scanct.Finding) error

func (SecretsStep) SetProcessed

func (s SecretsStep) SetProcessed(db *scanct.Database, repository *scanct.Repository) error

func (SecretsStep) UnprocessedInputs

func (s SecretsStep) UnprocessedInputs(db *scanct.Database) ([]scanct.Repository, error)

Jump to

Keyboard shortcuts

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