@@ -979,3 +979,48 @@ func (c *client) SocketPath() string {
979
979
func (c * client ) IsStatsSocket () bool {
980
980
return ! c .runtime .masterWorkerMode
981
981
}
982
+
983
+ func (c * client ) NewCertEntry (filename string ) error {
984
+ if ! c .runtime .IsValid () {
985
+ return errors .New ("no valid runtime found" )
986
+ }
987
+ if err := c .runtime .NewCertEntry (filename ); err != nil {
988
+ return fmt .Errorf ("%s %w" , c .runtime .socketPath , err )
989
+ }
990
+
991
+ return nil
992
+ }
993
+
994
+ func (c * client ) SetCertEntry (filename string , payload string ) error {
995
+ if ! c .runtime .IsValid () {
996
+ return errors .New ("no valid runtime found" )
997
+ }
998
+ if err := c .runtime .SetCertEntry (filename , payload ); err != nil {
999
+ return fmt .Errorf ("%s %w" , c .runtime .socketPath , err )
1000
+ }
1001
+
1002
+ return nil
1003
+ }
1004
+
1005
+ func (c * client ) CommitCertEntry (filename string ) error {
1006
+ if ! c .runtime .IsValid () {
1007
+ return errors .New ("no valid runtime found" )
1008
+ }
1009
+ if err := c .runtime .CommitCertEntry (filename ); err != nil {
1010
+ return fmt .Errorf ("%s %w" , c .runtime .socketPath , err )
1011
+ }
1012
+
1013
+ return nil
1014
+ }
1015
+
1016
+ func (c * client ) AddCrtListEntry (crtList string , entry CrtListEntry ) error {
1017
+ if ! c .runtime .IsValid () {
1018
+ return errors .New ("no valid runtime found" )
1019
+ }
1020
+
1021
+ if err := c .runtime .AddCrtListEntry (crtList , entry ); err != nil {
1022
+ return fmt .Errorf ("%s %w" , c .runtime .socketPath , err )
1023
+ }
1024
+
1025
+ return nil
1026
+ }
0 commit comments