Documentation ¶
Index ¶
- Constants
- type Certificate
- type CertificateFilter
- type CertificateManager
- func (pm *CertificateManager) CreateCertificate(ctx context.Context, param *CertificateParam) (err error)
- func (pm *CertificateManager) DeleteCertificate(ctx context.Context, certificate *Certificate) (err error)
- func (pm *CertificateManager) ExportServerCert(ctx context.Context, lastVersion string) (*ServerCertConf, error)
- func (pm *CertificateManager) FetchCertificates(ctx context.Context, param *CertificateFilter) (list []*Certificate, err error)
- func (pm *CertificateManager) UpdateAsDefaultCertificate(ctx context.Context, cert *Certificate) (err error)
- type CertificateParam
- type CertificateStorager
- type ServerCertConf
Constants ¶
View Source
const (
ConfigTopicServerCert = "certificate"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type CertificateFilter ¶
type CertificateManager ¶
type CertificateManager struct {
// contains filtered or unexported fields
}
func NewCertificateManager ¶
func NewCertificateManager(txn itxn.TxnStorager, storager CertificateStorager, versionControlManager *iversion_control.VersionControlManager, extraFileStorager ibasic.ExtraFileStorager) *CertificateManager
func (*CertificateManager) CreateCertificate ¶
func (pm *CertificateManager) CreateCertificate(ctx context.Context, param *CertificateParam) (err error)
func (*CertificateManager) DeleteCertificate ¶
func (pm *CertificateManager) DeleteCertificate(ctx context.Context, certificate *Certificate) (err error)
func (*CertificateManager) ExportServerCert ¶
func (pm *CertificateManager) ExportServerCert(ctx context.Context, lastVersion string) (*ServerCertConf, error)
func (*CertificateManager) FetchCertificates ¶
func (pm *CertificateManager) FetchCertificates(ctx context.Context, param *CertificateFilter) (list []*Certificate, err error)
func (*CertificateManager) UpdateAsDefaultCertificate ¶
func (pm *CertificateManager) UpdateAsDefaultCertificate(ctx context.Context, cert *Certificate) (err error)
type CertificateParam ¶
type CertificateStorager ¶
type CertificateStorager interface { FetchCertificates(context.Context, *CertificateFilter) ([]*Certificate, error) DeleteCertificate(context.Context, *Certificate) error CreateCertificate(context.Context, *CertificateParam) error UpdateCertificate(context.Context, *Certificate, *CertificateParam) error }
type ServerCertConf ¶
type ServerCertConf struct {
server_cert_conf.BfeServerCertConf
}
func (*ServerCertConf) UpdateVersion ¶
func (scc *ServerCertConf) UpdateVersion(version string) error
Click to show internal directories.
Click to hide internal directories.