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 ¶
Click to show internal directories.
Click to hide internal directories.