config

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 6 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