logger

package
v0.0.0-...-50ad32a Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 11 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 {
	OnMount()
	OnUnmount()
	OnLookup(name string)
	OnForget(name string)
	OnAccess(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) OnAccess

func (m *OpenReadMonitor) OnAccess(name string)

func (*OpenReadMonitor) OnForget

func (m *OpenReadMonitor) OnForget(name string)

func (*OpenReadMonitor) OnGetAttr

func (m *OpenReadMonitor) OnGetAttr(name string)

func (*OpenReadMonitor) OnLookup

func (m *OpenReadMonitor) OnLookup(name string)

func (*OpenReadMonitor) OnMount

func (m *OpenReadMonitor) OnMount()

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)

func (*OpenReadMonitor) OnUnmount

func (m *OpenReadMonitor) OnUnmount()

Jump to

Keyboard shortcuts

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