Documentation ¶
Index ¶
- Constants
- Variables
- func ErrBlobNotFound(digest digest.Digest) error
- func ErrUnknownArtifact(name, version string) error
- func FilterByNamespacePrefix(prefix string, list []string) []string
- func FilterChildren(closure bool, prefix string, list []string) []string
- func IsErrBlobNotFound(err error) bool
- func NewArtifactStateHandler() accessobj.StateHandler
- func NewIndexStateHandler() accessobj.StateHandler
- func NewManifestStateHandler() accessobj.StateHandler
- func RegisterRepositorySpecHandler(handler RepositorySpecHandler, types ...string)
- func RegisterRepositoryType(rtype RepositoryType)
- func RegisterRepositoryTypeVersions(s RepositoryTypeVersionScheme)
- type Artifact
- type ArtifactAccess
- type ArtifactAccessImpl
- type ArtifactAccessImplBase
- type ArtifactAccessViewManager
- type ArtifactSink
- type ArtifactSource
- type ArtifactStateHandler
- type BlobAccess
- type BlobSink
- type BlobSource
- type ConsumerIdentityProvider
- type Context
- type ContextProvider
- type DataAccess
- type Descriptor
- type GenericRepositorySpec
- type IndexAccess
- type IndexStateHandler
- type IntermediateRepositorySpecAspect
- type ManifestAccess
- type ManifestStateHandler
- type NamespaceAccess
- type NamespaceAccessImpl
- type NamespaceAccessImplBase
- type NamespaceAccessViewManager
- type NamespaceLister
- type Repository
- type RepositoryImpl
- type RepositoryImplBase
- type RepositorySource
- type RepositorySpec
- type RepositorySpecHandler
- type RepositorySpecHandlers
- type RepositoryType
- func NewRepositoryType[I RepositorySpec](name string) RepositoryType
- func NewRepositoryTypeByConverter[I RepositorySpec, V runtime.TypedObject](name string, converter runtime.Converter[I, V]) RepositoryType
- func NewRepositoryTypeByFormatVersion(name string, fmt runtime.FormatVersion[RepositorySpec]) RepositoryType
- type RepositoryTypeProvider
- type RepositoryTypeScheme
- type RepositoryTypeVersionScheme
- type RepositoryViewManager
- type StringList
- type UniformRepositorySpec
Constants ¶
View Source
const ( KIND_OCIARTIFACT = internal.KIND_OCIARTIFACT KIND_MEDIATYPE = accessio.KIND_MEDIATYPE KIND_BLOB = accessio.KIND_BLOB )
View Source
const CONTEXT_TYPE = internal.CONTEXT_TYPE
View Source
const CommonTransportFormat = internal.CommonTransportFormat
Variables ¶
View Source
var DefaultContext = internal.DefaultContext
View Source
var ErrClosed = resource.ErrClosed
Functions ¶
func ErrBlobNotFound ¶
func ErrBlobNotFound(digest digest.Digest) error
func ErrUnknownArtifact ¶
func FilterByNamespacePrefix ¶
func IsErrBlobNotFound ¶
func NewArtifactStateHandler ¶
func NewArtifactStateHandler() accessobj.StateHandler
func NewIndexStateHandler ¶
func NewIndexStateHandler() accessobj.StateHandler
func NewManifestStateHandler ¶
func NewManifestStateHandler() accessobj.StateHandler
func RegisterRepositorySpecHandler ¶
func RegisterRepositorySpecHandler(handler RepositorySpecHandler, types ...string)
func RegisterRepositoryType ¶
func RegisterRepositoryType(rtype RepositoryType)
func RegisterRepositoryTypeVersions ¶ added in v0.3.0
func RegisterRepositoryTypeVersions(s RepositoryTypeVersionScheme)
Types ¶
type ArtifactAccess ¶
type ArtifactAccess = internal.ArtifactAccess
func NewArtifactAccess ¶ added in v0.3.0
func NewArtifactAccess(impl ArtifactAccessImpl) ArtifactAccess
type ArtifactAccessImpl ¶ added in v0.3.0
type ArtifactAccessImpl interface { internal.ArtifactAccessImpl resource.ResourceImplementation[ArtifactAccess] ManifestAccess(ArtifactAccess) ManifestAccess IndexAccess(ArtifactAccess) IndexAccess }
type ArtifactAccessImplBase ¶ added in v0.3.0
type ArtifactAccessImplBase = resource.ResourceImplBase[ArtifactAccess]
func NewArtifactAccessImplBase ¶ added in v0.3.0
func NewArtifactAccessImplBase(ns NamespaceAccessViewManager, closer ...io.Closer) (*ArtifactAccessImplBase, error)
type ArtifactAccessViewManager ¶ added in v0.3.0
type ArtifactAccessViewManager = resource.ViewManager[ArtifactAccess]
type ArtifactSink ¶
type ArtifactSink = internal.ArtifactSink
type ArtifactSource ¶
type ArtifactSource = internal.ArtifactSource
type ArtifactStateHandler ¶
type ArtifactStateHandler struct{}
func (ArtifactStateHandler) Decode ¶
func (i ArtifactStateHandler) Decode(data []byte) (interface{}, error)
func (ArtifactStateHandler) Encode ¶
func (i ArtifactStateHandler) Encode(d interface{}) ([]byte, error)
func (ArtifactStateHandler) Equivalent ¶
func (i ArtifactStateHandler) Equivalent(a, b interface{}) bool
func (ArtifactStateHandler) Initial ¶
func (i ArtifactStateHandler) Initial() interface{}
type BlobAccess ¶
type BlobAccess = internal.BlobAccess
type BlobSource ¶
type BlobSource = internal.BlobSource
type ConsumerIdentityProvider ¶ added in v0.3.0
type ConsumerIdentityProvider = internal.ConsumerIdentityProvider
type Context ¶
func FromProvider ¶ added in v0.3.0
func FromProvider(p ContextProvider) Context
func New ¶
func New(m ...datacontext.BuilderMode) Context
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
type DataAccess ¶
type DataAccess = internal.DataAccess
type Descriptor ¶
type Descriptor = ociv1.Descriptor
type GenericRepositorySpec ¶
type GenericRepositorySpec = internal.GenericRepositorySpec
func ToGenericRepositorySpec ¶
func ToGenericRepositorySpec(spec RepositorySpec) (*GenericRepositorySpec, error)
type IndexAccess ¶
type IndexAccess = internal.IndexAccess
type IndexStateHandler ¶
type IndexStateHandler struct{}
func (IndexStateHandler) Decode ¶
func (i IndexStateHandler) Decode(data []byte) (interface{}, error)
func (IndexStateHandler) Encode ¶
func (i IndexStateHandler) Encode(d interface{}) ([]byte, error)
func (IndexStateHandler) Equivalent ¶
func (i IndexStateHandler) Equivalent(a, b interface{}) bool
func (IndexStateHandler) Initial ¶
func (i IndexStateHandler) Initial() interface{}
type IntermediateRepositorySpecAspect ¶
type IntermediateRepositorySpecAspect = internal.IntermediateRepositorySpecAspect
type ManifestAccess ¶
type ManifestAccess = internal.ManifestAccess
type ManifestStateHandler ¶
type ManifestStateHandler struct{}
func (ManifestStateHandler) Decode ¶
func (i ManifestStateHandler) Decode(data []byte) (interface{}, error)
func (ManifestStateHandler) Encode ¶
func (i ManifestStateHandler) Encode(d interface{}) ([]byte, error)
func (ManifestStateHandler) Equivalent ¶
func (i ManifestStateHandler) Equivalent(a, b interface{}) bool
func (ManifestStateHandler) Initial ¶
func (i ManifestStateHandler) Initial() interface{}
type NamespaceAccess ¶
type NamespaceAccess = internal.NamespaceAccess
func NewNamespaceAccess ¶ added in v0.3.0
func NewNamespaceAccess(impl NamespaceAccessImpl, kind ...string) NamespaceAccess
type NamespaceAccessImpl ¶ added in v0.3.0
type NamespaceAccessImpl interface { internal.NamespaceAccessImpl resource.ResourceImplementation[NamespaceAccess] GetNamespace() string }
func GetNamespaceAccessImplementation ¶ added in v0.3.0
func GetNamespaceAccessImplementation(n NamespaceAccess) (NamespaceAccessImpl, error)
type NamespaceAccessImplBase ¶ added in v0.3.0
type NamespaceAccessImplBase struct {
// contains filtered or unexported fields
}
func NewNamespaceAccessImplBase ¶ added in v0.3.0
func NewNamespaceAccessImplBase(namespace string, repo RepositoryViewManager, closer ...io.Closer) (*NamespaceAccessImplBase, error)
func (*NamespaceAccessImplBase) GetNamespace ¶ added in v0.3.0
func (b *NamespaceAccessImplBase) GetNamespace() string
type NamespaceAccessViewManager ¶ added in v0.3.0
type NamespaceAccessViewManager = resource.ViewManager[NamespaceAccess] // here you have to use an alias
type NamespaceLister ¶
type NamespaceLister = internal.NamespaceLister
type Repository ¶
type Repository = internal.Repository
func NewRepository ¶ added in v0.3.0
func NewRepository(impl RepositoryImpl, name ...string) Repository
type RepositoryImpl ¶ added in v0.3.0
type RepositoryImpl interface { internal.RepositoryImpl resource.ResourceImplementation[Repository] }
func GetRepositoryImplementation ¶ added in v0.3.0
func GetRepositoryImplementation(n Repository) (RepositoryImpl, error)
type RepositoryImplBase ¶ added in v0.3.0
type RepositoryImplBase struct {
// contains filtered or unexported fields
}
func NewRepositoryImplBase ¶ added in v0.3.0
func NewRepositoryImplBase(ctx Context) RepositoryImplBase
func (*RepositoryImplBase) GetContext ¶ added in v0.3.0
func (b *RepositoryImplBase) GetContext() Context
type RepositorySource ¶
type RepositorySource = internal.RepositorySource
type RepositorySpec ¶
type RepositorySpec = internal.RepositorySpec
type RepositorySpecHandler ¶
type RepositorySpecHandler = internal.RepositorySpecHandler
type RepositorySpecHandlers ¶
type RepositorySpecHandlers = internal.RepositorySpecHandlers
type RepositoryType ¶
type RepositoryType = internal.RepositoryType
func NewRepositoryType ¶
func NewRepositoryType[I RepositorySpec](name string) RepositoryType
func NewRepositoryTypeByConverter ¶ added in v0.3.0
func NewRepositoryTypeByConverter[I RepositorySpec, V runtime.TypedObject](name string, converter runtime.Converter[I, V]) RepositoryType
func NewRepositoryTypeByFormatVersion ¶ added in v0.3.0
func NewRepositoryTypeByFormatVersion(name string, fmt runtime.FormatVersion[RepositorySpec]) RepositoryType
type RepositoryTypeProvider ¶ added in v0.3.0
type RepositoryTypeProvider = internal.RepositoryTypeProvider
type RepositoryTypeScheme ¶ added in v0.3.0
type RepositoryTypeScheme = internal.RepositoryTypeScheme
type RepositoryTypeVersionScheme ¶ added in v0.3.0
type RepositoryTypeVersionScheme = runtime.TypeVersionScheme[RepositorySpec, RepositoryType]
func NewRepositoryTypeVersionScheme ¶ added in v0.3.0
func NewRepositoryTypeVersionScheme(kind string) RepositoryTypeVersionScheme
type RepositoryViewManager ¶ added in v0.3.0
type RepositoryViewManager = resource.ViewManager[Repository] // here you have to use an alias
type StringList ¶
type StringList []string
func (*StringList) Add ¶
func (s *StringList) Add(n string)
type UniformRepositorySpec ¶
type UniformRepositorySpec = internal.UniformRepositorySpec
func UniformRepositorySpecForHostURL ¶
func UniformRepositorySpecForHostURL(typ string, host string) *UniformRepositorySpec
Click to show internal directories.
Click to hide internal directories.