samba

package
v0.4.100 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

* @Author: LinkLeong link@icewhale.org * @Date: 2022-07-27 10:35:29 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-01 13:56:44 * @FilePath: /CasaOS/pkg/samba/smaba.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectSambaService

func ConnectSambaService(host, port, username, password, directory string) error

func GetSambaSharesList

func GetSambaSharesList(host, port, username, password string) ([]string, error)

get share name list

func MountOptions added in v0.4.82

func MountOptions(username, password, port string) (string, error)

MountOptions are the options of the CIFS mount of a share: the credentials, and the connection's port. The kernel splits them at each comma and reads ",," as a comma within the password, the escape that mount.cifs itself uses, so a password may hold any comma. A user name or a port cannot be escaped that way: one that holds a separator is refused, and so is a port that is not a number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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