Skip to content

Commit 524fec2

Browse files
committed
Re-export NewFor as before
1 parent 751a5ff commit 524fec2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/porter/porter.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func NewWith(opt Options) (*Porter, error) {
8787
}
8888

8989
storage := storage.NewPluginAdapter(storageplugin.NewStore(opt.Config))
90-
return newFor(opt.Config, storage, opt.SecretStorage, opt.Signer), nil
90+
return NewFor(opt.Config, storage, opt.SecretStorage, opt.Signer), nil
9191
}
9292

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

102102
storage := storage.NewPluginAdapter(storageplugin.NewStore(c))
103-
return newFor(c, storage, secretStorage, signer)
103+
return NewFor(c, storage, secretStorage, signer)
104104
}
105105

106-
func newFor(
106+
func NewFor(
107107
c *config.Config,
108108
store storage.Store,
109109
secretStorage secrets.Store,

0 commit comments

Comments
 (0)