ifaces

package
v3.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile interface {
	Write(outputJSON bool) error
	AddChecksums(dependencies []string, systems []bindown.SystemInfo) error
	Validate(dependencies []string, systems []bindown.SystemInfo) error
	InstallDependency(dependencyName string, sysInfo bindown.SystemInfo, opts *bindown.ConfigInstallDependencyOpts) (string, error)
	DownloadDependency(dependencyName string, sysInfo bindown.SystemInfo, opts *bindown.ConfigDownloadDependencyOpts) (string, error)
	ExtractDependency(dependencyName string, sysInfo bindown.SystemInfo, opts *bindown.ConfigExtractDependencyOpts) (string, error)
	AddDependencyFromTemplate(templateName string, opts *bindown.AddDependencyFromTemplateOpts) error
	MissingDependencyVars(depName string) ([]string, error)
	SetDependencyVars(depName string, vars map[string]string) error
	UnsetDependencyVars(depName string, vars []string) error
	SetTemplateVars(tmplName string, vars map[string]string) error
	UnsetTemplateVars(tmplName string, vars []string) error
}

ConfigFile a config file

type ConfigLoader

type ConfigLoader interface {
	Load(filename string, noDefaultDirs bool) (ConfigFile, error)
}

ConfigLoader loads config files

Jump to

Keyboard shortcuts

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