mirror of https://github.com/docker/docs.git
fix go lint
Signed-off-by: Jessica Frazelle <acidburn@docker.com> Signed-off-by: David Lawrence <david.lawrence@docker.com> Signed-off-by: Jessica Frazelle <acidburn@docker.com> (github: endophage)
This commit is contained in:
parent
5f21ebd185
commit
8902c8c0e9
|
|
@ -25,6 +25,7 @@ type KeyStoreManager struct {
|
||||||
|
|
||||||
const (
|
const (
|
||||||
trustDir = "trusted_certificates"
|
trustDir = "trusted_certificates"
|
||||||
|
// PrivDir is the name of the private directory
|
||||||
PrivDir = "private"
|
PrivDir = "private"
|
||||||
rsaRootKeySize = 4096 // Used for new root keys
|
rsaRootKeySize = 4096 // Used for new root keys
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -486,18 +486,22 @@ func (k UnknownPrivateKey) Sign(rand io.Reader, msg []byte, opts crypto.SignerOp
|
||||||
return nil, errors.New("Unknown key type, cannot sign.")
|
return nil, errors.New("Unknown key type, cannot sign.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignatureAlgorithm returns the SigAlgorithm for a ECDSAPrivateKey
|
||||||
func (k ECDSAPrivateKey) SignatureAlgorithm() SigAlgorithm {
|
func (k ECDSAPrivateKey) SignatureAlgorithm() SigAlgorithm {
|
||||||
return ECDSASignature
|
return ECDSASignature
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignatureAlgorithm returns the SigAlgorithm for a RSAPrivateKey
|
||||||
func (k RSAPrivateKey) SignatureAlgorithm() SigAlgorithm {
|
func (k RSAPrivateKey) SignatureAlgorithm() SigAlgorithm {
|
||||||
return RSAPSSSignature
|
return RSAPSSSignature
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignatureAlgorithm returns the SigAlgorithm for a ED25519PrivateKey
|
||||||
func (k ED25519PrivateKey) SignatureAlgorithm() SigAlgorithm {
|
func (k ED25519PrivateKey) SignatureAlgorithm() SigAlgorithm {
|
||||||
return EDDSASignature
|
return EDDSASignature
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignatureAlgorithm returns the SigAlgorithm for an UnknownPrivateKey
|
||||||
func (k UnknownPrivateKey) SignatureAlgorithm() SigAlgorithm {
|
func (k UnknownPrivateKey) SignatureAlgorithm() SigAlgorithm {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue