azure-container-networking/server/tls/tls_certificate_retriever.go

16 строки
341 B
Go

// Copyright 2020 Microsoft. All rights reserved.
package tls
import (
"crypto"
"crypto/x509"
)
// TlsCertificateRetriever is the interface used by
// both windows and linux and cert from file retriever.
type TlsCertificateRetriever interface {
GetCertificate() (*x509.Certificate, error)
GetPrivateKey() (crypto.PrivateKey, error)
}