context_utils

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIgnoredPolicies added in v0.2.8

func GetIgnoredPolicies(ctx context.Context) []string

func GetIsCloud added in v0.1.7

func GetIsCloud(ctx context.Context) bool

func GetRepositories added in v0.1.3

func GetRepositories(ctx context.Context) ([]types.RepositoryWithOwner, bool)

func GetScorecardEnabled

func GetScorecardEnabled(ctx context.Context) bool

func GetScorecardVerbose

func GetScorecardVerbose(ctx context.Context) bool

func GetSimulateSecondaryRateLimit added in v0.2.3

func GetSimulateSecondaryRateLimit(ctx context.Context) bool

func GetTokenScopes

func GetTokenScopes(ctx context.Context) permissions.TokenScopes

func NewContextWithIgnoredPolicies added in v0.2.8

func NewContextWithIgnoredPolicies(ctx context.Context, ignoredPolicies []string) context.Context

func NewContextWithIsCloud added in v0.1.7

func NewContextWithIsCloud(ctx context.Context, isCloud bool) context.Context

func NewContextWithOrg

func NewContextWithOrg(org []string) context.Context

func NewContextWithRepos added in v0.1.3

func NewContextWithRepos(repos []types.RepositoryWithOwner) context.Context

func NewContextWithScorecard

func NewContextWithScorecard(ctx context.Context, scorecardEnabled bool, scorecardVerbose bool) context.Context

func NewContextWithSimulatedSecondaryRateLimit added in v0.2.3

func NewContextWithSimulatedSecondaryRateLimit(ctx context.Context, simulate bool) context.Context

func NewContextWithTokenScopes

func NewContextWithTokenScopes(ctx context.Context, tokenScopes permissions.TokenScopes) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL