utils

package
v0.0.0-...-120d823 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 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 CmdExecutor

type CmdExecutor struct{}

func (*CmdExecutor) RunCmd

func (e *CmdExecutor) RunCmd(command string, args ...string) error

type Executor

type Executor interface {
	RunCmd(string, ...string) error
}

type Filesystem

type Filesystem interface {
	MkdirAll(path string, perm os.FileMode) error
	RemoveAll(path string) error
}

type OSFilesystem

type OSFilesystem struct{}

func (OSFilesystem) MkdirAll

func (fs OSFilesystem) MkdirAll(path string, perm os.FileMode) error

func (OSFilesystem) RemoveAll

func (fs OSFilesystem) RemoveAll(path string) error

Jump to

Keyboard shortcuts

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