Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// TrustDomain is the server trust domain.
TrustDomain spiffeid.TrustDomain
}
type Deps ¶
type Deps struct {
// DataStore is used to retrieve the latest bundle. It MUST be set.
DataStore datastore.DataStore
// X509IdentityFetcher is used to fetch the X509 identity. It MUST be set.
X509IdentityFetcher X509IdentityFetcher
}
type IdentityProvider ¶
type IdentityProvider struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config) *IdentityProvider
func (*IdentityProvider) SetDeps ¶
func (s *IdentityProvider) SetDeps(deps Deps) error
func (*IdentityProvider) V1 ¶
func (s *IdentityProvider) V1() identityproviderv1.IdentityProviderServer
type X509Identity ¶
type X509Identity struct {
CertChain []*x509.Certificate
PrivateKey crypto.PrivateKey
}
type X509IdentityFetcher ¶
type X509IdentityFetcher interface {
FetchX509Identity(context.Context) (*X509Identity, error)
}
type X509IdentityFetcherFunc ¶
type X509IdentityFetcherFunc func(context.Context) (*X509Identity, error)
func (X509IdentityFetcherFunc) FetchX509Identity ¶
func (fn X509IdentityFetcherFunc) FetchX509Identity(ctx context.Context) (*X509Identity, error)
Click to show internal directories.
Click to hide internal directories.