mirror of
https://github.com/telanflow/mps.git
synced 2025-12-24 11:30:55 +08:00
14 lines
256 B
Go
14 lines
256 B
Go
package cert
|
|
|
|
import "crypto/tls"
|
|
|
|
// certificate storage Container
|
|
type Container interface {
|
|
|
|
// Get the certificate for host
|
|
Get(host string) (*tls.Certificate, error)
|
|
|
|
// Set the certificate for host
|
|
Set(host string, cert *tls.Certificate) error
|
|
}
|