sysio

package
v0.0.0-...-d6a869a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type IOnodeFile

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

IOnode class specialization for FS interaction.

func (*IOnodeFile) Close

func (i *IOnodeFile) Close() error

func (*IOnodeFile) GetNsInode

func (i *IOnodeFile) GetNsInode() (domain.Inode, error)

Collects the namespace inodes of the passed /proc/pid/ns/<namespace> file.

func (*IOnodeFile) Lstat

func (i *IOnodeFile) Lstat() (os.FileInfo, error)

func (*IOnodeFile) Mkdir

func (i *IOnodeFile) Mkdir() error

func (*IOnodeFile) MkdirAll

func (i *IOnodeFile) MkdirAll() error

func (*IOnodeFile) Name

func (i *IOnodeFile) Name() string

func (*IOnodeFile) Open

func (i *IOnodeFile) Open() error

func (*IOnodeFile) OpenFlags

func (i *IOnodeFile) OpenFlags() int

func (*IOnodeFile) OpenMode

func (i *IOnodeFile) OpenMode() os.FileMode

func (*IOnodeFile) Path

func (i *IOnodeFile) Path() string

func (*IOnodeFile) Read

func (i *IOnodeFile) Read(p []byte) (int, error)

func (*IOnodeFile) ReadAt

func (i *IOnodeFile) ReadAt(p []byte, off int64) (n int, err error)

func (*IOnodeFile) ReadDirAll

func (i *IOnodeFile) ReadDirAll() ([]os.FileInfo, error)

func (*IOnodeFile) ReadFile

func (i *IOnodeFile) ReadFile() ([]byte, error)

func (*IOnodeFile) ReadLine

func (i *IOnodeFile) ReadLine() (string, error)
func (i *IOnodeFile) ReadLink() (string, error)

func (*IOnodeFile) Remove

func (i *IOnodeFile) Remove() error

Eliminate a node from a previously created file-system. Utilized exclusively for unit-testing purposes (i.e. afero.MemFs).

func (*IOnodeFile) RemoveAll

func (i *IOnodeFile) RemoveAll() error

Eliminate all nodes under the path indicated by the given ionode. Utilized exclusively for unit-testing purposes (i.e. afero.MemFs).

func (*IOnodeFile) Seek

func (i *IOnodeFile) Seek(offset int64, whence int) (int64, error)

func (*IOnodeFile) SeekReset

func (i *IOnodeFile) SeekReset() (int64, error)

func (*IOnodeFile) SetName

func (i *IOnodeFile) SetName(s string)

func (*IOnodeFile) SetOpenFlags

func (i *IOnodeFile) SetOpenFlags(flags int)

func (*IOnodeFile) SetOpenMode

func (i *IOnodeFile) SetOpenMode(mode os.FileMode)

func (*IOnodeFile) SetPath

func (i *IOnodeFile) SetPath(s string)

func (*IOnodeFile) Stat

func (i *IOnodeFile) Stat() (os.FileInfo, error)

func (*IOnodeFile) Write

func (i *IOnodeFile) Write(p []byte) (int, error)

func (*IOnodeFile) WriteAt

func (i *IOnodeFile) WriteAt(p []byte, off int64) (n int, err error)

func (*IOnodeFile) WriteFile

func (i *IOnodeFile) WriteFile(p []byte) error

Jump to

Keyboard shortcuts

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