smb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 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 APIImplementor

type APIImplementor struct{}

func New

func New() APIImplementor

func (APIImplementor) IsSmbMapped

func (APIImplementor) IsSmbMapped(remotePath string) (bool, error)

func (APIImplementor) NewSmbGlobalMapping

func (APIImplementor) NewSmbGlobalMapping(remotePath, username, password string) error
func (APIImplementor) NewSmbLink(remotePath, localPath string) error

NewSmbLink - creates a direcotry 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 (APIImplementor) RemoveSmbGlobalMapping

func (APIImplementor) RemoveSmbGlobalMapping(remotePath string) error

Jump to

Keyboard shortcuts

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