signature/docker.go
func SignDockerManifest(m []byte, dockerReference string, mech SigningMechanism, keyIdentity string) ([]byte, error) {
	manifestDigest, err := manifest.Digest(m)
	if err != nil {
		return nil, err
	}
	sig := newUntrustedSignature(manifestDigest, dockerReference)
	return sig.sign(mech, keyIdentity)
}
func SignDockerManifest(m []byte, dockerReference string, mech SigningMechanism, keyIdentity string) ([]byte, error) {
	manifestDigest, err := manifest.Digest(m)
	if err != nil {
		return nil, err
	}
	sig := newUntrustedSignature(manifestDigest, dockerReference)
	return sig.sign(mech, keyIdentity)
}
func SignDockerManifest ( m [ ] byte , dockerReference string , mech SigningMechanism , keyIdentity string ) ( [ ] byte , error ) { manifestDigest , err := manifest . Digest ( m ) if err != nil { return nil , err } sig := newUntrustedSignature ( manifestDigest , dockerReference ) return sig . sign ( mech , keyIdentity ) }
// SignDockerManifest returns a signature for manifest as the specified dockerReference,
// using mech and keyIdentity.
SignDockerManifest returns a signature for manifest as the specified dockerReference using mech and keyIdentity .