vfsrw

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 21 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFS

func NewFS(config Config, logger zLogger.ZLogger) (*vFSRW, error)

Types

type Config

type Config map[string]*VFS

type OS

type OS struct {
	BaseDir          string
	ZipAsFolderCache uint
}

type Remote added in v3.0.3

type Remote struct {
	Address   string
	ClientTLS *trustconfig.TLSConfig
	BaseDir   string
}

type S3

type S3 struct {
	AccessKeyID      config.EnvString
	SecretAccessKey  config.EnvString
	Endpoint         config.EnvString
	Region           config.EnvString
	UseSSL           bool
	Debug            bool
	CAPEM            string
	BaseUrl          string
	ZipAsFolderCache uint
}

type SFTP

type SFTP struct {
	Address          config.EnvString
	KnownHosts       []string
	BaseDir          string
	Sessions         uint
	User             config.EnvString
	Password         config.EnvString
	PrivateKey       []string
	ZipAsFolderCache uint
}

type VFS

type VFS struct {
	Name   string  `toml:"name"`
	Type   string  `toml:"type"`
	S3     *S3     `toml:"s3,omitempty"`
	OS     *OS     `toml:"os,omitempty"`
	SFTP   *SFTP   `toml:"sftp,omitempty"`
	Remote *Remote `toml:"remote,omitempty"`
}

Jump to

Keyboard shortcuts

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