Documentation ¶
Index ¶
- type FileInfo
- type LocalPlatform
- func (*LocalPlatform) DeviceNumbers(info FileInfo) (string, error)
- func (*LocalPlatform) EmptyFileInfoSys() any
- func (*LocalPlatform) FileATime(fileInfo FileInfo) *time.Time
- func (*LocalPlatform) FileBlocks(fileInfo FileInfo) int64
- func (*LocalPlatform) FileCTime(fileInfo FileInfo) *time.Time
- func (*LocalPlatform) FileInode(fileInfo FileInfo) (uint64, error)
- func (*LocalPlatform) NumberOfHardLinks(fileInfo FileInfo) (uint64, error)
- func (*LocalPlatform) OutputAndError(colors bool) (io.Writer, io.Writer)
- func (*LocalPlatform) OwnerAndGroupIDs(fileInfo FileInfo) (*OwnerGroup, error)
- func (*LocalPlatform) OwnerAndGroupNames(fileInfo FileInfo) (*OwnerGroup, error)
- func (*LocalPlatform) RootUserName() string
- func (*LocalPlatform) SystemUserNames() []string
- func (*LocalPlatform) UserName() string
- type OwnerGroup
- type PlatformError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalPlatform ¶ added in v1.1.0
type LocalPlatform struct{}
func New ¶ added in v1.1.0
func New() *LocalPlatform
func (*LocalPlatform) DeviceNumbers ¶ added in v1.1.0
func (*LocalPlatform) DeviceNumbers(info FileInfo) (string, error)
func (*LocalPlatform) EmptyFileInfoSys ¶ added in v1.1.0
func (*LocalPlatform) EmptyFileInfoSys() any
func (*LocalPlatform) FileATime ¶ added in v1.1.0
func (*LocalPlatform) FileATime(fileInfo FileInfo) *time.Time
func (*LocalPlatform) FileBlocks ¶ added in v1.1.0
func (*LocalPlatform) FileBlocks(fileInfo FileInfo) int64
FileBlocks returns number of 1024-byte blocks occupied by a file
func (*LocalPlatform) FileCTime ¶ added in v1.1.0
func (*LocalPlatform) FileCTime(fileInfo FileInfo) *time.Time
func (*LocalPlatform) FileInode ¶ added in v1.1.0
func (*LocalPlatform) FileInode(fileInfo FileInfo) (uint64, error)
func (*LocalPlatform) NumberOfHardLinks ¶ added in v1.1.0
func (*LocalPlatform) NumberOfHardLinks(fileInfo FileInfo) (uint64, error)
func (*LocalPlatform) OutputAndError ¶ added in v1.1.0
func (*LocalPlatform) OwnerAndGroupIDs ¶ added in v1.1.0
func (*LocalPlatform) OwnerAndGroupIDs(fileInfo FileInfo) (*OwnerGroup, error)
func (*LocalPlatform) OwnerAndGroupNames ¶ added in v1.1.0
func (*LocalPlatform) OwnerAndGroupNames(fileInfo FileInfo) (*OwnerGroup, error)
func (*LocalPlatform) RootUserName ¶ added in v1.1.0
func (*LocalPlatform) RootUserName() string
RootUserName returns name of root user (the main admin)
func (*LocalPlatform) SystemUserNames ¶ added in v1.1.0
func (*LocalPlatform) SystemUserNames() []string
func (*LocalPlatform) UserName ¶ added in v1.1.0
func (*LocalPlatform) UserName() string
UserName returns name of current user
type OwnerGroup ¶ added in v1.1.0
type PlatformError ¶ added in v1.1.0
type PlatformError struct { Operation string `json:"operation"` Path string `json:"name"` Msg string `json:"error"` }
func (*PlatformError) Error ¶ added in v1.1.0
func (e *PlatformError) Error() string
func (*PlatformError) GetPath ¶ added in v1.1.0
func (e *PlatformError) GetPath() string
Click to show internal directories.
Click to hide internal directories.