install

package
v0.0.0-...-a56eff2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigParams

type ConfigParams struct {
	Id      string `mapstructure:"id"`
	Author  string `mapstructure:"author"`
	Version string `mapstructure:"version"`
}

type Installer

type Installer struct {
	Tar             tar.TarI
	Gunzip          gzip.GunzipI
	AFS             *afero.Afero
	IOFS            *afero.IOFS
	HTTPClient      httpclient.HTTPClientI
	Exec            exec_runner.ExecI
	ConfigProcessor config_processor.ConfigProcessorI
	ConfigFileName  string
}

func (*Installer) Install

func (p *Installer) Install(templatePkg, targetDir string, force bool) (string, error)

func (*Installer) InstallClone

func (p *Installer) InstallClone(gitUri, targetDir, tempDir string, force bool) (string, error)

func (*Installer) InstallFromConfig

func (p *Installer) InstallFromConfig(configFile, targetDir string, force bool) (string, error)

type InstallerI

type InstallerI interface {
	Install(templatePkg, targetDir string, force bool) (string, error)
	InstallClone(gitUri, targetDir, tempDir string, force bool) (string, error)
}

Jump to

Keyboard shortcuts

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