Documentation ¶
Index ¶
- func DetectArchLinux(fs afero.Fs) bool
- func DetectDarwin(execIF exec.Interface) bool
- func NewExecInterface() exec.Interface
- func NewFs() afero.Fs
- type ArchLinuxBackend
- func (b *ArchLinuxBackend) CheckInstall(ctx context.Context, name string) bool
- func (b *ArchLinuxBackend) Command(ctx context.Context, dryrun bool, p *handlers.CommandParams) error
- func (b *ArchLinuxBackend) CreateDirectory(ctx context.Context, dryrun bool, p *handlers.CreateDirectoryParams) error
- func (b *ArchLinuxBackend) FileCopy(ctx context.Context, dryrun bool, p *handlers.FileCopyParams) error
- func (b *ArchLinuxBackend) FileMove(ctx context.Context, dryrun bool, p *handlers.FileMoveParams) error
- func (b *ArchLinuxBackend) FishSetPath(ctx context.Context, dryrun bool, p *handlers.FishSetPathParams) error
- func (b *ArchLinuxBackend) FishSetVariable(ctx context.Context, dryrun bool, p *handlers.FishSetVariableParams) error
- func (b *ArchLinuxBackend) HTTPRequest(ctx context.Context, dryrun bool, p *handlers.HTTPRequestParams) error
- func (b *ArchLinuxBackend) Install(ctx context.Context, dryrun bool, p *handlers.InstallParams) error
- func (b *ArchLinuxBackend) Symlink(ctx context.Context, dryrun bool, p *handlers.SymlinkParams) error
- func (b *ArchLinuxBackend) Uninstall(ctx context.Context, dryrun bool, p *handlers.UninstallParams) error
- type Backend
- type BaseBackend
- func (b *BaseBackend) CheckInstall(ctx context.Context, name string) bool
- func (b *BaseBackend) Command(ctx context.Context, dryrun bool, p *handlers.CommandParams) error
- func (b *BaseBackend) CreateDirectory(ctx context.Context, dryrun bool, p *handlers.CreateDirectoryParams) error
- func (b *BaseBackend) FileCopy(ctx context.Context, dryrun bool, p *handlers.FileCopyParams) error
- func (b *BaseBackend) FileMove(ctx context.Context, dryrun bool, p *handlers.FileMoveParams) error
- func (b *BaseBackend) FishSetPath(ctx context.Context, dryrun bool, p *handlers.FishSetPathParams) error
- func (b *BaseBackend) FishSetVariable(ctx context.Context, dryrun bool, p *handlers.FishSetVariableParams) error
- func (b *BaseBackend) FunctionCallCount() int
- func (b *BaseBackend) HTTPRequest(ctx context.Context, dryrun bool, p *handlers.HTTPRequestParams) error
- func (b *BaseBackend) Install(ctx context.Context, dryrun bool, p *handlers.InstallParams) error
- func (b *BaseBackend) Symlink(ctx context.Context, dryrun bool, p *handlers.SymlinkParams) error
- func (b *BaseBackend) Uninstall(ctx context.Context, dryrun bool, p *handlers.UninstallParams) error
- type DarwinBackend
- func (b *DarwinBackend) CheckInstall(ctx context.Context, name string) bool
- func (b *DarwinBackend) Command(ctx context.Context, dryrun bool, p *handlers.CommandParams) error
- func (b *DarwinBackend) CreateDirectory(ctx context.Context, dryrun bool, p *handlers.CreateDirectoryParams) error
- func (b *DarwinBackend) FileCopy(ctx context.Context, dryrun bool, p *handlers.FileCopyParams) error
- func (b *DarwinBackend) FileMove(ctx context.Context, dryrun bool, p *handlers.FileMoveParams) error
- func (b *DarwinBackend) FishSetPath(ctx context.Context, dryrun bool, p *handlers.FishSetPathParams) error
- func (b *DarwinBackend) FishSetVariable(ctx context.Context, dryrun bool, p *handlers.FishSetVariableParams) error
- func (b *DarwinBackend) HTTPRequest(ctx context.Context, dryrun bool, p *handlers.HTTPRequestParams) error
- func (b *DarwinBackend) Install(ctx context.Context, dryrun bool, p *handlers.InstallParams) error
- func (b *DarwinBackend) Symlink(ctx context.Context, dryrun bool, p *handlers.SymlinkParams) error
- func (b *DarwinBackend) Uninstall(ctx context.Context, dryrun bool, p *handlers.UninstallParams) error
- type OS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectArchLinux ¶
func DetectDarwin ¶
func NewExecInterface ¶
Types ¶
type ArchLinuxBackend ¶
type ArchLinuxBackend struct { Backend *BaseBackend Exec exec.Interface }
func (*ArchLinuxBackend) CheckInstall ¶
func (b *ArchLinuxBackend) CheckInstall(ctx context.Context, name string) bool
func (*ArchLinuxBackend) Command ¶
func (b *ArchLinuxBackend) Command(ctx context.Context, dryrun bool, p *handlers.CommandParams) error
func (*ArchLinuxBackend) CreateDirectory ¶ added in v0.0.10
func (b *ArchLinuxBackend) CreateDirectory(ctx context.Context, dryrun bool, p *handlers.CreateDirectoryParams) error
func (*ArchLinuxBackend) FileCopy ¶
func (b *ArchLinuxBackend) FileCopy(ctx context.Context, dryrun bool, p *handlers.FileCopyParams) error
func (*ArchLinuxBackend) FileMove ¶
func (b *ArchLinuxBackend) FileMove(ctx context.Context, dryrun bool, p *handlers.FileMoveParams) error
func (*ArchLinuxBackend) FishSetPath ¶
func (b *ArchLinuxBackend) FishSetPath(ctx context.Context, dryrun bool, p *handlers.FishSetPathParams) error
func (*ArchLinuxBackend) FishSetVariable ¶
func (b *ArchLinuxBackend) FishSetVariable(ctx context.Context, dryrun bool, p *handlers.FishSetVariableParams) error
func (*ArchLinuxBackend) HTTPRequest ¶
func (b *ArchLinuxBackend) HTTPRequest(ctx context.Context, dryrun bool, p *handlers.HTTPRequestParams) error
func (*ArchLinuxBackend) Install ¶
func (b *ArchLinuxBackend) Install(ctx context.Context, dryrun bool, p *handlers.InstallParams) error
func (*ArchLinuxBackend) Symlink ¶
func (b *ArchLinuxBackend) Symlink(ctx context.Context, dryrun bool, p *handlers.SymlinkParams) error
func (*ArchLinuxBackend) Uninstall ¶
func (b *ArchLinuxBackend) Uninstall(ctx context.Context, dryrun bool, p *handlers.UninstallParams) error
type Backend ¶
type Backend interface { handlers.CheckInstallHandler handlers.InstallHandler handlers.UninstallHandler handlers.FileCopyHandler handlers.FileMoveHandler handlers.SymlinkHandler handlers.HTTPRequestHandler handlers.CommandHandler handlers.FishSetVariableHandler handlers.FishSetPathHandler handlers.CreateDirectoryHandler }
func Initialize ¶
func Initialize() Backend
type BaseBackend ¶
func (*BaseBackend) CheckInstall ¶
func (b *BaseBackend) CheckInstall(ctx context.Context, name string) bool
func (*BaseBackend) Command ¶
func (b *BaseBackend) Command(ctx context.Context, dryrun bool, p *handlers.CommandParams) error
func (*BaseBackend) CreateDirectory ¶ added in v0.0.10
func (b *BaseBackend) CreateDirectory(ctx context.Context, dryrun bool, p *handlers.CreateDirectoryParams) error
func (*BaseBackend) FileCopy ¶
func (b *BaseBackend) FileCopy(ctx context.Context, dryrun bool, p *handlers.FileCopyParams) error
func (*BaseBackend) FileMove ¶
func (b *BaseBackend) FileMove(ctx context.Context, dryrun bool, p *handlers.FileMoveParams) error
func (*BaseBackend) FishSetPath ¶
func (b *BaseBackend) FishSetPath(ctx context.Context, dryrun bool, p *handlers.FishSetPathParams) error
func (*BaseBackend) FishSetVariable ¶
func (b *BaseBackend) FishSetVariable(ctx context.Context, dryrun bool, p *handlers.FishSetVariableParams) error
func (*BaseBackend) FunctionCallCount ¶
func (b *BaseBackend) FunctionCallCount() int
func (*BaseBackend) HTTPRequest ¶
func (b *BaseBackend) HTTPRequest(ctx context.Context, dryrun bool, p *handlers.HTTPRequestParams) error
func (*BaseBackend) Install ¶
func (b *BaseBackend) Install(ctx context.Context, dryrun bool, p *handlers.InstallParams) error
func (*BaseBackend) Symlink ¶
func (b *BaseBackend) Symlink(ctx context.Context, dryrun bool, p *handlers.SymlinkParams) error
func (*BaseBackend) Uninstall ¶
func (b *BaseBackend) Uninstall(ctx context.Context, dryrun bool, p *handlers.UninstallParams) error
type DarwinBackend ¶
func (*DarwinBackend) CheckInstall ¶
func (b *DarwinBackend) CheckInstall(ctx context.Context, name string) bool
func (*DarwinBackend) Command ¶
func (b *DarwinBackend) Command(ctx context.Context, dryrun bool, p *handlers.CommandParams) error
func (*DarwinBackend) CreateDirectory ¶ added in v0.0.10
func (b *DarwinBackend) CreateDirectory(ctx context.Context, dryrun bool, p *handlers.CreateDirectoryParams) error
func (*DarwinBackend) FileCopy ¶
func (b *DarwinBackend) FileCopy(ctx context.Context, dryrun bool, p *handlers.FileCopyParams) error
func (*DarwinBackend) FileMove ¶
func (b *DarwinBackend) FileMove(ctx context.Context, dryrun bool, p *handlers.FileMoveParams) error
func (*DarwinBackend) FishSetPath ¶
func (b *DarwinBackend) FishSetPath(ctx context.Context, dryrun bool, p *handlers.FishSetPathParams) error
func (*DarwinBackend) FishSetVariable ¶
func (b *DarwinBackend) FishSetVariable(ctx context.Context, dryrun bool, p *handlers.FishSetVariableParams) error
func (*DarwinBackend) HTTPRequest ¶
func (b *DarwinBackend) HTTPRequest(ctx context.Context, dryrun bool, p *handlers.HTTPRequestParams) error
func (*DarwinBackend) Install ¶
func (b *DarwinBackend) Install(ctx context.Context, dryrun bool, p *handlers.InstallParams) error
func (*DarwinBackend) Symlink ¶
func (b *DarwinBackend) Symlink(ctx context.Context, dryrun bool, p *handlers.SymlinkParams) error
func (*DarwinBackend) Uninstall ¶
func (b *DarwinBackend) Uninstall(ctx context.Context, dryrun bool, p *handlers.UninstallParams) error
Click to show internal directories.
Click to hide internal directories.