services

package
v0.0.0-...-1d2a632 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecService

type ExecService struct{}

func (*ExecService) Run

func (e *ExecService) Run(program string, args []string, cwd *string, env *map[string]string) int

type FakeLogger

type FakeLogger struct{}

func (FakeLogger) LogCollapsedSection

func (f FakeLogger) LogCollapsedSection(string)

func (FakeLogger) LogInfo

func (f FakeLogger) LogInfo(string)

func (FakeLogger) LogSection

func (f FakeLogger) LogSection(string)

type IExecService

type IExecService interface {
	Run(program string, args []string, cwd *string, env *map[string]string) int
}

type IFileService

type IFileService interface {
	MkdirAll(path string, perm os.FileMode) error
	WriteFile(path string, data []byte, perm os.FileMode) error
	ReadFile(path string) (content []byte, err error)
	RemoveAll(path string) error
}

type ILogger

type ILogger interface {
	LogSection(string)
	LogCollapsedSection(string)
	LogInfo(string)
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger() *Logger

func (Logger) LogCollapsedSection

func (b Logger) LogCollapsedSection(text string)

func (Logger) LogInfo

func (b Logger) LogInfo(text string)

func (Logger) LogSection

func (b Logger) LogSection(text string)

type OsFs

type OsFs struct{}

func (OsFs) MkdirAll

func (OsFs) MkdirAll(name string, perm os.FileMode) error

func (OsFs) ReadFile

func (OsFs) ReadFile(path string) ([]byte, error)

func (OsFs) RemoveAll

func (OsFs) RemoveAll(path string) error

func (OsFs) WriteFile

func (OsFs) WriteFile(name string, data []byte, perm os.FileMode) error

Jump to

Keyboard shortcuts

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