Documentation ¶
Index ¶
- func HTTPToContext(logger log.Logger) httptransport.RequestFunc
- func MakeHTTPHandler(service estService.Service, verify utils.Utils, logger log.Logger, ...) http.Handler
- func NewEstService(lamassuCaClient *lamassuca.LamassuCaClient, verifyUtils *utils.Utils, ...) lamassuest.Service
- type EstService
- func (s *EstService) CACerts(ctx context.Context, aps string, r *http.Request) ([]*x509.Certificate, error)
- func (s *EstService) Enroll(ctx context.Context, csr *x509.CertificateRequest, aps string, ...) (*x509.Certificate, error)
- func (s *EstService) Health(ctx context.Context) bool
- func (s *EstService) Reenroll(ctx context.Context, cert *x509.Certificate, csr *x509.CertificateRequest, ...) (*x509.Certificate, error)
- func (s *EstService) ServerKeyGen(ctx context.Context, csr *x509.CertificateRequest, aps string, r *http.Request) (*x509.Certificate, []byte, error)
- type EstServiceI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPToContext ¶
func HTTPToContext(logger log.Logger) httptransport.RequestFunc
func MakeHTTPHandler ¶
func NewEstService ¶
func NewEstService(lamassuCaClient *lamassuca.LamassuCaClient, verifyUtils *utils.Utils, devicesDb devicesStore.DB, minReenrollDays int, logger log.Logger) lamassuest.Service
Types ¶
type EstService ¶
type EstService struct {
// contains filtered or unexported fields
}
func (*EstService) CACerts ¶
func (s *EstService) CACerts(ctx context.Context, aps string, r *http.Request) ([]*x509.Certificate, error)
func (*EstService) Enroll ¶
func (s *EstService) Enroll(ctx context.Context, csr *x509.CertificateRequest, aps string, cert *x509.Certificate, r *http.Request) (*x509.Certificate, error)
func (*EstService) Reenroll ¶
func (s *EstService) Reenroll(ctx context.Context, cert *x509.Certificate, csr *x509.CertificateRequest, aps string, r *http.Request) (*x509.Certificate, error)
func (*EstService) ServerKeyGen ¶
func (s *EstService) ServerKeyGen(ctx context.Context, csr *x509.CertificateRequest, aps string, r *http.Request) (*x509.Certificate, []byte, error)
type EstServiceI ¶
type EstServiceI interface { Health(ctx context.Context) bool CACerts(ctx context.Context, aps string, r *http.Request) ([]*x509.Certificate, error) Enroll(ctx context.Context, csr *x509.CertificateRequest, aps string, cert *x509.Certificate, r *http.Request) (*x509.Certificate, error) Reenroll(ctx context.Context, cert *x509.Certificate, csr *x509.CertificateRequest, aps string, r *http.Request) (*x509.Certificate, error) ServerKeyGen(ctx context.Context, csr *x509.CertificateRequest, aps string, r *http.Request) (*x509.Certificate, []byte, error) }
Click to show internal directories.
Click to hide internal directories.