Documentation ¶
Overview ¶
Package state provides state management functionality for AWS Organization configuration. Version: 1.0.0
Index ¶
- type StateManager
- func (sm *StateManager) CleanupOldStates(ctx context.Context) error
- func (sm *StateManager) Close() error
- func (sm *StateManager) CreateBackup(ctx context.Context) (string, error)
- func (sm *StateManager) Load(ctx context.Context) (*config.StateData, error)
- func (sm *StateManager) Save(ctx context.Context, state interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateManager ¶
type StateManager struct {
// contains filtered or unexported fields
}
StateManager handles state persistence and retrieval
func NewManager ¶
func NewManager(ctx context.Context, opts ...func(*StateManager) error) (*StateManager, error)
NewManager creates a new state manager instance with the provided options
func (*StateManager) CleanupOldStates ¶
func (sm *StateManager) CleanupOldStates(ctx context.Context) error
CleanupOldStates removes expired states and backups
func (*StateManager) Close ¶
func (sm *StateManager) Close() error
Close performs cleanup and closes connections
func (*StateManager) CreateBackup ¶
func (sm *StateManager) CreateBackup(ctx context.Context) (string, error)
CreateBackup creates a backup of the current state
Click to show internal directories.
Click to hide internal directories.