publishrepo

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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