config

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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"
	PkgInfoTypeGoBuild       = "go_build"
	PkgInfoTypeCargo         = "cargo"
)

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

type FileNotFoundError struct {
	Err error
}

func (*FileNotFoundError) Error

func (errorFileNotFound *FileNotFoundError) Error() string

func (*FileNotFoundError) Unwrap

func (errorFileNotFound *FileNotFoundError) Unwrap() error

type Package

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

func ListPackages

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

func ListPackagesNotOverride

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

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) GetExePath

func (cpkg *Package) GetExePath(rootDir string, 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) RenderTemplateString

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

func (*Package) RenderURL

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

type Param

type Param struct {
	GlobalConfigFilePaths []string
	ConfigFilePath        string
	LogLevel              string
	File                  string
	KHULNASOFTVersion     string
	KhulnasoftCommitHash  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{}
	DisableLazyInstall    bool
	OnlyLink              bool
	All                   bool
	Insert                bool
	SelectVersion         bool
	ProgressBar           bool
	Deep                  bool
	SkipLink              bool
	Pin                   bool
	Prune                 bool
	RequireChecksum       bool
	DisablePolicy         bool
	Detail                bool
	PolicyConfigFilePaths []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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