apptype

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFetcher

type FileFetcher interface {
	GetFiles(ctx context.Context, upstream, savePath string) (string, error)
}

type Inspector

type Inspector interface {
	// DetermineApplicationType loads and application from upstream,
	// returning the app type and the local path where its been downloaded (when applicable),
	DetermineApplicationType(
		ctx context.Context,
		upstream string,
	) (app LocalAppCopy, err error)
}

func NewInspector

func NewInspector(
	logger log.Logger,
	fs afero.Afero,
	v *viper.Viper,
	stateManager state.Manager,
	ui cli.Ui,
) Inspector

type LocalAppCopy added in v0.29.0

type LocalAppCopy interface {
	GetType() string
	GetLocalPath() string
	Remove(FS afero.Afero) error
}

func NewLocalAppCopy added in v0.29.0

func NewLocalAppCopy(
	appType string,
	localPath string,
	rootTempDir string,
) LocalAppCopy

Jump to

Keyboard shortcuts

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