github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/actor/pluginaction/checksum.go (about) 1 package pluginaction 2 3 import "code.cloudfoundry.org/cli/util/configv3" 4 5 func (actor Actor) ValidateFileChecksum(path string, checksum string) bool { 6 plugin := configv3.Plugin{Location: path} 7 return plugin.CalculateSHA1() == checksum 8 }