config

package
v2.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig []byte

Functions

This section is empty.

Types

type AESConfig

type AESConfig struct {
	Enable       bool
	KeepassFile  configutil.EnvString
	KeepassEntry configutil.EnvString
	KeepassKey   configutil.EnvString
	IV           configutil.EnvString
}

type AddConfig

type AddConfig struct {
	Deduplicate           bool
	NoCompress            bool
	ObjectExtensionFolder string `toml:"objectextensions"`
	User                  *UserConfig
	Digest                checksum.DigestAlgorithm
	Fixity                []string
	Message               string
}

type DisplayConfig

type DisplayConfig struct {
	Addr      string
	AddrExt   string
	CertFile  string
	KeyFile   string
	Templates string
}

type ExtractConfig

type ExtractConfig struct {
	Manifest   bool
	Version    string
	ObjectPath string
	ObjectID   string
	Area       string
}

type ExtractMetaConfig

type ExtractMetaConfig struct {
	Version    string
	Format     string
	Output     string
	ObjectPath string
	ObjectID   string
}

type GOCFLConfig

type GOCFLConfig struct {
	ErrorTemplate string
	AccessLog     string
	Extension     map[string]map[string]string
	Indexer       *indexer.IndexerConfig
	Thumbnail     *Thumbnail
	Migration     *Migration
	AES           *AESConfig
	Init          *InitConfig
	Add           *AddConfig
	Update        *UpdateConfig
	Display       *DisplayConfig
	Extract       *ExtractConfig
	ExtractMeta   *ExtractMetaConfig
	Stat          *StatConfig
	Validate      *ValidateConfig
	S3            *S3Config
	DefaultArea   string
	Log           stashconfig.Config `toml:"log"`
}

func LoadGOCFLConfig

func LoadGOCFLConfig(data string) (*GOCFLConfig, error)

type InitConfig

type InitConfig struct {
	OCFLVersion                string
	StorageRootExtensionFolder string `toml:"storagerootextensions"`
	Digest                     checksum.DigestAlgorithm
}

type Migration

type Migration struct {
	Enabled  bool
	Function map[string]*MigrationFunction
}

type MigrationFunction

type MigrationFunction struct {
	ID                  string
	Title               string
	Command             string
	Strategy            string
	FilenameRegexp      string
	FilenameReplacement string
	Timeout             configutil.Duration
	Pronoms             []string
}

type S3Config

type S3Config struct {
	Endpoint    configutil.EnvString
	AccessKeyID configutil.EnvString
	AccessKey   configutil.EnvString
	Region      configutil.EnvString
}

type StatConfig

type StatConfig struct {
	Info       []string
	ObjectPath string
	ObjectID   string
}

type Thumbnail

type Thumbnail struct {
	Enabled    bool
	Background string
	Function   map[string]*ThumbnailFunction
}

type ThumbnailFunction

type ThumbnailFunction struct {
	ID      string
	Title   string
	Command string
	Timeout configutil.Duration
	Pronoms []string
	Mime    []string
}

type UpdateConfig

type UpdateConfig struct {
	Deduplicate bool
	NoCompress  bool
	User        *UserConfig
	Echo        bool
	Message     string
	Digest      checksum.DigestAlgorithm
}

type UserConfig

type UserConfig struct {
	Name    string
	Address string
}

type ValidateConfig

type ValidateConfig struct {
	ObjectPath string
	ObjectID   string
}

Jump to

Keyboard shortcuts

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