java

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 (j *Java) Install(ctx context.Context, version *core.RemoteVersion) error

func (*Java) ListInstalledVersions

func (j *Java) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)

func (*Java) ListRemoteVersions

func (j *Java) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)

func (*Java) Name

func (j *Java) Name() string

func (*Java) SetDefaultVersion

func (j *Java) SetDefaultVersion(ctx context.Context, version string) error

func (*Java) Uninstall

func (j *Java) Uninstall(ctx context.Context, version string) error

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

Jump to

Keyboard shortcuts

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