fake

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeInstaller

func NewFakeInstaller(support bool, hasError bool) core.Installer

NewFakeInstaller returns a Installer

Types

type Installer

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

Installer only for test purpose

func (*Installer) Available

func (d *Installer) Available() bool

Available check if support current platform

func (*Installer) Install

func (d *Installer) Install() (err error)

Install installs the vim

func (*Installer) SetURLReplace added in v0.0.76

func (d *Installer) SetURLReplace(data map[string]string)

SetURLReplace is a fake method

func (*Installer) Start

func (d *Installer) Start() (err error)

Start starts the vim service

func (*Installer) Stop

func (d *Installer) Stop() (err error)

Stop stops the vim service

func (*Installer) Uninstall

func (d *Installer) Uninstall() (err error)

Uninstall uninstalls the vim

func (*Installer) WaitForStart

func (d *Installer) WaitForStart() (ok bool, err error)

WaitForStart waits for the service be started

Jump to

Keyboard shortcuts

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