Documentation ¶
Index ¶
- func CleanManifestPath(manifestPath string) string
- func CopyFile(from, to string) error
- func FileExists(name string) bool
- func FileExistsAndNotDir(path string, fs afero.Fs) bool
- func FileExistsWithFilesystem(path string, fs afero.Fs) bool
- func GetLastNLines(fs afero.Fs, path string, n int, maxChunkByteSize int64) ([]string, error)
- func GetManifestPathFromWorkdir(manifestPath, workdir string) string
- func GetWorkdirFromManifestPath(manifestPath string) string
- func Realpath(fs afero.Fs, fname string) (string, error)
- type OsWorkingDirectoryCtrl
- type TemporalDirectoryCtrl
- type TemporalDirectoryInterface
- type WorkingDirectoryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanManifestPath ¶
CleanManifestPath removes the path to the manifest file, in case the command was executed from a parent or child folder
func FileExistsAndNotDir ¶
FileExistsAndNotDir checks if the file exists, and it's not a dir
func FileExistsWithFilesystem ¶
FileExistsWithFilesystem return true if the file exists or if there is an error.
func GetLastNLines ¶
GetLastNLines returns the last N lines of a file up to a max amount of bytes
func GetManifestPathFromWorkdir ¶
GetManifestPathFromWorkdir returns the path from a workdir
func GetWorkdirFromManifestPath ¶
GetWorkdirFromManifestPath sets the path
Types ¶
type OsWorkingDirectoryCtrl ¶
type OsWorkingDirectoryCtrl struct{}
func NewOsWorkingDirectoryCtrl ¶
func NewOsWorkingDirectoryCtrl() OsWorkingDirectoryCtrl
func (OsWorkingDirectoryCtrl) Change ¶
func (OsWorkingDirectoryCtrl) Change(dir string) error
func (OsWorkingDirectoryCtrl) Get ¶
func (OsWorkingDirectoryCtrl) Get() (string, error)
type TemporalDirectoryCtrl ¶
type TemporalDirectoryCtrl struct {
// contains filtered or unexported fields
}
func NewTemporalDirectoryCtrl ¶
func NewTemporalDirectoryCtrl(fs afero.Fs) TemporalDirectoryCtrl
func (TemporalDirectoryCtrl) Create ¶
func (os TemporalDirectoryCtrl) Create() (string, error)
Click to show internal directories.
Click to hide internal directories.