archiver

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, conf map[string]interface{}) (global.Service, error)

New creates a new archiver service.

Types

type Config

type Config struct {
	Prefix         string   `mapstructure:"prefix"`
	GatewaySvc     string   `mapstructure:"gatewaysvc"                                              validate:"required"`
	Timeout        int64    `mapstructure:"timeout"`
	Insecure       bool     `docs:"false;Whether to skip certificate checks when sending requests." mapstructure:"insecure"`
	Name           string   `mapstructure:"name"`
	MaxNumFiles    int64    `mapstructure:"max_num_files"                                           validate:"required,gt=0"`
	MaxSize        int64    `mapstructure:"max_size"                                                validate:"required,gt=0"`
	AllowedFolders []string `mapstructure:"allowed_folders"`
}

Config holds the config options that need to be passed down to all ocdav handlers.

func (*Config) ApplyDefaults added in v1.25.0

func (c *Config) ApplyDefaults()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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