op

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chmod

type Chmod struct {
	Name string
	Mode fs.FileMode
}

Chmod represents a chmod operation.

func (Chmod) Path

func (o Chmod) Path() string

type Chown

type Chown struct {
	Name string
	UID  int
	GID  int
}

Chown represents a chown operation.

func (Chown) Path

func (o Chown) Path() string

type Chtimes

type Chtimes struct {
	Name  string
	Atime time.Time
	Mtime time.Time
}

Chtimes represents a chtimes operation.

func (Chtimes) Path

func (o Chtimes) Path() string

type Create

type Create struct {
	Name string
}

Create represents a create operation.

func (Create) Path

func (o Create) Path() string

type Mkdir

type Mkdir struct {
	Name string
	Perm fs.FileMode
}

Mkdir represents a mkdir operation.

func (Mkdir) Path

func (o Mkdir) Path() string

type MkdirAll

type MkdirAll struct {
	Name string
	Perm fs.FileMode
}

MkdirAll represents a mkdir -p operation.

func (MkdirAll) Path

func (o MkdirAll) Path() string

type Open

type Open struct {
	Name string
}

Open represents an open operation.

func (Open) Path

func (o Open) Path() string

type OpenFile

type OpenFile struct {
	Name string
	Flag int
	Perm fs.FileMode
}

OpenFile represents an open with flags operation.

func (OpenFile) Path

func (o OpenFile) Path() string

type Operation

type Operation interface {
	Path() string
}

Operation represents a filesystem operation being performed. Use a type switch to determine the specific operation type.

type Readdir

type Readdir struct {
	Name  string
	Count int
}

Readdir represents a readdir operation on a directory.

func (Readdir) Path

func (o Readdir) Path() string

type Readdirnames

type Readdirnames struct {
	Name  string
	Count int
}

Readdirnames represents a readdirnames operation on a directory.

func (Readdirnames) Path

func (o Readdirnames) Path() string

type Remove

type Remove struct {
	Name string
}

Remove represents a remove operation.

func (Remove) Path

func (o Remove) Path() string

type RemoveAll

type RemoveAll struct {
	Name string
}

RemoveAll represents a remove -r operation.

func (RemoveAll) Path

func (o RemoveAll) Path() string

type Rename

type Rename struct {
	Oldname string
	Newname string
}

Rename represents a rename/move operation.

func (Rename) Path

func (o Rename) Path() string

type Stat

type Stat struct {
	Name string
}

Stat represents a stat operation.

func (Stat) Path

func (o Stat) Path() string

Jump to

Keyboard shortcuts

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