Documentation
¶
Index ¶
- func FindBestMatchJDK(jdks []discovery.JDK, selector string) (discovery.JDK, error)
- func Ls(managedOnly bool) ([]discovery.JDK, error)
- func LsBestMatch(selector string, managedOnly bool) (string, error)
- func NewAliasCommand() *cobra.Command
- func NewConfigCommand() *cobra.Command
- func NewCurrentCommand() *cobra.Command
- func NewDeactivateCommand() *cobra.Command
- func NewDefaultCommand() *cobra.Command
- func NewDiscoverCommand() *cobra.Command
- func NewInitCommand() *cobra.Command
- func NewInstallCommand(client PackagesWithInfoClient) *cobra.Command
- func NewLinkCommand() *cobra.Command
- func NewLsCommand() *cobra.Command
- func NewLsDistributionsCommand(client DistributionsClient) *cobra.Command
- func NewLsRemoteCommand(client PackagesClient) *cobra.Command
- func NewUnaliasCommand() *cobra.Command
- func NewUninstallCommand() *cobra.Command
- func NewUnlinkCommand() *cobra.Command
- func NewUseCommand() *cobra.Command
- func NewWhichCommand() *cobra.Command
- func SetDefaultVersion(selector string) error
- func Use(selector string) ([]string, error)
- func Which(selector string, home bool) (string, error)
- type DistributionsClient
- type PackagesClient
- type PackagesWithInfoClient
- type RedirectTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindBestMatchJDK ¶ added in v0.11.0
func NewAliasCommand ¶ added in v0.12.0
func NewConfigCommand ¶ added in v0.10.0
func NewCurrentCommand ¶ added in v0.12.0
func NewDeactivateCommand ¶ added in v0.12.0
func NewDefaultCommand ¶ added in v0.3.0
NewDefaultCommand creates the `javm default` CLI command.
func NewDiscoverCommand ¶
func NewInitCommand ¶
func NewInstallCommand ¶
func NewInstallCommand(client PackagesWithInfoClient) *cobra.Command
func NewLinkCommand ¶ added in v0.12.0
func NewLsCommand ¶ added in v0.3.0
func NewLsDistributionsCommand ¶
func NewLsDistributionsCommand(client DistributionsClient) *cobra.Command
func NewLsRemoteCommand ¶
func NewLsRemoteCommand(client PackagesClient) *cobra.Command
func NewUnaliasCommand ¶ added in v0.12.0
func NewUninstallCommand ¶ added in v0.12.0
func NewUnlinkCommand ¶ added in v0.12.0
func NewUseCommand ¶ added in v0.12.0
func NewWhichCommand ¶ added in v0.3.0
func SetDefaultVersion ¶ added in v0.3.0
SetDefaultVersion writes the provided selector to the default-version file in the javm configuration directory. It creates the directory if needed.
Types ¶
type DistributionsClient ¶
type DistributionsClient interface {
GetDistributions() ([]discoapi.Distribution, error)
}
type PackagesClient ¶
type PackagesWithInfoClient ¶
type RedirectTracer ¶
type RedirectTracer struct {
Transport http.RoundTripper
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.