core

package
v0.0.0-...-24ba59d Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Foreground  bool
	Type        string
	VerboseLog  bool
	Verbose2Log bool
	RefreshTime time.Duration
	HomeDir     string
	Target      string // should be a folder
	Source      string

	//Options map[string]string
	Options Options
}

Config struct

type Core

type Core struct {
	Config  Config
	Drivers map[string]DriverFactory

	CurrentFS DriverFS
}

Core struct

func New

func New() *Core

New create a New cloudmount core

func (*Core) Init

func (c *Core) Init() (err error)

Init to be run after configuration

func (*Core) Mount

func (c *Core) Mount()

Mount performs the mount

type DriverFS

type DriverFS interface {
	fuseutil.FileSystem
	//Init()
	Start()
}

DriverFS default interface for fs driver

type DriverFactory

type DriverFactory func(*Core) DriverFS

DriverFactory function type for a FS factory

type Options

type Options struct {
	// Sub options
	UID      uint32 `opt:"uid"`
	GID      uint32 `opt:"gid"` // Mount GID
	Readonly bool   `opt:"ro"`
}

Options are specified in cloudmount -o option1=1, option2=2

func (Options) String

func (o Options) String() string

Jump to

Keyboard shortcuts

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