Documentation ¶
Index ¶
- func DetectArchLinux(fs afero.Fs) bool
- func DetectDarwin(execIF exec.Interface) bool
- type ArchLinuxBackend
- func (b *ArchLinuxBackend) CheckInstall(ctx context.Context, name string) bool
- func (b *ArchLinuxBackend) Command(ctx context.Context, p *CommandParams) error
- func (b *ArchLinuxBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
- func (b *ArchLinuxBackend) FileMove(ctx context.Context, p *FileMoveParams) error
- func (b *ArchLinuxBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
- func (b *ArchLinuxBackend) Install(ctx context.Context, p *InstallParams) error
- func (b *ArchLinuxBackend) Symlink(ctx context.Context, p *SymlinkParams) error
- func (b *ArchLinuxBackend) Uninstall(ctx context.Context, name string) error
- type Backend
- type BaseBackend
- func (b *BaseBackend) CheckInstall(ctx context.Context, name string) bool
- func (b *BaseBackend) Command(ctx context.Context, p *CommandParams) error
- func (b *BaseBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
- func (b *BaseBackend) FileMove(ctx context.Context, p *FileMoveParams) error
- func (b *BaseBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
- func (b *BaseBackend) Install(ctx context.Context, p *InstallParams) error
- func (b *BaseBackend) Symlink(ctx context.Context, p *SymlinkParams) error
- func (b *BaseBackend) Uninstall(ctx context.Context, name string) error
- type CommandParams
- type DarwinBackend
- func (b *DarwinBackend) CheckInstall(ctx context.Context, name string) bool
- func (b *DarwinBackend) Command(ctx context.Context, p *CommandParams) error
- func (b *DarwinBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
- func (b *DarwinBackend) FileMove(ctx context.Context, p *FileMoveParams) error
- func (b *DarwinBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
- func (b *DarwinBackend) Install(ctx context.Context, p *InstallParams) error
- func (b *DarwinBackend) Symlink(ctx context.Context, p *SymlinkParams) error
- func (b *DarwinBackend) Uninstall(ctx context.Context, name string) error
- type DryRunBackend
- func (b *DryRunBackend) CheckInstall(ctx context.Context, name string) bool
- func (b *DryRunBackend) Command(ctx context.Context, p *CommandParams) error
- func (b *DryRunBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
- func (b *DryRunBackend) FileMove(ctx context.Context, p *FileMoveParams) error
- func (b *DryRunBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
- func (b *DryRunBackend) Install(ctx context.Context, p *InstallParams) error
- func (b *DryRunBackend) Symlink(ctx context.Context, p *SymlinkParams) error
- func (b *DryRunBackend) Uninstall(ctx context.Context, name string) error
- type FileCopyParams
- type FileMoveParams
- type HTTPRequestParams
- type InstallParams
- type OS
- type SymlinkParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectArchLinux ¶
func DetectDarwin ¶
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, p *CommandParams) error
func (*ArchLinuxBackend) FileCopy ¶
func (b *ArchLinuxBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
func (*ArchLinuxBackend) FileMove ¶
func (b *ArchLinuxBackend) FileMove(ctx context.Context, p *FileMoveParams) error
func (*ArchLinuxBackend) HTTPRequest ¶
func (b *ArchLinuxBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
func (*ArchLinuxBackend) Install ¶
func (b *ArchLinuxBackend) Install(ctx context.Context, p *InstallParams) error
func (*ArchLinuxBackend) Symlink ¶
func (b *ArchLinuxBackend) Symlink(ctx context.Context, p *SymlinkParams) error
type Backend ¶
type Backend interface { CheckInstall(ctx context.Context, name string) bool Install(ctx context.Context, p *InstallParams) error Uninstall(ctx context.Context, name string) error FileCopy(ctx context.Context, p *FileCopyParams) error FileMove(ctx context.Context, p *FileMoveParams) error Symlink(ctx context.Context, p *SymlinkParams) error HTTPRequest(ctx context.Context, p *HTTPRequestParams) error Command(ctx context.Context, p *CommandParams) error }
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, p *CommandParams) error
func (*BaseBackend) FileCopy ¶
func (b *BaseBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
func (*BaseBackend) FileMove ¶
func (b *BaseBackend) FileMove(ctx context.Context, p *FileMoveParams) error
func (*BaseBackend) HTTPRequest ¶
func (b *BaseBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
func (*BaseBackend) Install ¶
func (b *BaseBackend) Install(ctx context.Context, p *InstallParams) error
func (*BaseBackend) Symlink ¶
func (b *BaseBackend) Symlink(ctx context.Context, p *SymlinkParams) error
type CommandParams ¶
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, p *CommandParams) error
func (*DarwinBackend) FileCopy ¶
func (b *DarwinBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
func (*DarwinBackend) FileMove ¶
func (b *DarwinBackend) FileMove(ctx context.Context, p *FileMoveParams) error
func (*DarwinBackend) HTTPRequest ¶
func (b *DarwinBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
func (*DarwinBackend) Install ¶
func (b *DarwinBackend) Install(ctx context.Context, p *InstallParams) error
func (*DarwinBackend) Symlink ¶
func (b *DarwinBackend) Symlink(ctx context.Context, p *SymlinkParams) error
type DryRunBackend ¶
func (*DryRunBackend) CheckInstall ¶
func (b *DryRunBackend) CheckInstall(ctx context.Context, name string) bool
func (*DryRunBackend) Command ¶
func (b *DryRunBackend) Command(ctx context.Context, p *CommandParams) error
func (*DryRunBackend) FileCopy ¶
func (b *DryRunBackend) FileCopy(ctx context.Context, p *FileCopyParams) error
func (*DryRunBackend) FileMove ¶
func (b *DryRunBackend) FileMove(ctx context.Context, p *FileMoveParams) error
func (*DryRunBackend) HTTPRequest ¶
func (b *DryRunBackend) HTTPRequest(ctx context.Context, p *HTTPRequestParams) error
func (*DryRunBackend) Install ¶
func (b *DryRunBackend) Install(ctx context.Context, p *InstallParams) error
func (*DryRunBackend) Symlink ¶
func (b *DryRunBackend) Symlink(ctx context.Context, p *SymlinkParams) error
type FileMoveParams ¶
type HTTPRequestParams ¶
type InstallParams ¶
type SymlinkParams ¶
Click to show internal directories.
Click to hide internal directories.