vfsrw

package
v2.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFS

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

Types

type Config

type Config map[string]*VFS

type OS

type OS struct {
	BaseDir          string
	ZipAsFolderCache uint
}

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"`
}

Jump to

Keyboard shortcuts

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