confirm

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOperationInProgress = &confirmError{"another operation is in progress"}

Functions

This section is empty.

Types

type InMemoryConfirm

type InMemoryConfirm struct {
	// contains filtered or unexported fields
}

func NewInMemory

func NewInMemory(ttl time.Duration) *InMemoryConfirm

func (*InMemoryConfirm) AcquireLock

func (a *InMemoryConfirm) AcquireLock() error

func (*InMemoryConfirm) CreateBlocker

func (a *InMemoryConfirm) CreateBlocker() error

func (*InMemoryConfirm) DeletePlan

func (a *InMemoryConfirm) DeletePlan() error

func (*InMemoryConfirm) HasBlocker

func (a *InMemoryConfirm) HasBlocker() bool

func (*InMemoryConfirm) IsPlanExpired

func (a *InMemoryConfirm) IsPlanExpired() bool

func (*InMemoryConfirm) ReadPlan

func (a *InMemoryConfirm) ReadPlan() (*domain.OperationPlan, error)

func (*InMemoryConfirm) ReleaseLock

func (a *InMemoryConfirm) ReleaseLock() error

func (*InMemoryConfirm) RemoveBlocker

func (a *InMemoryConfirm) RemoveBlocker() error

func (*InMemoryConfirm) WritePlan

func (a *InMemoryConfirm) WritePlan(plan domain.OperationPlan) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL