utils

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

View Source
const ScanSuggestMsg = "Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them"

ScanSuggestMsg display a message after a successful build to suggest use of `docker scan` command

Variables

This section is empty.

Functions

func DisplayScanSuggestMsg

func DisplayScanSuggestMsg()

DisplayScanSuggestMsg displlay a message suggesting users can scan new image

func GetWriter

func GetWriter(consumer func(string)) io.WriteCloser

GetWriter creates a io.Writer that will actually split by line and format by LogConsumer

func StringContains

func StringContains(array []string, needle string) bool

StringContains check if an array contains a specific value

func StringToBool added in v2.3.0

func StringToBool(s string) bool

StringToBool converts a string to a boolean ignoring errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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