Documentation
¶
Index ¶
- type Spec
- type Temurin
- func (t *Temurin) Changelog(from, to string) *result.Changelogs
- func (t *Temurin) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
- func (t *Temurin) ReportConfig() interface{}
- func (t *Temurin) Source(workingDir string, resultSource *result.Source) error
- func (t *Temurin) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct { // ReleaseLine specifies the line of Temurin release to retrieve. // // default: "lts" // // Allowed values: // * "lts" // * "feature" ReleaseLine string `yaml:",omitempty"` // ReleaseType specifies the type of Temurin release to retrieve. // // default: "ga" // // Allowed values: // * "ga" (General Availability) // * "ea" (Early Availability, e.g. nightly builds) ReleaseType string `yaml:",omitempty"` // FeatureVersion specifies the Major Java version to filter the Temurin release to retrieve. // // default: undefined // // Allowed values: integer number (8, 11, 17, 21, etc.) FeatureVersion int `yaml:",omitempty"` // Result specifies the type of value returned by the retrieved Temurin release. // // default: "version" // // Allowed values: // * "version" (Version Name, e.g. the Temurin SCM release name) // * "installer_url" (HTTP URL to the binary release/installer) // * "checksum_url" (HTTP URL to the checksum file) // * "signature_url" (HTTP URL to the signature file) Result string `yaml:",omitempty"` // Architecture specifies the CPU architecture (as defined by the Temurin API - https://api.adoptium.net/q/swagger-ui/#/Types) // to filter the Temurin release to retrieve. // // default: "x64" // // Allowed values: // * "x64" (Intel/AMD 64 Bits) // * "x86" (Intel/AMD 32 Bits) // * "ppc64" (PowerPC 64 Bits) // * "ppc64le" (PowerPC Little Endian 64 Bits) // * "s390x" (IBM Z) // * "aarch64" (ARM 64 Bits) // * "arm" (ARM 32 Bits) // * "sparcv9" (Sparc 64 Bits) // * "riscv64" (RiscV 64 Bits) Architecture string `yaml:",omitempty"` // ImageType specifies the type of artifact to filter the Temurin release to retrieve. // // default: "jdk" // // Allowed values: // * "jdk" // * "jre" // * "testimage" // * "debugimage" // * "staticlibs" // * "source // * "sbom" ImageType string `yaml:",omitempty"` // OperatingSystem specifies the Operating System (as defined by the Temurin API - https://api.adoptium.net/q/swagger-ui/#/Types) // to filter the Temurin release to retrieve. // // default: "linux" // // Allowed values: // * "linux" // * "windows" // * "mac" // * "solaris" // * "aix" // * "alpine-linux" OperatingSystem string `yaml:",omitempty"` // SpecificVersion specifies the exact Temurin version to filter the Temurin release to retrieve. // Ignores FeatureVersion when used. // // default: undefined // // Allowed values: string (can be a semantic version, a JDK version or a Temurin release name) SpecificVersion string `yaml:",omitempty"` // Project specifies the project to filter the Temurin release to retrieve. // // default: "jdk" // // Allowed values: // * "jdk" (default) // * "valhalla" // * "metropolis" // * "jfr" // * "shenandoah" Project string `yaml:",omitempty"` // Platforms is only valid within conditions. It specifies a collection of platforms as a filter for Temurin releases. // Each platform must be a combination of an Operating System and a CPU architecture separated by the slash (`/`) character. // // default: empty list (e.g. no filtering per platform). // // Allowed values: Any combination of Operating System and Architecture as defined by the Temurin API (https://api.adoptium.net/q/swagger-ui/#/Types): // * `linux/x64` // * `linux/aarch64` // * `linux/s390x` // * `alpine-linux/x64` // * `windows/x64` // ... Platforms []string `yaml:",omitempty"` }
type Temurin ¶
type Temurin struct {
// contains filtered or unexported fields
}
Http defines a resource of type "temurin"
func New ¶
* New returns a reference to a newly initialized Temurin resource or an error if the provided Spec triggers a validation error. *
func (*Temurin) Changelog ¶
func (t *Temurin) Changelog(from, to string) *result.Changelogs
Changelog returns the changelog for this resource, or an empty string if not supported
func (*Temurin) Condition ¶
func (t *Temurin) Condition(source string, scm scm.ScmHandler) (pass bool, message string, err error)
Condition tests if the response of the specified HTTP request meets assertion. If no assertion is specified, it only checks for successful HTTP response code (HTTP/1xx, HTTP/2xx or HTTP/3xx).
func (*Temurin) ReportConfig ¶ added in v0.99.0
func (t *Temurin) ReportConfig() interface{}
ReportConfig returns a new configuration object with only the necessary fields to identify the resource without any sensitive information or context specific data.
Click to show internal directories.
Click to hide internal directories.