config

package
v2.23.1-1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgInfoTypeGitHubRelease = "github_release"
	PkgInfoTypeGitHubContent = "github_content"
	PkgInfoTypeGitHubArchive = "github_archive"
	PkgInfoTypeHTTP          = "http"
	PkgInfoTypeGoInstall     = "go_install"
	PkgInfoTypeGoBuild       = "go_build"
	PkgInfoTypeCargo         = "cargo"
)
View Source
const (
	// DefaultVerCnt is the default value for
	// --limit/-l flag in command generate, update
	DefaultVerCnt int = 30
)

Exported constant

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 FileNotFoundError added in v2.4.0

type FileNotFoundError struct {
	Err error
}

func (*FileNotFoundError) Error added in v2.4.0

func (e *FileNotFoundError) Error() string

func (*FileNotFoundError) Unwrap added in v2.4.0

func (e *FileNotFoundError) Unwrap() error

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) ChecksumID added in v2.11.0

func (p *Package) ChecksumID(rt *runtime.Runtime) (string, error)

func (*Package) ChecksumIDFromAsset added in v2.11.0

func (p *Package) ChecksumIDFromAsset(asset string) (string, error)

func (*Package) ExePath added in v2.11.0

func (p *Package) ExePath(rootDir string, file *registry.File, rt *runtime.Runtime) (string, error)

func (*Package) PkgPath added in v2.11.0

func (p *Package) PkgPath(rootDir string, rt *runtime.Runtime) (string, error)

func (*Package) RenameFile

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

func (*Package) RenderAsset

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

func (*Package) RenderChecksumFileID

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

func (*Package) RenderChecksumFileName

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

func (*Package) RenderChecksumURL

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

func (*Package) RenderCosign

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

func (*Package) RenderDir

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

func (*Package) RenderPath

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

func (*Package) RenderTemplateString

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

func (*Package) RenderURL

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

func (*Package) TemplateArtifact added in v2.11.0

func (p *Package) TemplateArtifact(rt *runtime.Runtime, asset string) *template.Artifact

type Param

type Param struct {
	GlobalConfigFilePaths []string
	ConfigFilePath        string
	LogLevel              string
	File                  string
	AQUAVersion           string
	AquaCommitHash        string
	RootDir               string
	PWD                   string
	InsertFile            string
	LogColor              string
	Dest                  string
	HomeDir               string
	OutTestData           string
	Limit                 int
	MaxParallelism        int
	Args                  []string
	Tags                  map[string]struct{}
	ExcludedTags          map[string]struct{}
	DisableLazyInstall    bool
	OnlyLink              bool
	All                   bool
	Insert                bool
	SelectVersion         bool
	ShowVersion           bool
	ProgressBar           bool
	Deep                  bool
	SkipLink              bool
	Pin                   bool
	Prune                 bool
	RequireChecksum       bool
	DisablePolicy         bool
	Detail                bool
	OnlyPackage           bool
	OnlyRegistry          bool
	CosignDisabled        bool
	SLSADisabled          bool
	PolicyConfigFilePaths []string
	Commands              []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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