Documentation ¶
Index ¶
- Variables
- func DefaultHttpClient() *http.Client
- func FilterAlerts(alerts []*github.DependabotAlert, fn func(*github.DependabotAlert) bool) []*github.DependabotAlert
- func Hosts() (map[string]Config, error)
- type App
- func (app *App) CheckAlertsEnabled(ownerName string, repoName string) (bool, error)
- func (app *App) GetAllAlerts(ownerName string, repoName string) ([]*github.DependabotAlert, error)
- func (app *App) GetMyRepos() ([]*github.Repository, error)
- func (app *App) GetOpenAlerts(ownerName string, repoName string) ([]*github.DependabotAlert, error)
- func (app *App) GetOrgRepos(org string) ([]*github.Repository, error)
- func (app *App) GetRepos(ownerRepoNames []string) ([]*github.Repository, error)
- type Config
- type SeverityLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSeverity = errors.New("severity must be low, medium, high, or critical")
Functions ¶
func DefaultHttpClient ¶
func FilterAlerts ¶
func FilterAlerts(alerts []*github.DependabotAlert, fn func(*github.DependabotAlert) bool) []*github.DependabotAlert
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) CheckAlertsEnabled ¶
func (*App) GetAllAlerts ¶ added in v0.2.0
func (*App) GetMyRepos ¶
func (app *App) GetMyRepos() ([]*github.Repository, error)
func (*App) GetOpenAlerts ¶
func (*App) GetOrgRepos ¶ added in v0.2.0
func (app *App) GetOrgRepos(org string) ([]*github.Repository, error)
type SeverityLevel ¶
type SeverityLevel int
const ( Unknown SeverityLevel = iota Low Medium High Critical )
func Severity ¶
func Severity(s string) (SeverityLevel, error)
func (SeverityLevel) Abbrev ¶
func (s SeverityLevel) Abbrev() string
func (SeverityLevel) String ¶
func (s SeverityLevel) String() string
Click to show internal directories.
Click to hide internal directories.