summaryrefslogtreecommitdiff
path: root/vendor/github.com/spiffe/go-spiffe/v2/bundle/spiffebundle/source.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/spiffe/go-spiffe/v2/bundle/spiffebundle/source.go')
-rw-r--r--vendor/github.com/spiffe/go-spiffe/v2/bundle/spiffebundle/source.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/spiffe/go-spiffe/v2/bundle/spiffebundle/source.go b/vendor/github.com/spiffe/go-spiffe/v2/bundle/spiffebundle/source.go
new file mode 100644
index 0000000..f4d3712
--- /dev/null
+++ b/vendor/github.com/spiffe/go-spiffe/v2/bundle/spiffebundle/source.go
@@ -0,0 +1,10 @@
+package spiffebundle
+
+import "github.com/spiffe/go-spiffe/v2/spiffeid"
+
+// Source represents a source of SPIFFE bundles keyed by trust domain.
+type Source interface {
+ // GetBundleForTrustDomain returns the SPIFFE bundle for the given trust
+ // domain.
+ GetBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*Bundle, error)
+}