Documentation ¶
Index ¶
- func Find(val string) bool
- func GetContextProperties(ctx context.Context) map[string]interface{}
- func GetContextProperty(ctx context.Context, property string) (string, error)
- func GetTelemetryConsent() bool
- func NewContext(ctx context.Context) context.Context
- func SetClient(ctx context.Context, value string)
- func SetEcosystem(ctx context.Context, value string)
- func SetError(err error) string
- func SetExitCode(ctx context.Context, value int)
- func SetFlag(ctx context.Context, flag string, value bool)
- func SetManifest(ctx context.Context, value string)
- func SetSnykTokenAssociation(ctx context.Context, value bool)
- func SetVulnerability(ctx context.Context, value int)
- type Properties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContextProperties ¶
GetContextProperties returns current property state
func GetContextProperty ¶ added in v0.2.2
GetContextProperty returns single property state
func GetTelemetryConsent ¶
func GetTelemetryConsent() bool
func NewContext ¶
NewContext creates a New Context
func SetEcosystem ¶
SetEcosystem sets ecosystem property
func SetExitCode ¶
SetExitCode sets exit code property
func SetManifest ¶
SetManifest sets manifest name property
func SetSnykTokenAssociation ¶
SetSnykTokenAssociation sets synk-token-associated property
func SetVulnerability ¶
SetVulnerability sets total vulnerability found property
Types ¶
type Properties ¶
type Properties struct {
// contains filtered or unexported fields
}
Properties maintain state of Telemetry event Properties.
Click to show internal directories.
Click to hide internal directories.