Documentation
¶
Index ¶
- type Java
- func (j *Java) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
- func (j *Java) Install(ctx context.Context, version *core.RemoteVersion) error
- func (j *Java) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)
- func (j *Java) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)
- func (j *Java) Name() string
- func (j *Java) SetDefaultVersion(ctx context.Context, version string) error
- func (j *Java) Uninstall(ctx context.Context, version string) error
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Java ¶
type Java struct{}
func (*Java) GetDefaultVersion ¶
func (j *Java) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
func (*Java) Install ¶
func (*Java) ListInstalledVersions ¶
func (*Java) ListRemoteVersions ¶
func (*Java) SetDefaultVersion ¶
type Version ¶
type Version struct {
Abi string `json:"abi"`
Arch string `json:"arch"`
ArchiveType string `json:"archive_type"`
AvailabilityType string `json:"availability_type"`
Certifications []string `json:"certifications"`
CpuGen []interface{} `json:"cpu_gen"`
CracSupported bool `json:"crac_supported"`
DistroVersion []int `json:"distro_version"`
DownloadUrl string `json:"download_url"`
HwBitness int `json:"hw_bitness"`
JavaPackageFeatures []string `json:"java_package_features"`
JavaPackageType string `json:"java_package_type"`
JavaVersion []int `json:"java_version"`
JavafxBundled bool `json:"javafx_bundled"`
Latest bool `json:"latest"`
LibCType string `json:"lib_c_type"`
Name string `json:"name"`
OpenjdkBuildNumber int `json:"openjdk_build_number"`
Os string `json:"os"`
PackageUuid string `json:"package_uuid"`
Product string `json:"product"`
ReleaseStatus string `json:"release_status"`
Sha256Hash string `json:"sha256_hash"`
Size int `json:"size"`
SupportTerm string `json:"support_term"`
}
Source Files
¶
- java.go
Click to show internal directories.
Click to hide internal directories.