smb

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Properties

type Properties struct {
	Url       string
	Host      string
	Port      string
	User      string
	Password  string
	Domain    string
	ShareName string
	FilePath  string
}

func ParseUrl

func ParseUrl(url string) (Properties, error)

ParseUrl - parses according to https://www.iana.org/assignments/uri-schemes/prov/smb except for the query string smb://[[<domain>;]<username>[:<password>]@]<server>[:<port>][/[<share>[/[<path>]]][?[<param>=<value>[;<param2>=<value2>[...]]]]]

type Service

type Service struct{}

func (*Service) FetchFileContents

func (s *Service) FetchFileContents(url string) ([]byte, error)

type ServiceInterface

type ServiceInterface interface {
	FetchFileContents(url string) ([]byte, error)
}

func NewSambaService

func NewSambaService() ServiceInterface

Jump to

Keyboard shortcuts

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