-
Notifications
You must be signed in to change notification settings - Fork 9
/
deps.fn.go
46 lines (36 loc) · 1.18 KB
/
deps.fn.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// This file was automatically generated by Namespace.
// DO NOT EDIT. To update, re-run `ns generate`.
package ecr
import (
"context"
"github.com/aws/aws-sdk-go-v2/service/ecr"
"namespacelabs.dev/foundation/std/go/core"
"namespacelabs.dev/foundation/universe/aws/client"
)
// Dependencies that are instantiated once for the lifetime of the extension.
type ExtensionDeps struct {
ClientFactory client.ClientFactory
}
type _checkProvideClient func(context.Context, *ClientArgs, ExtensionDeps) (*ecr.Client, error)
var _ _checkProvideClient = ProvideClient
var (
Package__o6ggab = &core.Package{
PackageName: "namespacelabs.dev/foundation/universe/aws/ecr",
}
Provider__o6ggab = core.Provider{
Package: Package__o6ggab,
Instantiate: makeDeps__o6ggab,
}
)
func makeDeps__o6ggab(ctx context.Context, di core.Dependencies) (_ interface{}, err error) {
var deps ExtensionDeps
if err := di.Instantiate(ctx, client.Provider__hva50k, func(ctx context.Context, v interface{}) (err error) {
if deps.ClientFactory, err = client.ProvideClientFactory(ctx, nil, v.(client.ExtensionDeps)); err != nil {
return err
}
return nil
}); err != nil {
return nil, err
}
return deps, nil
}