filecataloging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

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