Documentation ¶
Index ¶
- Variables
- type CAInfo
- type CertifierServer
- func (srv *CertifierServer) AddCertificate(ctx context.Context, req *certprotos.AddCertRequest) (*protos.Void, error)
- func (srv *CertifierServer) CollectGarbage(ctx context.Context, void *protos.Void) (*protos.Void, error)
- func (srv *CertifierServer) CollectGarbageImpl(ctx context.Context) (int, error)
- func (srv *CertifierServer) FindCertificates(ctx context.Context, id *protos.Identity) (*certprotos.SerialNumbers, error)
- func (srv *CertifierServer) GetAll(context.Context, *protos.Void) (*certprotos.CertificateInfoMap, error)
- func (srv *CertifierServer) GetCA(ctx context.Context, getCAReqMsg *certprotos.GetCARequest) (*protos.CACert, error)
- func (srv *CertifierServer) GetIdentity(ctx context.Context, snMsg *protos.Certificate_SN) (*certprotos.CertificateInfo, error)
- func (srv *CertifierServer) ListCertificates(ctx context.Context, void *protos.Void) (*certprotos.SerialNumbers, error)
- func (srv *CertifierServer) RevokeCertificate(ctx context.Context, snMsg *protos.Certificate_SN) (*protos.Void, error)
- func (srv *CertifierServer) SignAddCertificate(ctx context.Context, csrMsg *protos.CSR) (*protos.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NumTrialsForSn int CollectGarbageAfter time.Duration // remove cert if expired for certain amount of time )
Functions ¶
This section is empty.
Types ¶
type CAInfo ¶
type CAInfo struct { Cert *x509.Certificate PrivKey interface{} }
type CertifierServer ¶
type CertifierServer struct { CAs map[protos.CertType]*CAInfo // contains filtered or unexported fields }
func NewCertifierServer ¶
func NewCertifierServer(store storage.CertifierStorage, CAs map[protos.CertType]*CAInfo) (srv *CertifierServer, err error)
func (*CertifierServer) AddCertificate ¶
func (srv *CertifierServer) AddCertificate(ctx context.Context, req *certprotos.AddCertRequest) (*protos.Void, error)
func (*CertifierServer) CollectGarbage ¶
func (*CertifierServer) CollectGarbageImpl ¶
func (srv *CertifierServer) CollectGarbageImpl(ctx context.Context) (int, error)
func (*CertifierServer) FindCertificates ¶
func (srv *CertifierServer) FindCertificates(ctx context.Context, id *protos.Identity) (*certprotos.SerialNumbers, error)
Finds & returns Serial Numbers of all Certificates associated with the given Identity
func (*CertifierServer) GetAll ¶
func (srv *CertifierServer) GetAll(context.Context, *protos.Void) (*certprotos.CertificateInfoMap, error)
GetAll returns all Certificates Records
func (*CertifierServer) GetCA ¶
func (srv *CertifierServer) GetCA(ctx context.Context, getCAReqMsg *certprotos.GetCARequest) (*protos.CACert, error)
func (*CertifierServer) GetIdentity ¶
func (srv *CertifierServer) GetIdentity( ctx context.Context, snMsg *protos.Certificate_SN) (*certprotos.CertificateInfo, error)
func (*CertifierServer) ListCertificates ¶
func (srv *CertifierServer) ListCertificates(ctx context.Context, void *protos.Void) (*certprotos.SerialNumbers, error)
Returns serial numbers of all certificates in the table
func (*CertifierServer) RevokeCertificate ¶
func (srv *CertifierServer) RevokeCertificate( ctx context.Context, snMsg *protos.Certificate_SN) (*protos.Void, error)
func (*CertifierServer) SignAddCertificate ¶
func (srv *CertifierServer) SignAddCertificate(ctx context.Context, csrMsg *protos.CSR) (*protos.Certificate, error)
Click to show internal directories.
Click to hide internal directories.