Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultRotatorInterval = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observer ¶
type Observer interface {
State() State
}
Observer is a convenience interface for subsystems that only want to observer the current SVID state but don't care about other rotator methods.
type ObserverFunc ¶
type ObserverFunc func() State
func (ObserverFunc) State ¶
func (fn ObserverFunc) State() State
type Rotator ¶
type Rotator struct {
// contains filtered or unexported fields
}
func NewRotator ¶
func NewRotator(c *RotatorConfig) *Rotator
func (*Rotator) Initialize ¶
Start generates a new SVID and then starts the rotator.
type RotatorConfig ¶
type RotatorConfig struct { Log logrus.FieldLogger Metrics telemetry.Metrics TrustDomain spiffeid.TrustDomain ServerCA ca.ServerCA Clock clock.Clock KeyType keymanager.KeyType // How long to wait between expiry checks Interval time.Duration }
Click to show internal directories.
Click to hide internal directories.