Skip to content

Commit

Permalink
Re-export NewFor as before
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Oct 15, 2024
1 parent 751a5ff commit 524fec2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/porter/porter.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewWith(opt Options) (*Porter, error) {
}

storage := storage.NewPluginAdapter(storageplugin.NewStore(opt.Config))
return newFor(opt.Config, storage, opt.SecretStorage, opt.Signer), nil
return NewFor(opt.Config, storage, opt.SecretStorage, opt.Signer), nil
}

// New porter client, initialized with useful defaults.
Expand All @@ -100,10 +100,10 @@ func New() *Porter {
signer := signing.NewPluginAdapter(signingplugin.NewSigner(c))

storage := storage.NewPluginAdapter(storageplugin.NewStore(c))
return newFor(c, storage, secretStorage, signer)
return NewFor(c, storage, secretStorage, signer)
}

func newFor(
func NewFor(
c *config.Config,
store storage.Store,
secretStorage secrets.Store,
Expand Down

0 comments on commit 524fec2

Please sign in to comment.