Documentation ¶
Index ¶
- Constants
- func ColorOptions() []string
- func Execute()
- func GetVersion() string
- func GetVersionLean() string
- func InitColorPackage(colorWhen string) error
- func IsScorecardEnabled(when string) bool
- func IsScorecardVerbose(when string) bool
- func ValidateScorecardOption(opt string) error
- type Client
- type PolicyDoc
Constants ¶
View Source
const ( ArgErrorFile = "error-file" ArgOutputFile = "output-file" ArgPermissionsOutputFile = "permissions-file" ArgToken = "token" ArgServerUrl = "server-url" ArgIgnoreInvalidCertificate = "ignore-invalid-certificate" ScmType = "scm" )
View Source
const ( EnvToken = "legitify_token" NewEnvToken = "scm_token" EnvServerUrl = "server_url" )
View Source
const (
DefaultColorOption = colorAuto
)
View Source
const (
DefaultScOption = scNo
)
Variables ¶
This section is empty.
Functions ¶
func ColorOptions ¶
func ColorOptions() []string
func GetVersion ¶
func GetVersion() string
func GetVersionLean ¶ added in v1.0.6
func GetVersionLean() string
func InitColorPackage ¶
func IsScorecardEnabled ¶
func IsScorecardVerbose ¶
func ValidateScorecardOption ¶
Types ¶
type Client ¶ added in v0.1.7
type Client interface { IsAnalyzable(repo types.RepositoryWithOwner) (bool, error) Scopes() permissions.TokenScopes Organizations() ([]types.Organization, error) Repositories() ([]types.RepositoryWithOwner, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.