vfsrw

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFS

func NewFS(config Config, logger *logging.Logger) (*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
	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
	Type string
	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