Documentation
¶
Overview ¶
Package plugins provides plugins for universal-asdf-plugin.
Index ¶
- func EnsureGoToolchainEntries(ctx context.Context) error
- func InstallGoToolchain(ctx context.Context) error
- func InstallNodeToolchain(ctx context.Context) error
- func NewArgoCDPlugin() asdf.Plugin
- func NewArgoPlugin() asdf.Plugin
- func NewArgoRolloutsPlugin() asdf.Plugin
- func NewAsdfPlugin() asdf.Plugin
- func NewAwsNukePlugin() asdf.Plugin
- func NewAwsSsoCliPlugin() asdf.Plugin
- func NewAwscliPlugin() asdf.Plugin
- func NewBufPlugin() asdf.Plugin
- func NewCheckovPlugin() asdf.Plugin
- func NewCmakePlugin() asdf.Plugin
- func NewCosignPlugin() asdf.Plugin
- func NewDoctlPlugin() asdf.Plugin
- func NewGcloudPlugin() asdf.Plugin
- func NewGinkgoPlugin() asdf.Plugin
- func NewGithubCliPlugin() asdf.Plugin
- func NewGitleaksPlugin() asdf.Plugin
- func NewGitsignPlugin() asdf.Plugin
- func NewGolangPlugin() asdf.Plugin
- func NewGolangciLintPlugin() asdf.Plugin
- func NewGoreleaserPlugin() asdf.Plugin
- func NewGrypePlugin() asdf.Plugin
- func NewHelmPlugin() asdf.Plugin
- func NewJqPlugin() asdf.Plugin
- func NewK9sPlugin() asdf.Plugin
- func NewKindPlugin() asdf.Plugin
- func NewKoPlugin() asdf.Plugin
- func NewKubectlPlugin() asdf.Plugin
- func NewLazygitPlugin() asdf.Plugin
- func NewLinkerdPlugin() asdf.Plugin
- func NewNerdctlPlugin() asdf.Plugin
- func NewNodejsPlugin() asdf.Plugin
- func NewOpentofuPlugin() asdf.Plugin
- func NewPipxPlugin() asdf.Plugin
- func NewProtocGenGoGrpcPlugin() asdf.Plugin
- func NewProtocGenGoPlugin() asdf.Plugin
- func NewProtocGenGrpcWebPlugin() asdf.Plugin
- func NewProtocPlugin() asdf.Plugin
- func NewProtolintPlugin() asdf.Plugin
- func NewPythonPlugin() asdf.Plugin
- func NewRustPlugin() asdf.Plugin
- func NewSccachePlugin() asdf.Plugin
- func NewShellcheckPlugin() asdf.Plugin
- func NewShfmtPlugin() asdf.Plugin
- func NewSopsPlugin() asdf.Plugin
- func NewSqlcPlugin() asdf.Plugin
- func NewSyftPlugin() asdf.Plugin
- func NewTektonCliPlugin() asdf.Plugin
- func NewTelepresencePlugin() asdf.Plugin
- func NewTerraformPlugin() asdf.Plugin
- func NewTerragruntPlugin() asdf.Plugin
- func NewTerrascanPlugin() asdf.Plugin
- func NewTflintPlugin() asdf.Plugin
- func NewTfupdatePlugin() asdf.Plugin
- func NewTraefikPlugin() asdf.Plugin
- func NewTrivyPlugin() asdf.Plugin
- func NewUpxPlugin() asdf.Plugin
- func NewUvPlugin() asdf.Plugin
- func NewVeleroPlugin() asdf.Plugin
- func NewVultrCliPlugin() asdf.Plugin
- func NewYqPlugin() asdf.Plugin
- func NewZigPlugin() asdf.Plugin
- type ArgoPlugin
- func (*ArgoPlugin) Dependencies() []string
- func (*ArgoPlugin) Download(_ context.Context, _, _ string) error
- func (*ArgoPlugin) ExecEnv(_ string) map[string]string
- func (plugin *ArgoPlugin) Help() asdf.PluginHelp
- func (plugin *ArgoPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *ArgoPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *ArgoPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*ArgoPlugin) ListBinPaths() string
- func (*ArgoPlugin) ListLegacyFilenames() []string
- func (*ArgoPlugin) Name() string
- func (*ArgoPlugin) ParseLegacyFile(path string) (string, error)
- func (*ArgoPlugin) Uninstall(_ context.Context, installPath string) error
- type AsdfPlugin
- func (*AsdfPlugin) GetDataDir() string
- func (plugin *AsdfPlugin) GetPluginsDir() string
- func (*AsdfPlugin) GetShellConfigInstructions(shell string) string
- func (plugin *AsdfPlugin) GetShimsDir() string
- func (*AsdfPlugin) Help() asdf.PluginHelp
- func (plugin *AsdfPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *AsdfPlugin) IsAsdfInPath() bool
- func (plugin *AsdfPlugin) IsAsdfInstalled() bool
- type AwscliPlugin
- func (plugin *AwscliPlugin) Download(ctx context.Context, version, downloadPath string) error
- func (*AwscliPlugin) ExecEnv(_ string) map[string]string
- func (*AwscliPlugin) Help() asdf.PluginHelp
- func (plugin *AwscliPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *AwscliPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *AwscliPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*AwscliPlugin) ListBinPaths() string
- func (*AwscliPlugin) ListLegacyFilenames() []string
- func (*AwscliPlugin) Name() string
- func (*AwscliPlugin) ParseLegacyFile(path string) (string, error)
- func (*AwscliPlugin) Uninstall(_ context.Context, installPath string) error
- type GcloudPlugin
- func (*GcloudPlugin) Dependencies() []string
- func (plugin *GcloudPlugin) Download(ctx context.Context, version, downloadPath string) error
- func (*GcloudPlugin) ExecEnv(installPath string) map[string]string
- func (*GcloudPlugin) Help() asdf.PluginHelp
- func (plugin *GcloudPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *GcloudPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *GcloudPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*GcloudPlugin) ListBinPaths() string
- func (*GcloudPlugin) ListLegacyFilenames() []string
- func (*GcloudPlugin) Name() string
- func (*GcloudPlugin) ParseLegacyFile(path string) (string, error)
- func (*GcloudPlugin) Uninstall(_ context.Context, installPath string) error
- type GinkgoPlugin
- func (*GinkgoPlugin) Dependencies() []string
- func (*GinkgoPlugin) Download(_ context.Context, _, _ string) error
- func (*GinkgoPlugin) ExecEnv(_ string) map[string]string
- func (plugin *GinkgoPlugin) Help() asdf.PluginHelp
- func (plugin *GinkgoPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *GinkgoPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *GinkgoPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*GinkgoPlugin) ListBinPaths() string
- func (*GinkgoPlugin) ListLegacyFilenames() []string
- func (*GinkgoPlugin) Name() string
- func (*GinkgoPlugin) ParseLegacyFile(path string) (string, error)
- func (*GinkgoPlugin) Uninstall(_ context.Context, installPath string) error
- type GolangPlugin
- func (*GolangPlugin) Download(ctx context.Context, version, downloadPath string) error
- func (*GolangPlugin) ExecEnv(installPath string) map[string]string
- func (*GolangPlugin) Help() asdf.PluginHelp
- func (plugin *GolangPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (p *GolangPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (p *GolangPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*GolangPlugin) ListBinPaths() string
- func (*GolangPlugin) ListLegacyFilenames() []string
- func (*GolangPlugin) Name() string
- func (*GolangPlugin) ParseLegacyFile(path string) (string, error)
- func (*GolangPlugin) Uninstall(_ context.Context, installPath string) error
- type NodeVersion
- type NodejsPlugin
- func (plugin *NodejsPlugin) Download(ctx context.Context, version, downloadPath string) error
- func (*NodejsPlugin) ExecEnv(_ string) map[string]string
- func (plugin *NodejsPlugin) GetLTSCodenames(ctx context.Context) (map[string]string, error)
- func (*NodejsPlugin) Help() asdf.PluginHelp
- func (plugin *NodejsPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *NodejsPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *NodejsPlugin) ListAll(ctx context.Context) ([]string, error)
- func (plugin *NodejsPlugin) ListAllFromGitHub(ctx context.Context) ([]string, error)
- func (*NodejsPlugin) ListBinPaths() string
- func (*NodejsPlugin) ListLegacyFilenames() []string
- func (*NodejsPlugin) Name() string
- func (*NodejsPlugin) ParseLegacyFile(path string) (string, error)
- func (plugin *NodejsPlugin) ResolveVersion(ctx context.Context, version string) (string, error)
- func (*NodejsPlugin) Uninstall(_ context.Context, installPath string) error
- type PipxPlugin
- func (*PipxPlugin) Dependencies() []string
- func (*PipxPlugin) Download(ctx context.Context, version, downloadPath string) error
- func (*PipxPlugin) ExecEnv(_ string) map[string]string
- func (*PipxPlugin) Help() asdf.PluginHelp
- func (p *PipxPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *PipxPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *PipxPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*PipxPlugin) ListBinPaths() string
- func (*PipxPlugin) ListLegacyFilenames() []string
- func (*PipxPlugin) Name() string
- func (*PipxPlugin) ParseLegacyFile(path string) (string, error)
- func (*PipxPlugin) Uninstall(_ context.Context, installPath string) error
- type PythonPlugin
- func (plugin *PythonPlugin) Download(ctx context.Context, _, _ string) error
- func (*PythonPlugin) ExecEnv(_ string) map[string]string
- func (*PythonPlugin) Help() asdf.PluginHelp
- func (plugin *PythonPlugin) Install(ctx context.Context, version, _, installPath string) error
- func (*PythonPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *PythonPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*PythonPlugin) ListBinPaths() string
- func (*PythonPlugin) ListLegacyFilenames() []string
- func (*PythonPlugin) Name() string
- func (*PythonPlugin) ParseLegacyFile(path string) (string, error)
- func (*PythonPlugin) Uninstall(_ context.Context, installPath string) error
- type RustPlugin
- func (*RustPlugin) Download(ctx context.Context, version, downloadPath string) error
- func (*RustPlugin) ExecEnv(installPath string) map[string]string
- func (*RustPlugin) Help() asdf.PluginHelp
- func (p *RustPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *RustPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *RustPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*RustPlugin) ListBinPaths() string
- func (plugin *RustPlugin) ListLegacyFilenames() []string
- func (*RustPlugin) Name() string
- func (*RustPlugin) ParseLegacyFile(path string) (string, error)
- func (plugin *RustPlugin) Uninstall(ctx context.Context, installPath string) error
- type ZigPlugin
- func (plugin *ZigPlugin) Download(ctx context.Context, version, downloadPath string) error
- func (*ZigPlugin) ExecEnv(_ string) map[string]string
- func (*ZigPlugin) Help() asdf.PluginHelp
- func (plugin *ZigPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
- func (plugin *ZigPlugin) LatestStable(ctx context.Context, query string) (string, error)
- func (plugin *ZigPlugin) ListAll(ctx context.Context) ([]string, error)
- func (*ZigPlugin) ListBinPaths() string
- func (*ZigPlugin) ListLegacyFilenames() []string
- func (*ZigPlugin) Name() string
- func (*ZigPlugin) ParseLegacyFile(path string) (string, error)
- func (*ZigPlugin) Uninstall(_ context.Context, installPath string) error
- type ZigRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureGoToolchainEntries ¶
EnsureGoToolchainEntries ensures that a golang entry exists in .tool-versions. It resolves the version from the project's .tool-versions file and ensures the entry is present, installing it if asdf is available.
func InstallGoToolchain ¶
InstallGoToolchain installs the Go toolchain into an asdf-style tree under ASDF_DATA_DIR (or $HOME/.asdf if unset) using the Go plugin implementation.
func InstallNodeToolchain ¶
InstallNodeToolchain installs the Node.js toolchain into an asdf-style tree under ASDF_DATA_DIR (or $HOME/.asdf if unset) using the Node.js plugin implementation.
func NewArgoCDPlugin ¶
NewArgoCDPlugin creates a new ArgoCD plugin instance.
func NewArgoPlugin ¶
NewArgoPlugin creates a new Argo plugin instance.
func NewArgoRolloutsPlugin ¶
NewArgoRolloutsPlugin creates a new Argo Rollouts plugin instance.
func NewAsdfPlugin ¶
NewAsdfPlugin creates a new asdf plugin instance.
func NewAwsNukePlugin ¶
NewAwsNukePlugin creates a new aws-nuke plugin instance.
func NewAwsSsoCliPlugin ¶
NewAwsSsoCliPlugin creates a new aws-sso-cli plugin instance.
func NewAwscliPlugin ¶
NewAwscliPlugin creates a new AWS CLI plugin instance.
func NewCheckovPlugin ¶
NewCheckovPlugin creates a new checkov plugin instance.
func NewCmakePlugin ¶
NewCmakePlugin creates a new cmake plugin instance.
func NewCosignPlugin ¶
NewCosignPlugin creates a new Cosign plugin instance.
func NewDoctlPlugin ¶
NewDoctlPlugin creates a new doctl plugin instance.
func NewGcloudPlugin ¶
NewGcloudPlugin creates a new gcloud plugin instance.
func NewGinkgoPlugin ¶
NewGinkgoPlugin creates a new Ginkgo plugin instance.
func NewGithubCliPlugin ¶
NewGithubCliPlugin creates a new github-cli plugin instance.
func NewGitleaksPlugin ¶
NewGitleaksPlugin creates a new Gitleaks plugin instance.
func NewGitsignPlugin ¶
NewGitsignPlugin creates a new gitsign plugin instance.
func NewGolangPlugin ¶
NewGolangPlugin creates a new Go plugin instance.
func NewGolangciLintPlugin ¶
NewGolangciLintPlugin creates a new golangci-lint plugin instance.
func NewGoreleaserPlugin ¶
NewGoreleaserPlugin creates a new goreleaser plugin instance.
func NewGrypePlugin ¶
NewGrypePlugin creates a new Grype plugin instance.
func NewHelmPlugin ¶
NewHelmPlugin creates a new Helm plugin instance.
func NewKindPlugin ¶
NewKindPlugin creates a new kind plugin instance.
func NewKubectlPlugin ¶
NewKubectlPlugin creates a new kubectl plugin instance.
func NewLazygitPlugin ¶
NewLazygitPlugin creates a new Lazygit plugin instance.
func NewLinkerdPlugin ¶
NewLinkerdPlugin creates a new linkerd plugin instance.
func NewNerdctlPlugin ¶
NewNerdctlPlugin creates a new nerdctl plugin instance.
func NewNodejsPlugin ¶
NewNodejsPlugin creates a new Node.js plugin instance.
func NewOpentofuPlugin ¶
NewOpentofuPlugin creates a new opentofu plugin instance.
func NewPipxPlugin ¶
NewPipxPlugin creates a new pipx plugin instance.
func NewProtocGenGoGrpcPlugin ¶
NewProtocGenGoGrpcPlugin creates a new protoc-gen-go-grpc plugin instance.
func NewProtocGenGoPlugin ¶
NewProtocGenGoPlugin creates a new protoc-gen-go plugin instance.
func NewProtocGenGrpcWebPlugin ¶
NewProtocGenGrpcWebPlugin creates a new protoc-gen-grpc-web plugin instance.
func NewProtocPlugin ¶
NewProtocPlugin creates a new protoc plugin instance.
func NewProtolintPlugin ¶
NewProtolintPlugin creates a new protolint plugin instance.
func NewPythonPlugin ¶
NewPythonPlugin creates a new Python plugin instance.
func NewRustPlugin ¶
NewRustPlugin creates a new Rust plugin instance.
func NewSccachePlugin ¶
NewSccachePlugin creates a new sccache plugin instance.
func NewShellcheckPlugin ¶
NewShellcheckPlugin creates a new shellcheck plugin instance.
func NewShfmtPlugin ¶
NewShfmtPlugin creates a new shfmt plugin instance.
func NewSopsPlugin ¶
NewSopsPlugin creates a new sops plugin instance.
func NewSqlcPlugin ¶
NewSqlcPlugin creates a new sqlc plugin instance.
func NewSyftPlugin ¶
NewSyftPlugin creates a new Syft plugin instance.
func NewTektonCliPlugin ¶
NewTektonCliPlugin creates a new Tekton CLI plugin instance.
func NewTelepresencePlugin ¶
NewTelepresencePlugin creates a new Telepresence plugin instance.
func NewTerraformPlugin ¶
NewTerraformPlugin creates a new terraform plugin instance.
func NewTerragruntPlugin ¶
NewTerragruntPlugin creates a new terragrunt plugin instance.
func NewTerrascanPlugin ¶
NewTerrascanPlugin creates a new terrascan plugin instance.
func NewTflintPlugin ¶
NewTflintPlugin creates a new tflint plugin instance.
func NewTfupdatePlugin ¶
NewTfupdatePlugin creates a new tfupdate plugin instance.
func NewTraefikPlugin ¶
NewTraefikPlugin creates a new Traefik plugin instance.
func NewTrivyPlugin ¶
NewTrivyPlugin creates a new Trivy plugin instance.
func NewVeleroPlugin ¶
NewVeleroPlugin creates a new Velero plugin instance.
func NewVultrCliPlugin ¶
NewVultrCliPlugin creates a new VultrCli plugin instance.
Types ¶
type ArgoPlugin ¶
type ArgoPlugin struct {
*asdf.SourceBuildPlugin
}
ArgoPlugin implements the asdf.Plugin interface for Argo Workflows.
func (*ArgoPlugin) Dependencies ¶ added in v1.3.0
func (*ArgoPlugin) Dependencies() []string
Dependencies returns the list of plugins that must be installed before Argo.
func (*ArgoPlugin) Download ¶
func (*ArgoPlugin) Download(_ context.Context, _, _ string) error
Download is a no-op for Argo since installation downloads the source archive directly.
func (*ArgoPlugin) ExecEnv ¶
func (*ArgoPlugin) ExecEnv(_ string) map[string]string
ExecEnv returns environment variables for Argo execution.
func (*ArgoPlugin) Help ¶
func (plugin *ArgoPlugin) Help() asdf.PluginHelp
Help returns help information for the Argo plugin.
func (*ArgoPlugin) Install ¶
func (plugin *ArgoPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install method downloads the Argo Workflows source archive for the requested version and builds the argo CLI using go build.
func (*ArgoPlugin) LatestStable ¶
LatestStable returns the latest stable Argo version.
func (*ArgoPlugin) ListAll ¶
func (plugin *ArgoPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll lists all available Argo versions from GitHub tags.
func (*ArgoPlugin) ListBinPaths ¶
func (*ArgoPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for Argo installations.
func (*ArgoPlugin) ListLegacyFilenames ¶
func (*ArgoPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for Argo.
func (*ArgoPlugin) ParseLegacyFile ¶
func (*ArgoPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy version file.
type AsdfPlugin ¶
type AsdfPlugin struct {
*asdf.BinaryPlugin
}
AsdfPlugin implements asdf plugin functionality for asdf itself.
func (*AsdfPlugin) GetDataDir ¶
func (*AsdfPlugin) GetDataDir() string
GetDataDir returns the asdf data directory.
func (*AsdfPlugin) GetPluginsDir ¶
func (plugin *AsdfPlugin) GetPluginsDir() string
GetPluginsDir returns the asdf plugins directory.
func (*AsdfPlugin) GetShellConfigInstructions ¶
func (*AsdfPlugin) GetShellConfigInstructions(shell string) string
GetShellConfigInstructions returns shell-specific configuration instructions.
func (*AsdfPlugin) GetShimsDir ¶
func (plugin *AsdfPlugin) GetShimsDir() string
GetShimsDir returns the asdf shims directory.
func (*AsdfPlugin) Help ¶
func (*AsdfPlugin) Help() asdf.PluginHelp
Help returns plugin help information with shell configuration instructions.
func (*AsdfPlugin) Install ¶
func (plugin *AsdfPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install installs asdf to the specified path and creates the shim.
func (*AsdfPlugin) IsAsdfInPath ¶
func (plugin *AsdfPlugin) IsAsdfInPath() bool
IsAsdfInPath checks if asdf is available in PATH.
func (*AsdfPlugin) IsAsdfInstalled ¶
func (plugin *AsdfPlugin) IsAsdfInstalled() bool
IsAsdfInstalled checks if asdf is installed in the data directory.
type AwscliPlugin ¶
type AwscliPlugin struct {
// contains filtered or unexported fields
}
AwscliPlugin implements the asdf.Plugin interface for AWS CLI.
func (*AwscliPlugin) Download ¶
func (plugin *AwscliPlugin) Download(ctx context.Context, version, downloadPath string) error
Download downloads the specified AWS CLI version.
func (*AwscliPlugin) ExecEnv ¶
func (*AwscliPlugin) ExecEnv(_ string) map[string]string
ExecEnv returns environment variables for AWS CLI execution.
func (*AwscliPlugin) Help ¶
func (*AwscliPlugin) Help() asdf.PluginHelp
Help returns help information for the AWS CLI plugin.
func (*AwscliPlugin) Install ¶
func (plugin *AwscliPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install installs AWS CLI from the downloaded files.
func (*AwscliPlugin) LatestStable ¶
LatestStable returns the latest stable AWS CLI version.
func (*AwscliPlugin) ListAll ¶
func (plugin *AwscliPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll lists all available AWS CLI versions.
func (*AwscliPlugin) ListBinPaths ¶
func (*AwscliPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for AWS CLI installations.
func (*AwscliPlugin) ListLegacyFilenames ¶
func (*AwscliPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for AWS CLI.
func (*AwscliPlugin) ParseLegacyFile ¶
func (*AwscliPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy AWS CLI version file.
type GcloudPlugin ¶
type GcloudPlugin struct {
// contains filtered or unexported fields
}
GcloudPlugin implements the asdf.Plugin interface for Google Cloud SDK.
func (*GcloudPlugin) Dependencies ¶ added in v1.3.0
func (*GcloudPlugin) Dependencies() []string
Dependencies returns the list of plugins that must be installed before gcloud.
func (*GcloudPlugin) Download ¶
func (plugin *GcloudPlugin) Download(ctx context.Context, version, downloadPath string) error
Download downloads the specified gcloud version.
func (*GcloudPlugin) ExecEnv ¶
func (*GcloudPlugin) ExecEnv(installPath string) map[string]string
ExecEnv returns environment variables for gcloud execution.
func (*GcloudPlugin) Help ¶
func (*GcloudPlugin) Help() asdf.PluginHelp
Help returns help information for the gcloud plugin.
func (*GcloudPlugin) Install ¶
func (plugin *GcloudPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install installs gcloud from the downloaded archive.
func (*GcloudPlugin) LatestStable ¶
LatestStable returns the latest stable gcloud version.
func (*GcloudPlugin) ListAll ¶
func (plugin *GcloudPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll lists all available gcloud versions.
func (*GcloudPlugin) ListBinPaths ¶
func (*GcloudPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for gcloud installations.
func (*GcloudPlugin) ListLegacyFilenames ¶
func (*GcloudPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for gcloud.
func (*GcloudPlugin) ParseLegacyFile ¶
func (*GcloudPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy gcloud version file.
type GinkgoPlugin ¶
type GinkgoPlugin struct {
*asdf.SourceBuildPlugin
}
GinkgoPlugin implements the asdf.Plugin interface for Ginkgo.
func (*GinkgoPlugin) Dependencies ¶ added in v1.3.0
func (*GinkgoPlugin) Dependencies() []string
Dependencies returns the list of plugins that must be installed before Ginkgo.
func (*GinkgoPlugin) Download ¶
func (*GinkgoPlugin) Download(_ context.Context, _, _ string) error
Download is a no-op for Ginkgo since installation downloads the source archive directly.
func (*GinkgoPlugin) ExecEnv ¶
func (*GinkgoPlugin) ExecEnv(_ string) map[string]string
ExecEnv returns environment variables for Ginkgo execution.
func (*GinkgoPlugin) Help ¶
func (plugin *GinkgoPlugin) Help() asdf.PluginHelp
Help returns help information for the Ginkgo plugin.
func (*GinkgoPlugin) Install ¶
func (plugin *GinkgoPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install downloads the Ginkgo source archive and builds the ginkgo CLI using go build.
func (*GinkgoPlugin) LatestStable ¶
LatestStable returns the latest stable Ginkgo version.
func (*GinkgoPlugin) ListAll ¶
func (plugin *GinkgoPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll lists all available Ginkgo versions from GitHub tags.
func (*GinkgoPlugin) ListBinPaths ¶
func (*GinkgoPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for Ginkgo installations.
func (*GinkgoPlugin) ListLegacyFilenames ¶
func (*GinkgoPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for Ginkgo.
func (*GinkgoPlugin) ParseLegacyFile ¶
func (*GinkgoPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy version file.
type GolangPlugin ¶
GolangPlugin implements the asdf.Plugin interface for Go.
func (*GolangPlugin) Download ¶
func (*GolangPlugin) Download(ctx context.Context, version, downloadPath string) error
Download downloads the specified Go version.
func (*GolangPlugin) ExecEnv ¶
func (*GolangPlugin) ExecEnv(installPath string) map[string]string
ExecEnv returns environment variables for Go execution. Only sets variables if not already set by user.
func (*GolangPlugin) Help ¶
func (*GolangPlugin) Help() asdf.PluginHelp
Help returns help information for the Go plugin.
func (*GolangPlugin) Install ¶
func (plugin *GolangPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install installs Go from the downloaded archive.
func (*GolangPlugin) LatestStable ¶
LatestStable returns the latest stable Go version.
func (*GolangPlugin) ListAll ¶
func (p *GolangPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll returns all available Go versions using the GitHub API.
func (*GolangPlugin) ListBinPaths ¶
func (*GolangPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for Go installations.
func (*GolangPlugin) ListLegacyFilenames ¶
func (*GolangPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for Go.
func (*GolangPlugin) ParseLegacyFile ¶
func (*GolangPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy Go version file. Supports .go-version, go.mod, and go.work files.
type NodeVersion ¶
type NodeVersion struct {
Version string `json:"version"`
LTS any `json:"lts"`
Date string `json:"date"`
}
NodeVersion represents a Node.js version from the API.
type NodejsPlugin ¶
type NodejsPlugin struct {
// contains filtered or unexported fields
}
NodejsPlugin implements the asdf.Plugin interface for Node.js.
func (*NodejsPlugin) Download ¶
func (plugin *NodejsPlugin) Download(ctx context.Context, version, downloadPath string) error
Download downloads the specified Node.js version.
func (*NodejsPlugin) ExecEnv ¶
func (*NodejsPlugin) ExecEnv(_ string) map[string]string
ExecEnv returns environment variables for Node.js execution.
func (*NodejsPlugin) GetLTSCodenames ¶
GetLTSCodenames returns all available LTS codenames.
func (*NodejsPlugin) Help ¶
func (*NodejsPlugin) Help() asdf.PluginHelp
Help returns help information for the Node.js plugin.
func (*NodejsPlugin) Install ¶
func (plugin *NodejsPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install installs Node.js from the downloaded archive.
func (*NodejsPlugin) LatestStable ¶
LatestStable returns the latest stable Node.js version.
func (*NodejsPlugin) ListAll ¶
func (plugin *NodejsPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll returns all available Node.js versions.
func (*NodejsPlugin) ListAllFromGitHub ¶
func (plugin *NodejsPlugin) ListAllFromGitHub(ctx context.Context) ([]string, error)
ListAllFromGitHub returns all available Node.js versions from GitHub releases.
func (*NodejsPlugin) ListBinPaths ¶
func (*NodejsPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for Node.js installations.
func (*NodejsPlugin) ListLegacyFilenames ¶
func (*NodejsPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for Node.js.
func (*NodejsPlugin) ParseLegacyFile ¶
func (*NodejsPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy Node.js version file.
func (*NodejsPlugin) ResolveVersion ¶
ResolveVersion resolves a version alias (like "lts") to an actual version.
type PipxPlugin ¶
type PipxPlugin struct {
*asdf.SourceBuildPlugin
}
PipxPlugin implements the asdf.Plugin interface for pipx.
func (*PipxPlugin) Dependencies ¶ added in v1.3.0
func (*PipxPlugin) Dependencies() []string
Dependencies returns the list of plugins that must be installed before pipx.
func (*PipxPlugin) Download ¶
func (*PipxPlugin) Download(ctx context.Context, version, downloadPath string) error
Download downloads the specified pipx version.
func (*PipxPlugin) ExecEnv ¶
func (*PipxPlugin) ExecEnv(_ string) map[string]string
ExecEnv returns environment variables for pipx execution.
func (*PipxPlugin) Help ¶
func (*PipxPlugin) Help() asdf.PluginHelp
Help returns help information for the pipx plugin.
func (*PipxPlugin) Install ¶
func (p *PipxPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
Install installs pipx from the downloaded .pyz file.
func (*PipxPlugin) LatestStable ¶
LatestStable returns the latest stable pipx version.
func (*PipxPlugin) ListAll ¶
func (plugin *PipxPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll lists all available pipx versions.
func (*PipxPlugin) ListBinPaths ¶
func (*PipxPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for pipx installations.
func (*PipxPlugin) ListLegacyFilenames ¶
func (*PipxPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for pipx.
func (*PipxPlugin) ParseLegacyFile ¶
func (*PipxPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy pipx version file.
type PythonPlugin ¶
type PythonPlugin struct {
*asdf.SourceBuildPlugin
// contains filtered or unexported fields
}
PythonPlugin implements the asdf.Plugin interface for Python.
func (*PythonPlugin) Download ¶
func (plugin *PythonPlugin) Download(ctx context.Context, _, _ string) error
Download ensures python-build tooling is installed.
func (*PythonPlugin) ExecEnv ¶
func (*PythonPlugin) ExecEnv(_ string) map[string]string
ExecEnv returns environment variables for Python execution.
func (*PythonPlugin) Help ¶
func (*PythonPlugin) Help() asdf.PluginHelp
Help returns help information for the Python plugin.
func (*PythonPlugin) Install ¶
func (plugin *PythonPlugin) Install(ctx context.Context, version, _, installPath string) error
Install installs the specified Python version using python-build.
func (*PythonPlugin) LatestStable ¶
LatestStable returns the latest stable Python version.
func (*PythonPlugin) ListAll ¶
func (plugin *PythonPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll returns all available Python versions using python-build definitions.
func (*PythonPlugin) ListBinPaths ¶
func (*PythonPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for Python installations.
func (*PythonPlugin) ListLegacyFilenames ¶
func (*PythonPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for Python.
func (*PythonPlugin) ParseLegacyFile ¶
func (*PythonPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy Python version file.
type RustPlugin ¶
type RustPlugin struct {
*asdf.SourceBuildPlugin
}
RustPlugin implements the asdf.Plugin interface for Rust.
func (*RustPlugin) Download ¶
func (*RustPlugin) Download(ctx context.Context, version, downloadPath string) error
Download downloads rustup installer.
func (*RustPlugin) ExecEnv ¶
func (*RustPlugin) ExecEnv(installPath string) map[string]string
ExecEnv returns environment variables for Rust execution.
func (*RustPlugin) Help ¶
func (*RustPlugin) Help() asdf.PluginHelp
Help returns help information for the Rust plugin.
func (*RustPlugin) Install ¶
func (p *RustPlugin) Install(ctx context.Context, version, downloadPath, installPath string) error
Install installs Rust using rustup via SourceBuildPlugin.
func (*RustPlugin) LatestStable ¶
LatestStable returns the latest stable Rust version.
func (*RustPlugin) ListAll ¶
func (plugin *RustPlugin) ListAll(ctx context.Context) ([]string, error)
ListAll lists all available Rust versions.
func (*RustPlugin) ListBinPaths ¶
func (*RustPlugin) ListBinPaths() string
ListBinPaths returns the binary paths for Rust installations.
func (*RustPlugin) ListLegacyFilenames ¶
func (plugin *RustPlugin) ListLegacyFilenames() []string
ListLegacyFilenames returns legacy version filenames for Rust.
func (*RustPlugin) ParseLegacyFile ¶
func (*RustPlugin) ParseLegacyFile(path string) (string, error)
ParseLegacyFile parses a legacy Rust version file.
type ZigPlugin ¶
type ZigPlugin struct {
*asdf.SourceBuildPlugin
ZigIndexURL string
}
ZigPlugin implements the asdf.Plugin interface for Zig.
func (*ZigPlugin) Help ¶
func (*ZigPlugin) Help() asdf.PluginHelp
Help returns help information for the Zig plugin.
func (*ZigPlugin) Install ¶
func (plugin *ZigPlugin) Install( ctx context.Context, version, downloadPath, installPath string, ) error
Install installs Zig from the downloaded tarball.
func (*ZigPlugin) LatestStable ¶
LatestStable returns the latest stable Zig version.
func (*ZigPlugin) ListBinPaths ¶
ListBinPaths returns the binary paths for Zig installations.
func (*ZigPlugin) ListLegacyFilenames ¶
ListLegacyFilenames returns legacy version filenames for Zig.
func (*ZigPlugin) ParseLegacyFile ¶
ParseLegacyFile parses a legacy version file.
type ZigRelease ¶
type ZigRelease struct {
Tarball string `json:"tarball"`
Shasum string `json:"shasum"`
Size string `json:"size"`
}
ZigRelease represents a single platform release.
Source Files
¶
- argo.go
- argo_rollouts.go
- argocd.go
- asdf.go
- aws_nuke.go
- aws_sso_cli.go
- awscli.go
- buf.go
- checkov.go
- cmake.go
- cosign.go
- doc.go
- doctl.go
- gcloud.go
- ginkgo.go
- github_cli.go
- gitleaks.go
- gitsign.go
- golang.go
- golangci_lint.go
- goreleaser.go
- grype.go
- helm.go
- jq.go
- k9s.go
- kind.go
- ko.go
- kubectl.go
- lazygit.go
- linkerd.go
- nerdctl.go
- nodejs.go
- opentofu.go
- pipx.go
- protoc.go
- protoc_gen_go.go
- protoc_gen_go_grpc.go
- protoc_gen_grpc_web.go
- protolint.go
- python.go
- rust.go
- sccache.go
- shellcheck.go
- shfmt.go
- sops.go
- sqlc.go
- syft.go
- tekton_cli.go
- telepresence.go
- terraform.go
- terragrunt.go
- terrascan.go
- tflint.go
- tfupdate.go
- traefik.go
- trivy.go
- upx.go
- uv.go
- velero.go
- vultr_cli.go
- yq.go
- zig.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package asdf implements the ASDF plugin interface and common shared functionality.
|
Package asdf implements the ASDF plugin interface and common shared functionality. |
|
plugins
Package plugins provides a registry for asdf plugins.
|
Package plugins provides a registry for asdf plugins. |
|
Package github provides a GitHub API client for fetching version information.
|
Package github provides a GitHub API client for fetching version information. |
|
mock
Package mock provides mock servers for testing the GitHub client.
|
Package mock provides mock servers for testing the GitHub client. |