-
Notifications
You must be signed in to change notification settings - Fork 9
/
deps.fn.go
41 lines (31 loc) · 1.06 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
// This file was automatically generated by Namespace.
// DO NOT EDIT. To update, re-run `ns generate`.
package creds
import (
"context"
"namespacelabs.dev/foundation/std/go/core"
"namespacelabs.dev/foundation/std/secrets"
)
// Dependencies that are instantiated once for the lifetime of the extension.
type ExtensionDeps struct {
Password *secrets.Value
}
type _checkProvideCreds func(context.Context, *CredsRequest, ExtensionDeps) (*Creds, error)
var _ _checkProvideCreds = ProvideCreds
var (
Package__bihnv9 = &core.Package{
PackageName: "namespacelabs.dev/foundation/universe/db/maria/incluster/creds",
}
Provider__bihnv9 = core.Provider{
Package: Package__bihnv9,
Instantiate: makeDeps__bihnv9,
}
)
func makeDeps__bihnv9(ctx context.Context, di core.Dependencies) (_ interface{}, err error) {
var deps ExtensionDeps
// name: "mariadb-password-file"
if deps.Password, err = secrets.ProvideSecret(ctx, core.MustUnwrapProto("ChVtYXJpYWRiLXBhc3N3b3JkLWZpbGU=", &secrets.Secret{}).(*secrets.Secret)); err != nil {
return nil, err
}
return deps, nil
}