config

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgInfoTypeGitHubRelease = "github_release"
	PkgInfoTypeGitHubContent = "github_content"
	PkgInfoTypeGitHubArchive = "github_archive"
	PkgInfoTypeHTTP          = "http"
	PkgInfoTypeGoInstall     = "go_install"
)

Variables

This section is empty.

Functions

func GetMaxParallelism

func GetMaxParallelism(envMaxParallelism string, logE *logrus.Entry) int

func GetRootDir

func GetRootDir(osEnv osenv.OSEnv) string

Types

type Package

type Package struct {
	Package     *aqua.Package
	PackageInfo *registry.PackageInfo
	Registry    *aqua.Registry
}

func ListPackages

func ListPackages(logE *logrus.Entry, cfg *aqua.Config, rt *runtime.Runtime, registries map[string]*registry.Config) ([]*Package, bool)

func ListPackagesNotOverride

func ListPackagesNotOverride(logE *logrus.Entry, cfg *aqua.Config, registries map[string]*registry.Config) ([]*Package, bool)

func (*Package) CompleteWindowsExt

func (cpkg *Package) CompleteWindowsExt(s string) string

func (*Package) GetChecksumID

func (cpkg *Package) GetChecksumID(rt *runtime.Runtime) (string, error)

func (*Package) GetChecksumIDFromAsset

func (cpkg *Package) GetChecksumIDFromAsset(asset string) (string, error)

func (*Package) GetFileSrc

func (cpkg *Package) GetFileSrc(file *registry.File, rt *runtime.Runtime) (string, error)

func (*Package) GetPkgPath

func (cpkg *Package) GetPkgPath(rootDir string, rt *runtime.Runtime) (string, error)

func (*Package) GetTemplateArtifact

func (cpkg *Package) GetTemplateArtifact(rt *runtime.Runtime, asset string) *template.Artifact

func (*Package) RenameFile

func (cpkg *Package) RenameFile(logE *logrus.Entry, fs afero.Fs, pkgPath string, file *registry.File, rt *runtime.Runtime) (string, error)

func (*Package) RenderAsset

func (cpkg *Package) RenderAsset(rt *runtime.Runtime) (string, error)

func (*Package) RenderChecksumFileID

func (cpkg *Package) RenderChecksumFileID(rt *runtime.Runtime) (string, error)

func (*Package) RenderChecksumFileName

func (cpkg *Package) RenderChecksumFileName(rt *runtime.Runtime) (string, error)

func (*Package) RenderChecksumURL

func (cpkg *Package) RenderChecksumURL(rt *runtime.Runtime) (string, error)

func (*Package) RenderCosign

func (cpkg *Package) RenderCosign(cos *registry.Cosign, rt *runtime.Runtime) (*registry.Cosign, error)

func (*Package) RenderDir

func (cpkg *Package) RenderDir(file *registry.File, rt *runtime.Runtime) (string, error)

func (*Package) RenderPath

func (cpkg *Package) RenderPath() (string, error)

func (*Package) RenderSrc

func (cpkg *Package) RenderSrc(file *registry.File, rt *runtime.Runtime) (string, error)

func (*Package) RenderTemplateString

func (cpkg *Package) RenderTemplateString(s string, rt *runtime.Runtime) (string, error)

func (*Package) RenderURL

func (cpkg *Package) RenderURL(rt *runtime.Runtime) (string, error)

func (*Package) SemVer

func (cpkg *Package) SemVer() string

func (*Package) WindowsExt

func (cpkg *Package) WindowsExt() string

type Param

type Param struct {
	GlobalConfigFilePaths []string
	ConfigFilePath        string
	LogLevel              string
	File                  string
	AQUAVersion           string
	RootDir               string
	PWD                   string
	InsertFile            string
	LogColor              string
	Dest                  string
	HomeDir               string
	OutTestData           string
	MaxParallelism        int
	Args                  []string
	Tags                  map[string]struct{}
	ExcludedTags          map[string]struct{}
	OnlyLink              bool
	All                   bool
	Insert                bool
	SelectVersion         bool
	ProgressBar           bool
	Deep                  bool
	SkipLink              bool
	Pin                   bool
	Prune                 bool
	RequireChecksum       bool
	DisablePolicy         bool
	PolicyConfigFilePaths []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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