github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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 }