Documentation
¶
Index ¶
- Variables
- type PhaseLogger
- func (l *PhaseLogger[R]) CreateLog(ctx context.Context, phase core.Descriptor) error
- func (l *PhaseLogger[R]) GetResourceAtVersion(ctx context.Context, phase core.Descriptor, v uuid.UUID) (r R, _ error)
- func (l *PhaseLogger[R]) History(ctx context.Context, phase core.Descriptor) (states []core.State, _ error)
- func (l *PhaseLogger[R]) RecordLatest(ctx context.Context, phase core.Descriptor, resource R, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type PhaseLogger ¶
func (*PhaseLogger[R]) CreateLog ¶
func (l *PhaseLogger[R]) CreateLog(ctx context.Context, phase core.Descriptor) error
func (*PhaseLogger[R]) GetResourceAtVersion ¶
func (l *PhaseLogger[R]) GetResourceAtVersion(ctx context.Context, phase core.Descriptor, v uuid.UUID) (r R, _ error)
GetResourceAtVersion returns the state of the resource at a given point in history identified by the provided version
func (*PhaseLogger[R]) History ¶
func (l *PhaseLogger[R]) History(ctx context.Context, phase core.Descriptor) (states []core.State, _ error)
Histort returns a slice of states for a provided phase descriptor.
func (*PhaseLogger[R]) RecordLatest ¶
func (l *PhaseLogger[R]) RecordLatest(ctx context.Context, phase core.Descriptor, resource R, annotations map[string]string) error
Click to show internal directories.
Click to hide internal directories.