backupcatalog

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogInsertMedia added in v1.5.57

type CatalogInsertMedia interface {
	Insert(ctx context.Context, owner ownermodel.Owner, medias []catalog.CreateMediaRequest) error
}

type CatalogReferencerAdapter added in v1.5.54

type CatalogReferencerAdapter struct {
	Owner                   ownermodel.Owner
	InsertMediaSimulator    InsertMediaSimulator
	StatefulAlbumReferencer StatefulAlbumReferencer
}

func (*CatalogReferencerAdapter) Reference added in v1.5.54

type InsertMediaAdapter added in v1.5.57

type InsertMediaAdapter struct {
	CatalogInsertMedia CatalogInsertMedia
}

func (*InsertMediaAdapter) IndexMedias added in v1.5.57

func (a *InsertMediaAdapter) IndexMedias(ctx context.Context, owner ownermodel.Owner, requests []*backup.CatalogMediaRequest) error

type InsertMediaSimulator added in v1.5.54

type InsertMediaSimulator interface {
	SimulateInsertingMedia(ctx context.Context, owner ownermodel.Owner, signatures []catalog.MediaSignature) ([]catalog.MediaFutureReference, error)
}

type Reference added in v1.5.54

type Reference struct {
	MediaReference catalog.MediaFutureReference
	AlbumReference catalog.AlbumReference
}

func (Reference) AlbumCreated added in v1.5.54

func (r Reference) AlbumCreated() bool

func (Reference) AlbumFolderName added in v1.5.54

func (r Reference) AlbumFolderName() string

func (Reference) Exists added in v1.5.54

func (r Reference) Exists() bool

func (Reference) MediaId added in v1.5.54

func (r Reference) MediaId() string

func (Reference) UniqueIdentifier added in v1.5.57

func (r Reference) UniqueIdentifier() string

type StatefulAlbumReferencer added in v1.5.54

type StatefulAlbumReferencer interface {
	FindReference(ctx context.Context, mediaTime time.Time) (catalog.AlbumReference, error)
}

Jump to

Keyboard shortcuts

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