Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assigner ¶
type Assigner func(s string)
Assigner is a function that's called after the keys are rotated. Use it to set external dependencies.
type Rotator ¶
type Rotator struct {
// contains filtered or unexported fields
}
Rotator is a struct that holds the keys and the function to call after the keys are rotated.
func New ¶
New creates a new Rotator instance. The rotateFn is called with the next key name when RotateKeys is called.
func (*Rotator) RotateKeys ¶
RotateKeys rotates the keys and calls the rotateFn with the next key name.
Click to show internal directories.
Click to hide internal directories.