Documentation ¶
Index ¶
- Constants
- func CloneRepository(r *scanct.Repository) (*git.Repository, error)
- func FilterInstances()
- func FindingsForRepository(repository *git.Repository) ([]report.Finding, error)
- func ImportRepositories()
- func ScanSecrets()
- func Signup(httpClient *http.Client, gl *scanct.GitLab) error
- type FilterStep
- func (g FilterStep) Process(instance *scanct.Instance) ([]scanct.GitLab, error)
- func (g FilterStep) SaveResult(db *scanct.Database, result []scanct.GitLab) error
- func (g FilterStep) SetProcessed(db *scanct.Database, i *scanct.Instance) error
- func (g FilterStep) UnprocessedInputs(db *scanct.Database) ([]scanct.Instance, error)
- type RepositoryStep
- func (r RepositoryStep) Process(gl *scanct.GitLab) ([]scanct.Repository, error)
- func (r RepositoryStep) SaveResult(db *scanct.Database, repos []scanct.Repository) error
- func (r RepositoryStep) SetProcessed(db *scanct.Database, i *scanct.GitLab) error
- func (r RepositoryStep) UnprocessedInputs(db *scanct.Database) ([]scanct.GitLab, error)
- type SecretsStep
- func (s SecretsStep) Process(repository *scanct.Repository) ([]scanct.Finding, error)
- func (s SecretsStep) SaveResult(db *scanct.Database, findings []scanct.Finding) error
- func (s SecretsStep) SetProcessed(db *scanct.Database, repository *scanct.Repository) error
- func (s SecretsStep) UnprocessedInputs(db *scanct.Database) ([]scanct.Repository, error)
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 ImportRepositories ¶
func ImportRepositories()
func ScanSecrets ¶
func ScanSecrets()
Types ¶
type FilterStep ¶
type FilterStep struct{}
func (FilterStep) SaveResult ¶
func (FilterStep) SetProcessed ¶
func (FilterStep) UnprocessedInputs ¶
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 (RepositoryStep) UnprocessedInputs ¶
type SecretsStep ¶
type SecretsStep struct{}
func (SecretsStep) Process ¶
func (s SecretsStep) Process(repository *scanct.Repository) ([]scanct.Finding, error)
func (SecretsStep) SaveResult ¶
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)
Click to show internal directories.
Click to hide internal directories.