github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+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  }