From b464f0752258a0d8f833e2a2d8546edb9e603451 Mon Sep 17 00:00:00 2001 From: anshul sharma Date: Mon, 28 Jul 2025 10:55:28 +0530 Subject: [PATCH] description to the methods --- packer/plugin-getter/plugins.go | 3 +++ 1 file changed, 3 insertions(+) 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 }