Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PolicyDir = "./policy"
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
func New ¶
func New(op ...OptionInterface) *Checker
type OptionInterface ¶
type OptionInterface interface {
Check(ctx context.Context, repo *github.Repository, vs []Violation) ([]Violation, error)
}
func NewAccess ¶
func NewAccess(client ghc.Client) OptionInterface
func NewOption ¶
func NewOption(client ghc.Client) OptionInterface
func NewProtection ¶
func NewProtection(client ghc.Client) OptionInterface
type Protection ¶
type Protection struct {
Base
}
func (*Protection) Check ¶
func (p *Protection) Check(ctx context.Context, repo *github.Repository, vs []Violation) ([]Violation, error)
Click to show internal directories.
Click to hide internal directories.