fsutil

package
v0.17.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) error

func FilesWithExtensions added in v0.16.0

func FilesWithExtensions(dir string, extensions []string) ([]string, error)

FilesWithExtensions returns a list of all files in directory that end in any of the extensions provided. top level only - does not recursively visit directories.

func RenameWithWindowsFallback

func RenameWithWindowsFallback(src, dst string) error

Types

type Detect added in v0.17.0

type Detect struct {
}

func (*Detect) GetInfo added in v0.17.0

func (d *Detect) GetInfo(osReleaseContents string) OSInfo

func (*Detect) HasSystemdFile added in v0.17.0

func (d *Detect) HasSystemdFile() bool

func (*Detect) ReadSystemdFile added in v0.17.0

func (d *Detect) ReadSystemdFile() (string, error)

type Detector added in v0.17.0

type Detector interface {
	HasSystemdFile() bool
	ReadSystemdFile() (string, error)
	GetInfo(osReleaseContents string) OSInfo
}

type OSInfo added in v0.17.0

type OSInfo struct {
	Name    string
	Version string
}

Jump to

Keyboard shortcuts

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