diff --git a/packer/plugin-getter/plugins.go b/packer/plugin-getter/plugins.go index fba2fa2de..c1fe0a6f8 100644 --- a/packer/plugin-getter/plugins.go +++ b/packer/plugin-getter/plugins.go @@ -602,10 +602,13 @@ type Getter interface { // verified then copied to the correct plugin location. Get(what string, opts GetOptions) (io.ReadCloser, error) + // Init this method parses the checksum file and initializes the entry Init(req *Requirement, entry *ChecksumFileEntry) error + // Validate checks if OS, ARCH, and protocol version matches with the system and local version Validate(opt GetOptions, expectedVersion string, installOpts BinaryInstallationOptions, entry *ChecksumFileEntry) error + // ExpectedFileName returns the expected file name for the binary, which needs to be installed ExpectedFileName(pr *Requirement, version string, entry *ChecksumFileEntry, zipFileName string) string }