File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ type Cert interface {
140
140
NewCertEntry (filename string ) error
141
141
SetCertEntry (filename , payload string ) error
142
142
CommitCertEntry (filename string ) error
143
+ AbortCertEntry (filename string ) error
143
144
AddCrtListEntry (crtList string , entry CrtListEntry ) error
144
145
}
145
146
Original file line number Diff line number Diff line change @@ -1013,6 +1013,17 @@ func (c *client) CommitCertEntry(filename string) error {
1013
1013
return nil
1014
1014
}
1015
1015
1016
+ func (c * client ) AbortCertEntry (filename string ) error {
1017
+ if ! c .runtime .IsValid () {
1018
+ return errors .New ("no valid runtime found" )
1019
+ }
1020
+ if err := c .runtime .AbortCertEntry (filename ); err != nil {
1021
+ return fmt .Errorf ("%s %w" , c .runtime .socketPath , err )
1022
+ }
1023
+
1024
+ return nil
1025
+ }
1026
+
1016
1027
func (c * client ) AddCrtListEntry (crtList string , entry CrtListEntry ) error {
1017
1028
if ! c .runtime .IsValid () {
1018
1029
return errors .New ("no valid runtime found" )
You can’t perform that action at this time.
0 commit comments