summaryrefslogtreecommitdiff
path: root/vendor/github.com/spiffe/go-spiffe/v2/bundle/spiffebundle/source.go
blob: f4d37125b48dd87dc8c93b175b8661e74d3560fc (plain)
1
2
3
4
5
6
7
8
9
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)
}