smb

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	S3OperationRM = S3Operation("rm")
	S3OperationMV = S3Operation("mv")
)

Functions

This section is empty.

Types

type S3Op

type S3Op struct {
	Operation   S3Operation
	Key         string
	KeyTemplate string
}

func (*S3Op) GetKey

func (o *S3Op) GetKey() string

type S3Operation

type S3Operation string

type SMB

type SMB struct {
	Host     string
	Port     int
	Username *string
	Password *string
	Share    *string
	Key      string
	KeyGlob  *string
	ClearOp  *S3Op
	FailOp   *S3Op
	Client   *SMBClient
	// contains filtered or unexported fields
}

func (*SMB) Cleanup

func (d *SMB) Cleanup() error

func (*SMB) ClearWork

func (d *SMB) ClearWork() error

func (*SMB) GetWork

func (d *SMB) GetWork() (io.Reader, error)

func (*SMB) HandleFailure

func (d *SMB) HandleFailure() error

func (*SMB) Init

func (d *SMB) Init() error

func (*SMB) LoadEnv

func (d *SMB) LoadEnv(prefix string) error

func (*SMB) LoadFlags

func (d *SMB) LoadFlags() error

type SMBClient

type SMBClient struct {
	Client *smb2.Session
	Conn   net.Conn
	Share  *smb2.Share
}

Jump to

Keyboard shortcuts

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