lsplatform

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo added in v1.1.0

type FileInfo interface {
	fs.FileInfo
	PathAbs() string
}

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(fileInfo FileInfo) (uint64, error)

func (*LocalPlatform) OutputAndError added in v1.1.0

func (*LocalPlatform) OutputAndError(colors bool) (io.Writer, io.Writer)

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 OwnerGroup struct {
	Owner string
	Group string
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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