tools

package
v2.30.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvmanToolName  = "envman"
	StepmanToolName = "stepman"
)

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(downloadURL, targetDirPath string) error

func EnvmanAddEnvs

func EnvmanAddEnvs(envstorePth string, envsList []envmanModels.EnvironmentItemModel) error

func EnvmanClear

func EnvmanClear(envStorePth string) error

func EnvmanInit

func EnvmanInit(envStorePth string, clear bool) error

func EnvmanReadEnvList

func EnvmanReadEnvList(envStorePth string) (envmanModels.EnvsJSONListModel, error)

func ExpandEnvItems

func ExpandEnvItems(toExpand []models.EnvironmentItemModel, externalEnvs []string) (map[string]string, error)

ExpandEnvItems ...

func GetSecretKeysAndValues

func GetSecretKeysAndValues(secrets []envmanModels.EnvironmentItemModel) ([]string, []string)

GetSecretKeysAndValues filters out built in configuration parameters from the secret envs

func InstallFromURL

func InstallFromURL(toolBinName, downloadURL string) error

func InstallToolFromGitHub

func InstallToolFromGitHub(toolName, githubUser, toolVersion string) error

func IsBuiltInFlagTypeKey

func IsBuiltInFlagTypeKey(env string) bool

IsBuiltInFlagTypeKey returns true if the env key is a built-in flag type env key

func LimitEnvVarValue added in v2.30.5

func LimitEnvVarValue(value string, limitInBytes int) (string, bool)

func MoveFile

func MoveFile(oldpath, newpath string) error

func StepmanSetup

func StepmanSetup(collection string) error

func StepmanShare

func StepmanShare() error

func StepmanShareAudit

func StepmanShareAudit() error

func StepmanShareCreate

func StepmanShareCreate(tag, git, stepID string) error

func StepmanShareFinish

func StepmanShareFinish() error

func StepmanShareStart

func StepmanShareStart(collection string) error

func StepmanStepInfo

func StepmanStepInfo(collection, stepID, stepVersion string) (stepmanModels.StepInfoModel, error)

func UnameGOARCH

func UnameGOARCH() (string, error)

func UnameGOOS

func UnameGOOS() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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