public interface ExternalBinarySource
| Modifier and Type | Method and Description |
|---|---|
String |
getFileNameRegexToDownload(String version)
This method should returns a regex that represents a file name of the release asset that should be downloaded.
|
default String |
getFileNameRegexToDownload(String version,
Architecture architecture) |
ExternalBinary |
getLatestRelease()
Retrieves information about the latest release of binary and returns an instance of
ExternalBinary that
represents the latest release. |
ExternalBinary |
getReleaseForVersion(String version)
Retrieves information about a binary release with the desired version and returns an instance of
ExternalBinary that represents the found release. |
default ExternalBinary |
getReleaseForVersion(String version,
Architecture architecture) |
ExternalBinary getLatestRelease() throws Exception
ExternalBinary that
represents the latest release.ExternalBinary that contains information about the latest release of the binary.Exception - If anything bad happensExternalBinary getReleaseForVersion(String version) throws Exception
ExternalBinary that represents the found release.version - A version of a binary release that should be retrieved.ExternalBinary that contains information about a binary release with the desired
version.Exceptiondefault ExternalBinary getReleaseForVersion(String version, Architecture architecture) throws Exception
ExceptionString getFileNameRegexToDownload(String version)
default String getFileNameRegexToDownload(String version, Architecture architecture)
Copyright © 2021 JBoss by Red Hat. All rights reserved.