@@ -28,7 +28,7 @@ type ClientOverwrites struct {
2828 GetPublicKeys func (ctx context.Context , ids ... client.PublicKeyId ) ([]client.PublicKey , error )
2929 ListPublicKeys func (ctx context.Context , tagMatcher string ) ([]client.PublicKey , error )
3030 ListPublicKeysLinkedToAccount func (ctx context.Context , accountId client.AccountId , expired bool ) ([]client.PublicKey , error )
31- UpdatePublicKey func (ctx context.Context , id client.PublicKeyId , comment string , tags tags.Tags ) error
31+ UpdatePublicKey func (ctx context.Context , id client.PublicKeyId , comment string , tags tags.Tags ) (client. PublicKey , error )
3232 DeletePublicKeys func (ctx context.Context , ids ... client.PublicKeyId ) error
3333
3434 // --- Account Management ---
@@ -38,7 +38,7 @@ type ClientOverwrites struct {
3838 ListAccounts func (ctx context.Context ) ([]client.Account , error )
3939 ListAccountsDirty func (ctx context.Context ) ([]client.Account , error )
4040 ListAccountsLinkedToPublicKey func (ctx context.Context , publicKeyId client.PublicKeyId , expired bool ) ([]client.Account , error )
41- UpdateAccount func (ctx context.Context , id client.AccountId , username string , host string , port int , deploymentMethod string , deploymentSecret string ) error
41+ UpdateAccount func (ctx context.Context , id client.AccountId , username string , host string , port int , deploymentMethod string , deploymentSecret string ) (client. Account , error )
4242 DeleteAccounts func (ctx context.Context , ids ... client.AccountId ) error
4343 IsAccountDirty func (ctx context.Context , account client.Account ) (bool , error )
4444
@@ -48,7 +48,7 @@ type ClientOverwrites struct {
4848 GetLinks func (ctx context.Context , ids ... client.LinkId ) ([]client.Link , error )
4949 ListLinksForAccount func (ctx context.Context , accountId client.AccountId , expired bool ) ([]client.Link , error )
5050 ListLinksForPublicKey func (ctx context.Context , publicKeyId client.PublicKeyId , expired bool ) ([]client.Link , error )
51- UpdateLink func (ctx context.Context , id client.LinkId , accountId client.AccountId , tagMatcher string , expiresAt time.Time ) error
51+ UpdateLink func (ctx context.Context , id client.LinkId , accountId client.AccountId , tagMatcher string , expiresAt time.Time ) (client. Link , error )
5252 DeleteLinks func (ctx context.Context , ids ... client.LinkId ) error
5353
5454 // --- Deploy & Verify ---
@@ -215,11 +215,11 @@ func (m *Client) ListPublicKeysLinkedToAccount(ctx context.Context, accountId cl
215215 panic ("Client.ListPublicKeysLinkedToAccount not implemented" )
216216}
217217
218- func (m * Client ) UpdatePublicKey (ctx context.Context , id client.PublicKeyId , comment string , tags tags.Tags ) error {
218+ func (m * Client ) UpdatePublicKey (ctx context.Context , id client.PublicKeyId , comment string , tags tags.Tags ) (client. PublicKey , error ) {
219219 if m .Pre != nil {
220220 err := m .Pre ("UpdatePublicKey" , map [string ]any {"ctx" : ctx , "id" : id , "comment" : comment , "tags" : tags })
221221 if err != nil {
222- return err
222+ return client. PublicKey {}, err
223223 }
224224 }
225225 if m .Overwrites .UpdatePublicKey != nil {
@@ -340,14 +340,14 @@ func (m *Client) ListAccountsLinkedToPublicKey(ctx context.Context, publicKeyId
340340 panic ("Client.ListAccountsLinkedToPublicKey not implemented" )
341341}
342342
343- func (m * Client ) UpdateAccount (ctx context.Context , id client.AccountId , username string , host string , port int , deploymentMethod string , deploymentSecret string ) error {
343+ func (m * Client ) UpdateAccount (ctx context.Context , id client.AccountId , username string , host string , port int , deploymentMethod string , deploymentSecret string ) (client. Account , error ) {
344344 if m .Pre != nil {
345345 err := m .Pre ("UpdateAccount" , map [string ]any {
346346 "ctx" : ctx , "id" : id , "username" : username , "host" : host , "port" : port ,
347347 "deploymentMethod" : deploymentMethod , "deploymentSecret" : deploymentSecret ,
348348 })
349349 if err != nil {
350- return err
350+ return client. Account {}, err
351351 }
352352 }
353353 if m .Overwrites .UpdateAccount != nil {
@@ -465,11 +465,11 @@ func (m *Client) ListLinksForPublicKey(ctx context.Context, publicKeyId client.P
465465 panic ("Client.ListLinksForPublicKey not implemented" )
466466}
467467
468- func (m * Client ) UpdateLink (ctx context.Context , id client.LinkId , accountId client.AccountId , tagMatcher string , expiresAt time.Time ) error {
468+ func (m * Client ) UpdateLink (ctx context.Context , id client.LinkId , accountId client.AccountId , tagMatcher string , expiresAt time.Time ) (client. Link , error ) {
469469 if m .Pre != nil {
470470 err := m .Pre ("UpdateLink" , map [string ]any {"ctx" : ctx , "id" : id , "accountId" : accountId , "tagMatcher" : tagMatcher , "expiresAt" : expiresAt })
471471 if err != nil {
472- return err
472+ return client. Link {}, err
473473 }
474474 }
475475 if m .Overwrites .UpdateLink != nil {
0 commit comments