File tree 1 file changed +9
-4
lines changed
crypto/spiffe/trustanchors
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ import (
23
23
"github.com/dapr/kit/concurrency"
24
24
)
25
25
26
+ var (
27
+ ErrNotImplemented = errors .New ("not implemented" )
28
+ ErrTrustDomainNotFound = errors .New ("trust domain not found" )
29
+ )
30
+
26
31
type OptionsMulti struct {
27
32
TrustAnchors map [spiffeid.TrustDomain ]Interface
28
33
}
@@ -50,8 +55,8 @@ func (m *multi) Run(ctx context.Context) error {
50
55
return r .Run (ctx )
51
56
}
52
57
53
- func (m * multi ) CurrentTrustAnchors (ctx context.Context ) ([]byte , error ) {
54
- return nil , errors . New ( "not implemented" )
58
+ func (m * multi ) CurrentTrustAnchors (context.Context ) ([]byte , error ) {
59
+ return nil , ErrNotImplemented
55
60
}
56
61
57
62
func (m * multi ) GetX509BundleForTrustDomain (td spiffeid.TrustDomain ) (* x509bundle.Bundle , error ) {
@@ -61,9 +66,9 @@ func (m *multi) GetX509BundleForTrustDomain(td spiffeid.TrustDomain) (*x509bundl
61
66
}
62
67
}
63
68
64
- return nil , errors . New ( "trust domain not found" )
69
+ return nil , ErrTrustDomainNotFound
65
70
}
66
71
67
- func (m * multi ) Watch (ctx context.Context , ch chan <- []byte ) {
72
+ func (m * multi ) Watch (context.Context , chan <- []byte ) {
68
73
return
69
74
}
You can’t perform that action at this time.
0 commit comments