Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "publish.repo"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublishRepo ¶
type PublishRepo interface { ObjectCreate(ctx context.Context, object domain.Object, version string) (publish domain.ObjectWithPublish, err error) ObjectDelete(ctx context.Context, object domain.Object) (err error) ObjectPublishStatus(ctx context.Context, object domain.Object) (publish domain.ObjectWithPublish, err error) ResolveUri(ctx context.Context, identity, uri string) (publish domain.ObjectWithPublish, err error) ResolvePublishUri(ctx context.Context, identity, uri string) (publish domain.Object, err error) ListPublishes(ctx context.Context, identity string) ([]domain.ObjectWithPublish, error) GetPublish(ctx context.Context, id primitive.ObjectID) (publish domain.Publish, err error) FinalizePublish(ctx context.Context, publish domain.Publish) (err error) IterateReadyToDeleteIds(ctx context.Context, do func(id primitive.ObjectID) error) error DeletePublish(ctx context.Context, id primitive.ObjectID) (err error) DeleteOutdatedPublishes(ctx context.Context, before time.Time) (deletedCount int, err error) DeleteOutdatedObjects(ctx context.Context, before time.Time) (deletedCount int, err error) app.ComponentRunnable }
func New ¶
func New() PublishRepo
Click to show internal directories.
Click to hide internal directories.