hostfs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFileIfChanged

func WriteFileIfChanged(path HostPath, content []byte, mode os.FileMode) error

Types

type HostPath

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

func NewHostPath

func NewHostPath(raw string) (HostPath, error)

func (HostPath) Abs

func (p HostPath) Abs() string

func (HostPath) Chmod

func (p HostPath) Chmod(mode os.FileMode) error
func (p HostPath) CreateSymlink(target string) error

func (HostPath) EnsureDir

func (p HostPath) EnsureDir(class filemode.StorageClass) error

func (HostPath) EnsureParentDir

func (p HostPath) EnsureParentDir(class filemode.StorageClass) error

func (HostPath) Lstat

func (p HostPath) Lstat() (os.FileInfo, error)

func (HostPath) ReadFile

func (p HostPath) ReadFile() ([]byte, error)
func (p HostPath) Readlink() (string, error)

func (HostPath) Remove

func (p HostPath) Remove() error

func (HostPath) RemoveAll

func (p HostPath) RemoveAll() error

func (HostPath) Stat

func (p HostPath) Stat() (os.FileInfo, error)

func (HostPath) WriteFile

func (p HostPath) WriteFile(data []byte, class filemode.StorageClass) error

func (HostPath) WriteFileMode

func (p HostPath) WriteFileMode(data []byte, mode os.FileMode) error

Jump to

Keyboard shortcuts

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