sourceproviders

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FileTag = stereoscope.FileTag
	DirTag  = stereoscope.DirTag
	PullTag = stereoscope.PullTag
)

Variables

This section is empty.

Functions

func All

func All(userInput string, cfg *Config) []collections.TaggedValue[source.Provider]

All returns all the configured source providers known to syft

Types

type Config

type Config struct {
	Platform         *image.Platform
	Alias            source.Alias
	RegistryOptions  *image.RegistryOptions
	Exclude          source.ExcludeConfig
	DigestAlgorithms []crypto.Hash
	BasePath         string
}

Config is the uber-configuration for all Syft source providers

func DefaultConfig

func DefaultConfig() *Config

func (*Config) WithAlias

func (c *Config) WithAlias(alias source.Alias) *Config

func (*Config) WithBasePath

func (c *Config) WithBasePath(basePath string) *Config

func (*Config) WithDigestAlgorithms

func (c *Config) WithDigestAlgorithms(algorithms ...crypto.Hash) *Config

func (*Config) WithExcludeConfig

func (c *Config) WithExcludeConfig(excludeConfig source.ExcludeConfig) *Config

func (*Config) WithPlatform

func (c *Config) WithPlatform(platform *image.Platform) *Config

func (*Config) WithRegistryOptions

func (c *Config) WithRegistryOptions(registryOptions *image.RegistryOptions) *Config

Jump to

Keyboard shortcuts

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