smb

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 3 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". Because of this, we had to perform this operation with powershell commandlet creating an directory softlink. Since os.Symlink is currently being used in working code paths, no attempt is made in alpha to merge the paths. TODO (for beta release): Merge the link paths - os.Symlink and Powershell link path.

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