Documentation
¶
Index ¶
- func Hashsec(url string) string
- type SMBClient
- func (c *SMBClient) Close()
- func (c *SMBClient) DeleteFile(remotePath string) error
- func (c *SMBClient) DownloadFile(remotePath, localPath string) error
- func (c *SMBClient) ListFiles(remoteDir string) ([]string, error)
- func (c *SMBClient) ReadBinaryFile(remotePath string) ([]byte, error)
- func (c *SMBClient) ReadFile(remotePath string) (string, error)
- func (c *SMBClient) UploadFile(localPath, remotePath string) error
- func (c *SMBClient) WriteBinaryFile(remotePath string, content []byte) error
- func (c *SMBClient) WriteFile(remotePath, content string) error
- type SMBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SMBClient ¶
SMBClient defines the structure for SMB operations
func LoadSMBFromViper ¶
func NewSMBClient ¶
NewSMBClient creates and returns a new SMBClient
func (*SMBClient) DeleteFile ¶
DeleteFile deletes a file from the SMB share
func (*SMBClient) DownloadFile ¶
DownloadFile downloads a file from the SMB share
func (*SMBClient) ReadBinaryFile ¶
func (*SMBClient) UploadFile ¶
UploadFile uploads a file to the SMB share
func (*SMBClient) WriteBinaryFile ¶
Click to show internal directories.
Click to hide internal directories.