app

package
v0.0.0-...-bdacdae Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(baseDir string) (*App, error)

func (*App) Install

func (a *App) Install(ctx context.Context, name string) error

func (*App) List

func (a *App) List(ctx context.Context, style ListStyle) error

func (*App) Uninstall

func (a *App) Uninstall(ctx context.Context, name string) error

type EclipseJDTLSInstaller

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

func NewEclipseJDTLSInstaller

func NewEclipseJDTLSInstaller(baseDir string) *EclipseJDTLSInstaller

func (*EclipseJDTLSInstaller) BinName

func (i *EclipseJDTLSInstaller) BinName() string

func (*EclipseJDTLSInstaller) CmdRun

func (i *EclipseJDTLSInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*EclipseJDTLSInstaller) Dir

func (i *EclipseJDTLSInstaller) Dir() string

func (*EclipseJDTLSInstaller) Download

func (i *EclipseJDTLSInstaller) Download(req *http.Request, archive string) error

func (*EclipseJDTLSInstaller) Extract

func (i *EclipseJDTLSInstaller) Extract(ctx context.Context, path string) error

func (*EclipseJDTLSInstaller) ExtractWithDownload

func (i *EclipseJDTLSInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*EclipseJDTLSInstaller) FetchWithExtract

func (i *EclipseJDTLSInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*EclipseJDTLSInstaller) Install

func (i *EclipseJDTLSInstaller) Install(ctx context.Context) error

func (*EclipseJDTLSInstaller) Name

func (i *EclipseJDTLSInstaller) Name() string

func (*EclipseJDTLSInstaller) RequireHook

func (i *EclipseJDTLSInstaller) RequireHook(ctx context.Context) error

func (*EclipseJDTLSInstaller) Requires

func (i *EclipseJDTLSInstaller) Requires() []string

func (*EclipseJDTLSInstaller) SetWriter

func (i *EclipseJDTLSInstaller) SetWriter(w io.Writer)

func (*EclipseJDTLSInstaller) Supports

func (i *EclipseJDTLSInstaller) Supports() []Support

func (*EclipseJDTLSInstaller) Version

func (i *EclipseJDTLSInstaller) Version() string

type EfmLSInstaller

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

func NewEfmLSInstaller

func NewEfmLSInstaller(baseDir string) *EfmLSInstaller

func (*EfmLSInstaller) BinName

func (i *EfmLSInstaller) BinName() string

func (*EfmLSInstaller) CmdRun

func (i *EfmLSInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*EfmLSInstaller) Dir

func (i *EfmLSInstaller) Dir() string

func (*EfmLSInstaller) Download

func (i *EfmLSInstaller) Download(req *http.Request, archive string) error

func (*EfmLSInstaller) Extract

func (i *EfmLSInstaller) Extract(ctx context.Context, path string) error

func (*EfmLSInstaller) ExtractWithDownload

func (i *EfmLSInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*EfmLSInstaller) FetchWithExtract

func (i *EfmLSInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*EfmLSInstaller) Install

func (i *EfmLSInstaller) Install(ctx context.Context) error

func (*EfmLSInstaller) Name

func (i *EfmLSInstaller) Name() string

func (*EfmLSInstaller) RequireHook

func (i *EfmLSInstaller) RequireHook(ctx context.Context) error

func (*EfmLSInstaller) Requires

func (i *EfmLSInstaller) Requires() []string

func (*EfmLSInstaller) SetWriter

func (i *EfmLSInstaller) SetWriter(w io.Writer)

func (*EfmLSInstaller) Supports

func (i *EfmLSInstaller) Supports() []Support

func (*EfmLSInstaller) Version

func (i *EfmLSInstaller) Version() string

type GoInstaller

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

func NewGoInstaller

func NewGoInstaller(baseDir, goPath, binName string, cgo bool) *GoInstaller

func (*GoInstaller) BinName

func (i *GoInstaller) BinName() string

func (*GoInstaller) CmdRun

func (i *GoInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*GoInstaller) Dir

func (i *GoInstaller) Dir() string

func (*GoInstaller) Download

func (i *GoInstaller) Download(req *http.Request, archive string) error

func (*GoInstaller) Extract

func (i *GoInstaller) Extract(ctx context.Context, path string) error

func (*GoInstaller) ExtractWithDownload

func (i *GoInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*GoInstaller) FetchWithExtract

func (i *GoInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*GoInstaller) Install

func (i *GoInstaller) Install(ctx context.Context) error

func (*GoInstaller) Name

func (i *GoInstaller) Name() string

func (*GoInstaller) RequireHook

func (i *GoInstaller) RequireHook(ctx context.Context) error

func (*GoInstaller) Requires

func (i *GoInstaller) Requires() []string

func (*GoInstaller) SetWriter

func (i *GoInstaller) SetWriter(w io.Writer)

func (*GoInstaller) Supports

func (i *GoInstaller) Supports() []Support

func (*GoInstaller) Version

func (i *GoInstaller) Version() string

type Installer

type Installer interface {
	Name() string
	BinName() string
	Dir() string
	Requires() []string
	RequireHook(ctx context.Context) error
	Supports() []Support
	Version() string
	Install(ctx context.Context) error
	SetWriter(w io.Writer)
}

type KotlinLSInstaller

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

func NewKotlinLSInstaller

func NewKotlinLSInstaller(baseDir string) *KotlinLSInstaller

func (*KotlinLSInstaller) BinName

func (i *KotlinLSInstaller) BinName() string

func (*KotlinLSInstaller) CmdRun

func (i *KotlinLSInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*KotlinLSInstaller) Dir

func (i *KotlinLSInstaller) Dir() string

func (*KotlinLSInstaller) Download

func (i *KotlinLSInstaller) Download(req *http.Request, archive string) error

func (*KotlinLSInstaller) Extract

func (i *KotlinLSInstaller) Extract(ctx context.Context, path string) error

func (*KotlinLSInstaller) ExtractWithDownload

func (i *KotlinLSInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*KotlinLSInstaller) FetchWithExtract

func (i *KotlinLSInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*KotlinLSInstaller) Install

func (i *KotlinLSInstaller) Install(ctx context.Context) error

func (*KotlinLSInstaller) Name

func (i *KotlinLSInstaller) Name() string

func (*KotlinLSInstaller) RequireHook

func (i *KotlinLSInstaller) RequireHook(ctx context.Context) error

func (*KotlinLSInstaller) Requires

func (i *KotlinLSInstaller) Requires() []string

func (*KotlinLSInstaller) SetWriter

func (i *KotlinLSInstaller) SetWriter(w io.Writer)

func (*KotlinLSInstaller) Supports

func (i *KotlinLSInstaller) Supports() []Support

func (*KotlinLSInstaller) Version

func (i *KotlinLSInstaller) Version() string

type ListStyle

type ListStyle string
const (
	ListStyleUndefined ListStyle = ""
	ListStyleJSON      ListStyle = "json"
	ListStyleTable     ListStyle = "table"
)

type MetalsInstaller

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

func NewMetalsInstaller

func NewMetalsInstaller(baseDir string) *MetalsInstaller

func (*MetalsInstaller) BinName

func (i *MetalsInstaller) BinName() string

func (*MetalsInstaller) CmdRun

func (i *MetalsInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*MetalsInstaller) Dir

func (i *MetalsInstaller) Dir() string

func (*MetalsInstaller) Download

func (i *MetalsInstaller) Download(req *http.Request, archive string) error

func (*MetalsInstaller) Extract

func (i *MetalsInstaller) Extract(ctx context.Context, path string) error

func (*MetalsInstaller) ExtractWithDownload

func (i *MetalsInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*MetalsInstaller) FetchWithExtract

func (i *MetalsInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*MetalsInstaller) Install

func (i *MetalsInstaller) Install(ctx context.Context) error

func (*MetalsInstaller) Name

func (i *MetalsInstaller) Name() string

func (*MetalsInstaller) RequireHook

func (i *MetalsInstaller) RequireHook(ctx context.Context) error

func (*MetalsInstaller) Requires

func (i *MetalsInstaller) Requires() []string

func (*MetalsInstaller) SetWriter

func (i *MetalsInstaller) SetWriter(w io.Writer)

func (*MetalsInstaller) Supports

func (i *MetalsInstaller) Supports() []Support

func (*MetalsInstaller) Version

func (i *MetalsInstaller) Version() string

type NpmInstaller

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

func NewNpmInstaller

func NewNpmInstaller(baseDir, moduleName, binName string) *NpmInstaller

func (*NpmInstaller) BinName

func (i *NpmInstaller) BinName() string

func (*NpmInstaller) CmdRun

func (i *NpmInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*NpmInstaller) Dir

func (i *NpmInstaller) Dir() string

func (*NpmInstaller) Download

func (i *NpmInstaller) Download(req *http.Request, archive string) error

func (*NpmInstaller) Extract

func (i *NpmInstaller) Extract(ctx context.Context, path string) error

func (*NpmInstaller) ExtractWithDownload

func (i *NpmInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*NpmInstaller) FetchWithExtract

func (i *NpmInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*NpmInstaller) Install

func (i *NpmInstaller) Install(ctx context.Context) error

func (*NpmInstaller) Name

func (i *NpmInstaller) Name() string

func (*NpmInstaller) RequireHook

func (i *NpmInstaller) RequireHook(ctx context.Context) error

func (*NpmInstaller) Requires

func (i *NpmInstaller) Requires() []string

func (*NpmInstaller) SetWriter

func (i *NpmInstaller) SetWriter(w io.Writer)

func (*NpmInstaller) Supports

func (i *NpmInstaller) Supports() []Support

func (*NpmInstaller) Version

func (i *NpmInstaller) Version() string

type PipInstaller

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

func NewPipInstaller

func NewPipInstaller(baseDir, moduleName, binName string) *PipInstaller

func (*PipInstaller) BinName

func (i *PipInstaller) BinName() string

func (*PipInstaller) CmdRun

func (i *PipInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*PipInstaller) Dir

func (i *PipInstaller) Dir() string

func (*PipInstaller) Download

func (i *PipInstaller) Download(req *http.Request, archive string) error

func (*PipInstaller) Extract

func (i *PipInstaller) Extract(ctx context.Context, path string) error

func (*PipInstaller) ExtractWithDownload

func (i *PipInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*PipInstaller) FetchWithExtract

func (i *PipInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*PipInstaller) Install

func (i *PipInstaller) Install(ctx context.Context) error

func (*PipInstaller) Name

func (i *PipInstaller) Name() string

func (*PipInstaller) RequireHook

func (i *PipInstaller) RequireHook(ctx context.Context) error

func (*PipInstaller) Requires

func (i *PipInstaller) Requires() []string

func (*PipInstaller) SetWriter

func (i *PipInstaller) SetWriter(w io.Writer)

func (*PipInstaller) Supports

func (i *PipInstaller) Supports() []Support

func (*PipInstaller) Version

func (i *PipInstaller) Version() string

type RustAnalyzerInstaller

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

func NewRustAnalyzerInstaller

func NewRustAnalyzerInstaller(baseDir string) *RustAnalyzerInstaller

func (*RustAnalyzerInstaller) BinName

func (i *RustAnalyzerInstaller) BinName() string

func (*RustAnalyzerInstaller) CmdRun

func (i *RustAnalyzerInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*RustAnalyzerInstaller) Dir

func (i *RustAnalyzerInstaller) Dir() string

func (*RustAnalyzerInstaller) Download

func (i *RustAnalyzerInstaller) Download(req *http.Request, archive string) error

func (*RustAnalyzerInstaller) Extract

func (i *RustAnalyzerInstaller) Extract(ctx context.Context, path string) error

func (*RustAnalyzerInstaller) ExtractWithDownload

func (i *RustAnalyzerInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*RustAnalyzerInstaller) FetchWithExtract

func (i *RustAnalyzerInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*RustAnalyzerInstaller) Install

func (i *RustAnalyzerInstaller) Install(ctx context.Context) error

func (*RustAnalyzerInstaller) Name

func (i *RustAnalyzerInstaller) Name() string

func (*RustAnalyzerInstaller) RequireHook

func (i *RustAnalyzerInstaller) RequireHook(ctx context.Context) error

func (*RustAnalyzerInstaller) Requires

func (i *RustAnalyzerInstaller) Requires() []string

func (*RustAnalyzerInstaller) SetWriter

func (i *RustAnalyzerInstaller) SetWriter(w io.Writer)

func (*RustAnalyzerInstaller) Supports

func (i *RustAnalyzerInstaller) Supports() []Support

func (*RustAnalyzerInstaller) Version

func (i *RustAnalyzerInstaller) Version() string

type Support

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

type TerraformLSInstaller

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

func NewTerraformLSInstaller

func NewTerraformLSInstaller(baseDir string) *TerraformLSInstaller

func (*TerraformLSInstaller) BinName

func (i *TerraformLSInstaller) BinName() string

func (*TerraformLSInstaller) CmdRun

func (i *TerraformLSInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*TerraformLSInstaller) Dir

func (i *TerraformLSInstaller) Dir() string

func (*TerraformLSInstaller) Download

func (i *TerraformLSInstaller) Download(req *http.Request, archive string) error

func (*TerraformLSInstaller) Extract

func (i *TerraformLSInstaller) Extract(ctx context.Context, path string) error

func (*TerraformLSInstaller) ExtractWithDownload

func (i *TerraformLSInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*TerraformLSInstaller) FetchWithExtract

func (i *TerraformLSInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*TerraformLSInstaller) Install

func (i *TerraformLSInstaller) Install(ctx context.Context) error

func (*TerraformLSInstaller) Name

func (i *TerraformLSInstaller) Name() string

func (*TerraformLSInstaller) RequireHook

func (i *TerraformLSInstaller) RequireHook(ctx context.Context) error

func (*TerraformLSInstaller) Requires

func (i *TerraformLSInstaller) Requires() []string

func (*TerraformLSInstaller) SetWriter

func (i *TerraformLSInstaller) SetWriter(w io.Writer)

func (*TerraformLSInstaller) Supports

func (i *TerraformLSInstaller) Supports() []Support

func (*TerraformLSInstaller) Version

func (i *TerraformLSInstaller) Version() string

type TerraformLSPInstaller

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

func NewTerraformLSPInstaller

func NewTerraformLSPInstaller(baseDir string) *TerraformLSPInstaller

func (*TerraformLSPInstaller) BinName

func (i *TerraformLSPInstaller) BinName() string

func (*TerraformLSPInstaller) CmdRun

func (i *TerraformLSPInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*TerraformLSPInstaller) Dir

func (i *TerraformLSPInstaller) Dir() string

func (*TerraformLSPInstaller) Download

func (i *TerraformLSPInstaller) Download(req *http.Request, archive string) error

func (*TerraformLSPInstaller) Extract

func (i *TerraformLSPInstaller) Extract(ctx context.Context, path string) error

func (*TerraformLSPInstaller) ExtractWithDownload

func (i *TerraformLSPInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*TerraformLSPInstaller) FetchWithExtract

func (i *TerraformLSPInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*TerraformLSPInstaller) Install

func (i *TerraformLSPInstaller) Install(ctx context.Context) error

func (*TerraformLSPInstaller) Name

func (i *TerraformLSPInstaller) Name() string

func (*TerraformLSPInstaller) RequireHook

func (i *TerraformLSPInstaller) RequireHook(ctx context.Context) error

func (*TerraformLSPInstaller) Requires

func (i *TerraformLSPInstaller) Requires() []string

func (*TerraformLSPInstaller) SetWriter

func (i *TerraformLSPInstaller) SetWriter(w io.Writer)

func (*TerraformLSPInstaller) Supports

func (i *TerraformLSPInstaller) Supports() []Support

func (*TerraformLSPInstaller) Version

func (i *TerraformLSPInstaller) Version() string

type VSCodeExtensionInstaller

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

func NewVSCodeExtensionInstaller

func NewVSCodeExtensionInstaller(baseDir, name, extensionName, vsixURL string) *VSCodeExtensionInstaller

func (*VSCodeExtensionInstaller) BinName

func (i *VSCodeExtensionInstaller) BinName() string

func (*VSCodeExtensionInstaller) CmdRun

func (i *VSCodeExtensionInstaller) CmdRun(ctx context.Context, name string, args ...string) error

func (*VSCodeExtensionInstaller) Dir

func (i *VSCodeExtensionInstaller) Dir() string

func (*VSCodeExtensionInstaller) Download

func (i *VSCodeExtensionInstaller) Download(req *http.Request, archive string) error

func (*VSCodeExtensionInstaller) Extract

func (i *VSCodeExtensionInstaller) Extract(ctx context.Context, path string) error

func (*VSCodeExtensionInstaller) ExtractWithDownload

func (i *VSCodeExtensionInstaller) ExtractWithDownload(req *http.Request, path string) error

func (*VSCodeExtensionInstaller) FetchWithExtract

func (i *VSCodeExtensionInstaller) FetchWithExtract(ctx context.Context, url string, path string) error

func (*VSCodeExtensionInstaller) Install

func (*VSCodeExtensionInstaller) Name

func (i *VSCodeExtensionInstaller) Name() string

func (*VSCodeExtensionInstaller) RequireHook

func (i *VSCodeExtensionInstaller) RequireHook(ctx context.Context) error

func (*VSCodeExtensionInstaller) Requires

func (i *VSCodeExtensionInstaller) Requires() []string

func (*VSCodeExtensionInstaller) SetWriter

func (i *VSCodeExtensionInstaller) SetWriter(w io.Writer)

func (*VSCodeExtensionInstaller) Supports

func (i *VSCodeExtensionInstaller) Supports() []Support

func (*VSCodeExtensionInstaller) Version

func (i *VSCodeExtensionInstaller) Version() string

Jump to

Keyboard shortcuts

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