filecataloging

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// FileTag should be used to identify catalogers that primarily discover information about files (as opposed to packages).
	FileTag = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Selection  file.Selection     `yaml:"selection" json:"selection" mapstructure:"selection"`
	Hashers    []crypto.Hash      `yaml:"hashers" json:"hashers" mapstructure:"hashers"`
	Content    filecontent.Config `yaml:"content" json:"content" mapstructure:"content"`
	Executable executable.Config  `yaml:"executable" json:"executable" mapstructure:"executable"`
}

func DefaultConfig

func DefaultConfig() Config

func (Config) MarshalJSON

func (cfg Config) MarshalJSON() ([]byte, error)

func (*Config) UnmarshalJSON

func (cfg *Config) UnmarshalJSON(data []byte) error

func (Config) WithContentConfig added in v0.104.0

func (cfg Config) WithContentConfig(content filecontent.Config) Config

func (Config) WithHashers

func (cfg Config) WithHashers(hashers ...crypto.Hash) Config

func (Config) WithSelection

func (cfg Config) WithSelection(selection file.Selection) Config

Jump to

Keyboard shortcuts

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