forked from open-component-model/ocm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.go
65 lines (53 loc) · 2.14 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package oci
import (
"context"
"ocm.software/ocm/api/oci/internal"
"ocm.software/ocm/api/utils/blobaccess/blobaccess"
)
const (
KIND_OCIARTIFACT = internal.KIND_OCIARTIFACT
KIND_MEDIATYPE = blobaccess.KIND_MEDIATYPE
KIND_BLOB = blobaccess.KIND_BLOB
)
const CONTEXT_TYPE = internal.CONTEXT_TYPE
const CommonTransportFormat = internal.CommonTransportFormat
type (
Context = internal.Context
ContextProvider = internal.ContextProvider
Repository = internal.Repository
RepositorySpecHandlers = internal.RepositorySpecHandlers
RepositorySpecHandler = internal.RepositorySpecHandler
UniformRepositorySpec = internal.UniformRepositorySpec
RepositoryTypeScheme = internal.RepositoryTypeScheme
RepositorySpec = internal.RepositorySpec
RepositoryType = internal.RepositoryType
IntermediateRepositorySpecAspect = internal.IntermediateRepositorySpecAspect
GenericRepositorySpec = internal.GenericRepositorySpec
ArtifactAccess = internal.ArtifactAccess
Artifact = internal.Artifact
NamespaceLister = internal.NamespaceLister
NamespaceAccess = internal.NamespaceAccess
ManifestAccess = internal.ManifestAccess
IndexAccess = internal.IndexAccess
BlobAccess = internal.BlobAccess
DataAccess = internal.DataAccess
ConsumerIdentityProvider = internal.ConsumerIdentityProvider
)
func DefaultContext() internal.Context {
return internal.DefaultContext
}
func FromContext(ctx context.Context) Context {
return internal.ForContext(ctx)
}
func FromProvider(p ContextProvider) Context {
return internal.FromProvider(p)
}
func DefinedForContext(ctx context.Context) (Context, bool) {
return internal.DefinedForContext(ctx)
}
func IsErrBlobNotFound(err error) bool {
return blobaccess.IsErrBlobNotFound(err)
}
func ToGenericRepositorySpec(spec RepositorySpec) (*GenericRepositorySpec, error) {
return internal.ToGenericRepositorySpec(spec)
}