client

package
v0.0.0-...-4b3fde8 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) AppendBytes

func (c *Client) AppendBytes(fileName string, bytes []byte, newLine bool) error

func (*Client) AppendLine

func (c *Client) AppendLine(fileName string, strToWrite string) error

func (*Client) AppendString

func (c *Client) AppendString(fileName string, strToWrite string) error

func (*Client) CheckIfFileExists

func (c *Client) CheckIfFileExists(name string) (bool, error)

func (*Client) CheckIfFolderExists

func (c *Client) CheckIfFolderExists(name string) (bool, error)

func (*Client) CloseConn

func (c *Client) CloseConn()

func (*Client) CreateFolder

func (c *Client) CreateFolder(name string) error

func (*Client) DeleteFile

func (c *Client) DeleteFile(name string) error

func (*Client) DeleteFolder

func (c *Client) DeleteFolder(name string) error

func (*Client) FormatErrStr

func (c *Client) FormatErrStr(err error) string

FormatErrStr add #ERROR# prefix to identify error in retur string

func (*Client) GetFileStats

func (c *Client) GetFileStats(name string) (fs.FileInfo, error)

func (*Client) GetFolderStats

func (c *Client) GetFolderStats(name string) (fs.FileInfo, error)

func (*Client) GetShares

func (c *Client) GetShares() ([]string, error)

func (*Client) GetStats

func (c *Client) GetStats(path string) (fs.FileInfo, error)

func (*Client) GetStatsAsString

func (c *Client) GetStatsAsString(path string) (string, error)

func (*Client) IsConnected

func (c *Client) IsConnected() bool

func (*Client) IsDir

func (c *Client) IsDir(name string) (bool, error)

func (*Client) ListFilesInFolder

func (c *Client) ListFilesInFolder(name string) ([]string, error)

func (*Client) Mount

func (c *Client) Mount(shareName string) (*smb2.Share, error)

func (*Client) NewClient

func (c *Client) NewClient(addressWithPort string, username string, psw string, shareName string) error

func (*Client) ReadFile

func (c *Client) ReadFile(fileName string) (string, error)

func (*Client) ReadFileWithOffsets

func (c *Client) ReadFileWithOffsets(fileName string, offsetStart int64, dimesion int64) (string, error)

func (*Client) RemoveFile

func (c *Client) RemoveFile(fileName string) error

func (*Client) RenameFile

func (c *Client) RenameFile(pathOld string, pathNew string) error

func (*Client) RenameFolder

func (c *Client) RenameFolder(oldPath string, newPath string) error

func (*Client) WriteFromOffset

func (c *Client) WriteFromOffset(fileName string, bytes []byte, offset int64) error

func (*Client) WriteStringFromOffset

func (c *Client) WriteStringFromOffset(fileName string, strToWrite string, offset int64) error

Jump to

Keyboard shortcuts

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