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 interface { Initialize(ctx context.Context) error Run(ctx context.Context) error State() State Subscribe() observer.Stream }
Rotator is an interface for a SVID rotator
func NewRotator ¶
func NewRotator(c *RotatorConfig) Rotator
type RotatorConfig ¶
type State ¶
type State struct { SVID []*x509.Certificate Key *ecdsa.PrivateKey }
State is the current SVID and key
Click to show internal directories.
Click to hide internal directories.