Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// TrustDomainID of the server trust domain.
TrustDomainID string
}
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 {
hostservices.UnsafeIdentityProviderServer
// contains filtered or unexported fields
}
func New ¶
func New(config Config) *IdentityProvider
func (*IdentityProvider) FetchX509Identity ¶
func (s *IdentityProvider) FetchX509Identity(ctx context.Context, req *hostservices.FetchX509IdentityRequest) (*hostservices.FetchX509IdentityResponse, error)
func (*IdentityProvider) SetDeps ¶
func (s *IdentityProvider) SetDeps(deps Deps) error
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.