trivy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"cache_dir": {
		Type: schema.TypeString,
	},
	"images": {
		Type: schema.TypeList,
		Elem: &schema.Attribute{Type: schema.TypeString},
	},
	"paths": {
		Type: schema.TypeList,
		Elem: &schema.Attribute{Type: schema.TypeString},
	},
}

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) trivyConfig

GetConfig :: retrieve and cast connection config from query data

func GetConfigCacheDir

func GetConfigCacheDir(connection *plugin.Connection) string

GetConfigCacheDir :: get cache directory from config, or return the default

func GetConfigDatabaseRepository

func GetConfigDatabaseRepository(connection *plugin.Connection) string

GetConfigCacheDir :: get cache directory from config, or return the default

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Types

This section is empty.

Jump to

Keyboard shortcuts

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