Documentation ¶
Index ¶
- type Client
- func (c *Client) AppendBytes(fileName string, bytes []byte, newLine bool) error
- func (c *Client) AppendLine(fileName string, strToWrite string) error
- func (c *Client) AppendString(fileName string, strToWrite string) error
- func (c *Client) CheckIfFileExists(name string) (bool, error)
- func (c *Client) CheckIfFolderExists(name string) (bool, error)
- func (c *Client) CloseConn()
- func (c *Client) CreateFolder(name string) error
- func (c *Client) DeleteFile(name string) error
- func (c *Client) DeleteFolder(name string) error
- func (c *Client) FormatErrStr(err error) string
- func (c *Client) GetFileStats(name string) (fs.FileInfo, error)
- func (c *Client) GetFolderStats(name string) (fs.FileInfo, error)
- func (c *Client) GetShares() ([]string, error)
- func (c *Client) GetStats(path string) (fs.FileInfo, error)
- func (c *Client) GetStatsAsString(path string) (string, error)
- func (c *Client) IsConnected() bool
- func (c *Client) IsDir(name string) (bool, error)
- func (c *Client) ListFilesInFolder(name string) ([]string, error)
- func (c *Client) Mount(shareName string) (*smb2.Share, error)
- func (c *Client) NewClient(addressWithPort string, username string, psw string, shareName string) error
- func (c *Client) ReadFile(fileName string) (string, error)
- func (c *Client) ReadFileWithOffsets(fileName string, offsetStart int64, dimesion int64) (string, error)
- func (c *Client) RemoveFile(fileName string) error
- func (c *Client) RenameFile(pathOld string, pathNew string) error
- func (c *Client) RenameFolder(oldPath string, newPath string) error
- func (c *Client) WriteFromOffset(fileName string, bytes []byte, offset int64) error
- func (c *Client) WriteStringFromOffset(fileName string, strToWrite string, offset int64) error
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 (*Client) AppendString ¶
func (*Client) CheckIfFolderExists ¶
func (*Client) CreateFolder ¶
func (*Client) DeleteFile ¶
func (*Client) DeleteFolder ¶
func (*Client) FormatErrStr ¶
FormatErrStr add #ERROR# prefix to identify error in retur string
func (*Client) IsConnected ¶
func (*Client) ListFilesInFolder ¶
func (*Client) ReadFileWithOffsets ¶
func (*Client) RemoveFile ¶
func (*Client) WriteFromOffset ¶
Click to show internal directories.
Click to hide internal directories.