-
Notifications
You must be signed in to change notification settings - Fork 18
/
interface.go
39 lines (28 loc) · 964 Bytes
/
interface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Open Component Model contributors.
//
// SPDX-License-Identifier: Apache-2.0
package bpi
import (
"github.com/open-component-model/ocm/pkg/blobaccess/internal"
"github.com/open-component-model/ocm/pkg/refmgmt"
)
const (
KIND_BLOB = internal.KIND_BLOB
KIND_MEDIATYPE = internal.KIND_MEDIATYPE
BLOB_UNKNOWN_SIZE = internal.BLOB_UNKNOWN_SIZE
BLOB_UNKNOWN_DIGEST = internal.BLOB_UNKNOWN_DIGEST
)
var ErrClosed = refmgmt.ErrClosed
type DataAccess = internal.DataAccess
type (
BlobAccess = internal.BlobAccess
BlobAccessBase = internal.BlobAccessBase
BlobAccessProvider = internal.BlobAccessProvider
DigestSource = internal.DigestSource
MimeType = internal.MimeType
)
type FileLocation = internal.FileLocation
type BlobAccessProviderFunction func() (BlobAccess, error)
func (p BlobAccessProviderFunction) BlobAccess() (BlobAccess, error) {
return p()
}