package utils

import "github.com/docker/compose/v2/pkg/utils"

Index

Constants

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

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

Source Files

scan_suggest.go stringutils.go writer.go

Version
v2.1.1
Published
Nov 7, 2021
Platform
js/wasm
Imports
10 packages
Last checked
40 minutes ago

Tools for package owners.