Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "spire-delegate", "Spire Delegate API Client", cell.Provide(newSpireDelegateClient), cell.Config(SpireDelegateConfig{}), )
Functions ¶
This section is empty.
Types ¶
type SpireDelegateClient ¶
type SpireDelegateClient struct {
// contains filtered or unexported fields
}
func (*SpireDelegateClient) GetCertificateForIdentity ¶
func (s *SpireDelegateClient) GetCertificateForIdentity(identity string) (*tls.Certificate, error)
func (*SpireDelegateClient) GetTrustBundle ¶
func (s *SpireDelegateClient) GetTrustBundle() (*x509.CertPool, error)
func (*SpireDelegateClient) ValidateIdentity ¶
func (s *SpireDelegateClient) ValidateIdentity(identity string, cert *x509.Certificate) (bool, error)
type SpireDelegateConfig ¶
type SpireDelegateConfig struct { SpireAdminSocketPath string `mapstructure:"mesh-auth-spire-admin-socket"` SpiffeTrustDomain string `mapstructure:"mesh-auth-spiffe-trust-domain"` }
func (SpireDelegateConfig) Flags ¶
func (cfg SpireDelegateConfig) Flags(flags *pflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.