Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SourceDriver ¶
func WithTelemetry ¶
WithTelemetry enriches Storage by adding instrumentation and context.
Types ¶
type Storage ¶
type Storage interface { // Package. CreatePackage(ctx context.Context, pkg *goastorage.Package) (*goastorage.Package, error) ListPackages(ctx context.Context) (goastorage.PackageCollection, error) ReadPackage(ctx context.Context, aipID uuid.UUID) (*goastorage.Package, error) UpdatePackageStatus(ctx context.Context, aipID uuid.UUID, status types.PackageStatus) error UpdatePackageLocationID(ctx context.Context, aipID, locationID uuid.UUID) error // Location. CreateLocation( ctx context.Context, location *goastorage.Location, config *types.LocationConfig, ) (*goastorage.Location, error) ListLocations(ctx context.Context) (goastorage.LocationCollection, error) ReadLocation(ctx context.Context, locationID uuid.UUID) (*goastorage.Location, error) LocationPackages(ctx context.Context, locationID uuid.UUID) (goastorage.PackageCollection, error) }
Directories ¶
Path | Synopsis |
---|---|
ent
|
|
Package fake is a generated GoMock package.
|
Package fake is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.