Documentation
¶
Index ¶
Constants ¶
View Source
const AdoptAPI = "https://api.adoptopenjdk.net/v3"
Variables ¶
View Source
var ( ErrInvalidVersionString = errors.New("invalid java version string. must consist of at most 3 parts separated by dashes") ErrInvalidFeatureVersion = errors.New("invalid feature version. must be a number between 1 and 65535") ErrInvalidImageType = errors.New("invalid image type. must be either jdk, jre, testimage or debugimage") ErrInvalidJvmImplementation = errors.New("invalid jvm implementation. must be hotspot or openj9") )
Functions ¶
This section is empty.
Types ¶
type AdoptAsset ¶
type AdoptAsset struct {
Binaries []struct {
Architecture string `json:"architecture"`
DownloadCount int `json:"download_count"`
HeapSize string `json:"heap_size"`
ImageType string `json:"image_type"`
JvmImpl string `json:"jvm_impl"`
Os string `json:"os"`
Package struct {
Checksum string `json:"checksum"`
ChecksumLink string `json:"checksum_link"`
DownloadCount int `json:"download_count"`
Link string `json:"link"`
MetadataLink string `json:"metadata_link"`
Name string `json:"name"`
Size int `json:"size"`
} `json:"package"`
Project string `json:"project"`
ScmRef string `json:"scm_ref"`
UpdatedAt time.Time `json:"updated_at"`
} `json:"binaries"`
DownloadCount int `json:"download_count"`
ID string `json:"id"`
ReleaseLink string `json:"release_link"`
ReleaseName string `json:"release_name"`
ReleaseType string `json:"release_type"`
Timestamp time.Time `json:"timestamp"`
UpdatedAt time.Time `json:"updated_at"`
Vendor string `json:"vendor"`
VersionData struct {
Build int `json:"build"`
Major int `json:"major"`
Minor int `json:"minor"`
OpenjdkVersion string `json:"openjdk_version"`
Security int `json:"security"`
Semver string `json:"semver"`
} `json:"version_data"`
}
type AdoptAssetRequest ¶
type AdoptAssetRequest struct {
// contains filtered or unexported fields
}
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (*Factory) SetHTTPClient ¶
SetHTTPClient replaces the default http client with the given one
type Java ¶
type Java struct {
// contains filtered or unexported fields
}
func (*Java) NeedsDownloading ¶
Click to show internal directories.
Click to hide internal directories.