logger

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBlockSize = 4096
)

Variables

This section is empty.

Functions

func Mount

func Mount(mountPoint string, tarfile io.ReaderAt, monitor Monitor) (func() error, error)

Types

type Monitor

type Monitor interface {
	OnLookup(name string)
	OnReadlink(name, linkname string)
	OnOpen(name string)
	OnRead(name string, off, size int64)
	OnGetAttr(name string)
	DumpLog() []string
}

monitor

func NewOpenReadMonitor

func NewOpenReadMonitor() Monitor

type OpenReadMonitor

type OpenReadMonitor struct {
	// contains filtered or unexported fields
}

func (*OpenReadMonitor) DumpLog

func (m *OpenReadMonitor) DumpLog() []string

func (*OpenReadMonitor) OnGetAttr

func (m *OpenReadMonitor) OnGetAttr(name string)

func (*OpenReadMonitor) OnLookup

func (m *OpenReadMonitor) OnLookup(name string)

func (*OpenReadMonitor) OnOpen

func (m *OpenReadMonitor) OnOpen(name string)

func (*OpenReadMonitor) OnRead

func (m *OpenReadMonitor) OnRead(name string, off, size int64)
func (m *OpenReadMonitor) OnReadlink(name, linkname string)

Jump to

Keyboard shortcuts

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