Documentation ¶
Index ¶
- func GetIgnoredPolicies(ctx context.Context) []string
- func GetIsCloud(ctx context.Context) bool
- func GetRepositories(ctx context.Context) ([]types.RepositoryWithOwner, bool)
- func GetScorecardEnabled(ctx context.Context) bool
- func GetScorecardVerbose(ctx context.Context) bool
- func GetSimulateSecondaryRateLimit(ctx context.Context) bool
- func GetTokenScopes(ctx context.Context) permissions.TokenScopes
- func NewContextWithIgnoredPolicies(ctx context.Context, ignoredPolicies []string) context.Context
- func NewContextWithIsCloud(ctx context.Context, isCloud bool) context.Context
- func NewContextWithOrg(org []string) context.Context
- func NewContextWithRepos(repos []types.RepositoryWithOwner) context.Context
- func NewContextWithScorecard(ctx context.Context, scorecardEnabled bool, scorecardVerbose bool) context.Context
- func NewContextWithSimulatedSecondaryRateLimit(ctx context.Context, simulate bool) context.Context
- func NewContextWithTokenScopes(ctx context.Context, tokenScopes permissions.TokenScopes) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIgnoredPolicies ¶ added in v0.2.8
func GetIsCloud ¶ added in v0.1.7
func GetRepositories ¶ added in v0.1.3
func GetRepositories(ctx context.Context) ([]types.RepositoryWithOwner, bool)
func GetScorecardEnabled ¶
func GetScorecardVerbose ¶
func GetSimulateSecondaryRateLimit ¶ added in v0.2.3
func GetTokenScopes ¶
func GetTokenScopes(ctx context.Context) permissions.TokenScopes
func NewContextWithIgnoredPolicies ¶ added in v0.2.8
func NewContextWithIsCloud ¶ added in v0.1.7
func NewContextWithOrg ¶
func NewContextWithRepos ¶ added in v0.1.3
func NewContextWithRepos(repos []types.RepositoryWithOwner) context.Context
func NewContextWithScorecard ¶
func NewContextWithSimulatedSecondaryRateLimit ¶ added in v0.2.3
func NewContextWithTokenScopes ¶
func NewContextWithTokenScopes(ctx context.Context, tokenScopes permissions.TokenScopes) context.Context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.