nfs

package
v0.0.49 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NFS            = "nfs"
	ProgramID      = 100003
	Version2       = 2
	Version3       = 3
	Version4       = 4
	MountProgramID = 100005
	MountProc3     = 3
	MountPort      = 111
)

Variables

This section is empty.

Functions

func DetectNFS

func DetectNFS(conn net.Conn, timeout time.Duration) (*plugins.ServiceNFS, error)

func FetchMountExports added in v0.0.44

func FetchMountExports(remoteAddr string, port uint32, timeout time.Duration) ([]string, error)

func GetNFSMountExports added in v0.0.44

func GetNFSMountExports(conn net.Conn, timeout time.Duration) ([]string, error)

func GetNFSVersionDetails added in v0.0.46

func GetNFSVersionDetails(conn net.Conn, timeout time.Duration) (string, error)

Types

type MountExport added in v0.0.44

type MountExport struct {
	DirPath  string
	HostList []string
}

type NFSPlugin

type NFSPlugin struct{}

func (*NFSPlugin) Name

func (p *NFSPlugin) Name() string

func (*NFSPlugin) PortPriority

func (p *NFSPlugin) PortPriority(port uint16) bool

func (*NFSPlugin) Priority

func (p *NFSPlugin) Priority() int

func (*NFSPlugin) Run

func (p *NFSPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*NFSPlugin) Type

func (p *NFSPlugin) Type() plugins.Protocol

type PortMapperRequest

type PortMapperRequest struct {
	Program uint32
	Version uint32
	Proto   uint32
	Port    uint32
}

type PortMapperResponse

type PortMapperResponse struct {
	Port uint32
}

Jump to

Keyboard shortcuts

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