smb

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) (afero.Fs, error)

Types

type Config

type Config struct {
	Host     string
	User     string
	Password string
	Mount    string
}

type Fs

type Fs struct {
	*smb2.Share
	// contains filtered or unexported fields
}

func (*Fs) Close

func (f *Fs) Close()

func (*Fs) Create

func (f *Fs) Create(name string) (afero.File, error)

Create creates a file in the filesystem, returning the file and an error, if any happens.

func (*Fs) Name

func (f *Fs) Name() string

The name of this FileSystem

func (*Fs) Open

func (f *Fs) Open(name string) (afero.File, error)

Open opens a file, returning it or an error, if any happens.

func (*Fs) OpenFile

func (f *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

OpenFile opens a file using the given flags and the given mode.

Jump to

Keyboard shortcuts

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