Documentation
¶
Index ¶
- Variables
- type CARepo
- type CAUseCase
- func (ca *CAUseCase) GetCRL(ctx context.Context, common string) (string, error)
- func (ca *CAUseCase) GetCert(ctx context.Context, common string) (string, error)
- func (ca *CAUseCase) GetCertBySerial(ctx context.Context, serial string) (string, error)
- func (ca *CAUseCase) GetParentCert(ctx context.Context, common string) (string, error)
- func (ca *CAUseCase) GetPrivateKey(ctx context.Context, common string) (string, error)
- func (ca *CAUseCase) GetRootCert(ctx context.Context, common string) (string, error)
- func (ca *CAUseCase) SaveCRL(ctx context.Context, common, crl string) error
- func (ca *CAUseCase) SaveCert(ctx context.Context, serial, cert string) error
- func (ca *CAUseCase) SaveParentKey(ctx context.Context, common, privateKey string) error
- func (ca *CAUseCase) SavePrivateKey(ctx context.Context, common, privateKey string) error
- func (ca *CAUseCase) SaveRootCert(ctx context.Context, common, cert string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewCAUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type CARepo ¶
type CARepo interface { GetCert(context.Context, string) (string, error) GetCertBySerial(context.Context, string) (string, error) GetParentCert(context.Context, string) (string, error) GetPrivateKey(context.Context, string) (string, error) SavePrivateKey(context.Context, string, string) error SaveCert(context.Context, string, string) error SaveParentKey(context.Context, string, string) error // for CRL GetCRL(context.Context, string) (string, error) SaveCRL(context.Context, string, string) error // root ca GetRootCert(context.Context, string) (string, error) SaveRootCert(context.Context, string, string) error }
type CAUseCase ¶
type CAUseCase struct {
// contains filtered or unexported fields
}
func (*CAUseCase) GetCertBySerial ¶
func (*CAUseCase) GetParentCert ¶
func (*CAUseCase) GetPrivateKey ¶
func (*CAUseCase) GetRootCert ¶
func (*CAUseCase) SaveParentKey ¶
func (*CAUseCase) SavePrivateKey ¶
Click to show internal directories.
Click to hide internal directories.