Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfigFile

func SaveConfigFile(conf Config) error

SaveConfigFile tries to save docker-scan configuration file that should be at ${DOCKER_CONFIG}/scan/config.json

Types

type Config

type Config struct {
	Path  string `json:"path"`
	Optin bool   `json:"optin"`
}

Config points to scan provider's binary

func ReadConfigFile

func ReadConfigFile() (Config, error)

ReadConfigFile tries to read docker-scan configuration file that should be at ${DOCKER_CONFIG}/scan/config.json

Jump to

Keyboard shortcuts

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