Documentation ¶
Index ¶
- Constants
- func Mount(mountPoint string, tarfile io.ReaderAt, monitor Monitor) (func() error, error)
- type Monitor
- type OpenReadMonitor
- func (m *OpenReadMonitor) DumpLog() []string
- func (m *OpenReadMonitor) OnGetAttr(name string)
- func (m *OpenReadMonitor) OnLookup(name string)
- func (m *OpenReadMonitor) OnOpen(name string)
- func (m *OpenReadMonitor) OnRead(name string, off, size int64)
- func (m *OpenReadMonitor) OnReadlink(name, linkname string)
Constants ¶
View Source
const (
DefaultBlockSize = 4096
)
Variables ¶
This section is empty.
Functions ¶
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 (*OpenReadMonitor) OnReadlink ¶
func (m *OpenReadMonitor) OnReadlink(name, linkname string)
Click to show internal directories.
Click to hide internal directories.