-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOISSUE - Add delete certs feature #46
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,9 @@ type Service interface { | |
|
||
// GetChainCA retrieves the chain of CA i.e. root and intermediate cert concat together. | ||
GetChainCA(ctx context.Context, token string) (Certificate, error) | ||
|
||
// RemoveCerts deletes a certs for a provided entityID. | ||
RemoveCerts(ctx context.Context, entityId string) error | ||
} | ||
|
||
type Repository interface { | ||
|
@@ -90,4 +93,7 @@ type Repository interface { | |
|
||
// ListRevokedCerts retrieves revoked lists from database. | ||
ListRevokedCerts(ctx context.Context) ([]Certificate, error) | ||
|
||
// RemoveCerts deletes certs from database. | ||
RemoveCerts(ctx context.Context, entityId string) error | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use singular There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also |
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
certID
or justid
.