Documentation
¶
Index ¶
- type YAMLRepository
- func (r *YAMLRepository) CleanupOlderThan(ctx context.Context, maxAge time.Duration) (int, error)
- func (r *YAMLRepository) Create(ctx context.Context, l *tasklog.TaskLog) error
- func (r *YAMLRepository) DeleteByTaskID(ctx context.Context, taskID string) (int, error)
- func (r *YAMLRepository) List(ctx context.Context, taskID string, taskIDs []string, limit, offset int) ([]*tasklog.TaskLog, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YAMLRepository ¶
type YAMLRepository struct {
// contains filtered or unexported fields
}
YAMLRepository implements tasklog.Repository using YAML files on Storage.
func NewYAMLRepository ¶
func NewYAMLRepository(s storage.Storage) *YAMLRepository
func (*YAMLRepository) CleanupOlderThan ¶ added in v0.0.28
CleanupOlderThan removes task log entries older than maxAge.
func (*YAMLRepository) DeleteByTaskID ¶
Click to show internal directories.
Click to hide internal directories.