Documentation
¶
Index ¶
- Constants
- type Authority
- func (a *Authority) Bundle() *spiffebundle.Bundle
- func (a *Authority) JWTAuthority() (string, crypto.Signer)
- func (a *Authority) JWTBundle() *jwtbundle.Bundle
- func (a *Authority) MintJWTSVID(path string, audience []string, opts ...JWTSVIDOption) string
- func (a *Authority) MintX509SVID(path string, opts ...X509SVIDOption) *x509svid.SVID
- func (a *Authority) Rotate() *spiffebundle.Bundle
- func (a *Authority) RotateJWTAuthority()
- func (a *Authority) RotateX509Authority()
- func (a *Authority) TrustDomain() spiffeid.TrustDomain
- func (a *Authority) X509Authority() (*x509.Certificate, crypto.Signer)
- func (a *Authority) X509Bundle() *x509bundle.Bundle
- type AuthorityOption
- type JWTSVIDOption
- type X509SVIDOption
Constants ¶
View Source
const ( DefaultX509SVIDTTL = 24 * time.Hour DefaultJWTSVIDTTL = 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
func New ¶
func New(trustDomainName string, opts ...AuthorityOption) *Authority
func (*Authority) Bundle ¶
func (a *Authority) Bundle() *spiffebundle.Bundle
func (*Authority) MintJWTSVID ¶
func (a *Authority) MintJWTSVID(path string, audience []string, opts ...JWTSVIDOption) string
func (*Authority) MintX509SVID ¶
func (a *Authority) MintX509SVID(path string, opts ...X509SVIDOption) *x509svid.SVID
func (*Authority) Rotate ¶
func (a *Authority) Rotate() *spiffebundle.Bundle
func (*Authority) RotateJWTAuthority ¶
func (a *Authority) RotateJWTAuthority()
func (*Authority) RotateX509Authority ¶
func (a *Authority) RotateX509Authority()
func (*Authority) TrustDomain ¶
func (a *Authority) TrustDomain() spiffeid.TrustDomain
func (*Authority) X509Authority ¶
func (a *Authority) X509Authority() (*x509.Certificate, crypto.Signer)
func (*Authority) X509Bundle ¶
func (a *Authority) X509Bundle() *x509bundle.Bundle
type AuthorityOption ¶
func WithClock ¶
func WithClock(clk clock.Clock) AuthorityOption
type JWTSVIDOption ¶
type JWTSVIDOption func(c *jwtSVIDConfig)
func WithJWTSVIDTTL ¶
func WithJWTSVIDTTL(ttl time.Duration) JWTSVIDOption
type X509SVIDOption ¶
type X509SVIDOption func(c *x509SVIDConfig)
func WithPublicKey ¶
func WithPublicKey(publicKey crypto.PublicKey) X509SVIDOption
func WithX509SVIDTTL ¶
func WithX509SVIDTTL(ttl time.Duration) X509SVIDOption
Click to show internal directories.
Click to hide internal directories.