@@ -51,12 +51,16 @@ type ClientOverwrites struct {
5151 UpdateLink func (ctx context.Context , id client.LinkId , accountId client.AccountId , tagMatcher string , expiresAt time.Time ) error
5252 DeleteLinks func (ctx context.Context , ids ... client.LinkId ) error
5353
54+ // --- Deploy & Verify ---
55+ DeployAccount func (ctx context.Context , accountId client.AccountId ) (chan client.DeployProgressAccount , error )
56+ DeployAccounts func (ctx context.Context , accountIds ... client.AccountId ) (chan client.DeployProgressAccounts , error )
57+ VerifyAccount func (ctx context.Context , accountId client.AccountId ) (chan client.VerifyProgressAccount , error )
58+ VerifyAccounts func (ctx context.Context , accountIds ... client.AccountId ) (chan client.VerifyProgressAccounts , error )
59+
5460 // --- Other ---
5561 ListExistingTags func (ctx context.Context ) tags.Tags
5662 OnboardHost func (ctx context.Context , host string , port int /* , gateway string, plugin string */ , accountUsername string , deploymentKey string ) (chan client.OnboardHostProgress , error )
5763 DecommisionAccount func (ctx context.Context , id client.AccountId ) (chan client.DecommisionAccountProgress , error )
58- DeployAccount func (ctx context.Context , accountId client.AccountId ) (chan client.DeployProgressAccount , error )
59- DeployAccounts func (ctx context.Context , accountIds ... client.AccountId ) (chan client.DeployProgressAccounts , error )
6064}
6165
6266// *[Client] implements [client.Client]
@@ -413,6 +417,56 @@ func (m *Client) DeleteLinks(ctx context.Context, ids ...client.LinkId) error {
413417 panic ("Client.DeleteLinks not implemented" )
414418}
415419
420+ // --- Deploy & Verify ---
421+
422+ func (m * Client ) DeployAccount (ctx context.Context , accountId client.AccountId ) (chan client.DeployProgressAccount , error ) {
423+ if m .Pre != nil {
424+ m .Pre ("DeployAccount" , map [string ]any {"ctx" : ctx , "accountId" : accountId })
425+ }
426+ if m .Overwrites .DeployAccount != nil {
427+ return m .Overwrites .DeployAccount (ctx , accountId )
428+ } else if m .BaseClient != nil {
429+ return m .BaseClient .DeployAccount (ctx , accountId )
430+ }
431+ panic ("Client.DeployAccount not implemented" )
432+ }
433+
434+ func (m * Client ) DeployAccounts (ctx context.Context , accountIds ... client.AccountId ) (chan client.DeployProgressAccounts , error ) {
435+ if m .Pre != nil {
436+ m .Pre ("DeployAccounts" , map [string ]any {"ctx" : ctx , "accountIds" : accountIds })
437+ }
438+ if m .Overwrites .DeployAccounts != nil {
439+ return m .Overwrites .DeployAccounts (ctx , accountIds ... )
440+ } else if m .BaseClient != nil {
441+ return m .BaseClient .DeployAccounts (ctx , accountIds ... )
442+ }
443+ panic ("Client.DeployAccounts not implemented" )
444+ }
445+
446+ func (m * Client ) VerifyAccount (ctx context.Context , accountId client.AccountId ) (chan client.DeployProgressAccount , error ) {
447+ if m .Pre != nil {
448+ m .Pre ("VerifyAccount" , map [string ]any {"ctx" : ctx , "accountId" : accountId })
449+ }
450+ if m .Overwrites .VerifyAccount != nil {
451+ return m .Overwrites .VerifyAccount (ctx , accountId )
452+ } else if m .BaseClient != nil {
453+ return m .BaseClient .VerifyAccount (ctx , accountId )
454+ }
455+ panic ("Client.VerifyAccount not implemented" )
456+ }
457+
458+ func (m * Client ) VerifyAccounts (ctx context.Context , accountIds ... client.AccountId ) (chan client.VerifyProgressAccounts , error ) {
459+ if m .Pre != nil {
460+ m .Pre ("VerifyAccounts" , map [string ]any {"ctx" : ctx , "accountIds" : accountIds })
461+ }
462+ if m .Overwrites .VerifyAccounts != nil {
463+ return m .Overwrites .VerifyAccounts (ctx , accountIds ... )
464+ } else if m .BaseClient != nil {
465+ return m .BaseClient .VerifyAccounts (ctx , accountIds ... )
466+ }
467+ panic ("Client.VerifyAccounts not implemented" )
468+ }
469+
416470// --- Other ---
417471
418472func (m * Client ) ListExistingTags (ctx context.Context ) tags.Tags {
@@ -450,27 +504,3 @@ func (m *Client) DecommisionAccount(ctx context.Context, id client.AccountId) (c
450504 }
451505 panic ("Client.DecommisionAccount not implemented" )
452506}
453-
454- func (m * Client ) DeployAccount (ctx context.Context , accountId client.AccountId ) (chan client.DeployProgressAccount , error ) {
455- if m .Pre != nil {
456- m .Pre ("DeployAccount" , map [string ]any {"ctx" : ctx , "accountId" : accountId })
457- }
458- if m .Overwrites .DeployAccount != nil {
459- return m .Overwrites .DeployAccount (ctx , accountId )
460- } else if m .BaseClient != nil {
461- return m .BaseClient .DeployAccount (ctx , accountId )
462- }
463- panic ("Client.DeployAccount not implemented" )
464- }
465-
466- func (m * Client ) DeployAccounts (ctx context.Context , accountIds ... client.AccountId ) (chan client.DeployProgressAccounts , error ) {
467- if m .Pre != nil {
468- m .Pre ("DeployAccounts" , map [string ]any {"ctx" : ctx , "accountIds" : accountIds })
469- }
470- if m .Overwrites .DeployAccounts != nil {
471- return m .Overwrites .DeployAccounts (ctx , accountIds ... )
472- } else if m .BaseClient != nil {
473- return m .BaseClient .DeployAccounts (ctx , accountIds ... )
474- }
475- panic ("Client.DeployAccounts not implemented" )
476- }
0 commit comments