smb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	IsSmbMapped(remotePath string) (bool, error)
	NewSmbLink(remotePath, localPath string) error
	NewSmbGlobalMapping(remotePath, username, password string) error
	RemoveSmbGlobalMapping(remotePath string) error
}

type SmbAPI

type SmbAPI struct {
	RequirePrivacy bool
}

func New

func New(requirePrivacy bool) *SmbAPI

func (*SmbAPI) IsSmbMapped

func (*SmbAPI) IsSmbMapped(remotePath string) (bool, error)

func (*SmbAPI) NewSmbGlobalMapping

func (api *SmbAPI) NewSmbGlobalMapping(remotePath, username, password string) error
func (*SmbAPI) NewSmbLink(remotePath, localPath string) error

NewSmbLink - creates a directory symbolic link to the remote share. The os.Symlink was having issue for cases where the destination was an SMB share - the container runtime would complain stating "Access Denied".

func (*SmbAPI) RemoveSmbGlobalMapping

func (*SmbAPI) RemoveSmbGlobalMapping(remotePath string) error

Jump to

Keyboard shortcuts

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