Documentation ¶
Index ¶
- Constants
- Variables
- func AcceptExistentDigests(flag ...bool) internal.ModOptionImpl
- func ArtifactNameHint(spec AccessSpec, cv ComponentVersionAccess) string
- func BlobHandlerLogger(ctx Context, messageContext ...logging.MessageContext) logging.Logger
- func CompleteModificationOptions(ctx ContextProvider, m *ModificationOptions)
- func DefaultContext() internal.Context
- func ErrComponentVersionNotFound(name, version string) error
- func ErrComponentVersionNotFoundWrap(err error, name, version string) error
- func GetRefParseHandler(ty string, h ParseHandler)
- func GetResourceMimeReader(acc AccessProvider) (io.ReadCloser, string, error)
- func GetResourceReader(acc AccessProvider) (io.ReadCloser, error)
- func Logger(c OCMContextProvider, keyValuePairs ...interface{}) logging.Logger
- func ModifyResource(flag ...bool) internal.ModOptionImpl
- func MustRegisterDigester(digester BlobDigester, arttypes ...string)
- func NewArtifactAccessForProvider[M any](meta *M, prov AccessProvider) cpi.ArtifactAccess[M]
- func NewArtifactAccessProviderForBlobAccessProvider[M any](ctx Context, meta *M, src blobAccessProvider, hint string, global AccessSpec) cpi.ArtifactAccess[M]
- func ReferenceHint(spec AccessSpec, cv ComponentVersionAccess) string
- func RegisterBlobHandler(handler BlobHandler, opts ...BlobHandlerOption)
- func RegisterBlobHandlerRegistrationHandler(path string, handler BlobHandlerRegistrationHandler)
- func RegisterRefParseHandler(ty string, h ParseHandler)
- func RegisterRepositorySpecHandler(handler RepositorySpecHandler, types ...string)
- func RegisterRepositoryType(rtype RepositoryType)
- func RegisterRepositoryTypeVersions(s RepositoryTypeVersionScheme)
- func RepositoryPrefix(spec RepositorySpec) string
- func ResourceMimeReader(s AccessMethodSource) (io.ReadCloser, string, error)
- func ResourceReader(s AccessMethodSource) (io.ReadCloser, error)
- func SetDefaultDigester(d BlobDigester)
- func SkipDigest(flag ...bool) internal.ModOptionImpldeprecated
- func SkipVerify(flag ...bool) internal.ModOptionImpl
- func UseBlobHandlers(h BlobHandlerProvider) internal.BlobOptionImpl
- func WithDefaultHashAlgorithm(algo ...string) internal.ModOptionImpl
- func WithHasherProvider(prov HasherProvider) internal.ModOptionImpl
- type AccessMethod
- type AccessMethodSource
- type AccessProvider
- type AccessSpec
- type AccessSpecDecoder
- type AccessSpecRef
- type AccessTypeProvider
- type AccessTypeScheme
- type AddVersionOption
- type AddVersionOptions
- type ArtifactAccess
- type BaseAccessdeprecated
- type BlobAccess
- type BlobDigester
- type BlobDigesterRegistry
- type BlobHandler
- type BlobHandlerConfig
- type BlobHandlerKey
- type BlobHandlerOption
- type BlobHandlerOptions
- type BlobHandlerProvider
- type BlobHandlerRegistrationHandler
- type BlobHandlerRegistry
- type BlobModificationOption
- type BlobModificationOptions
- type BlobUploadOption
- type BlobUploadOptions
- type ComponentAccess
- type ComponentLister
- type ComponentReference
- type ComponentVersionAccess
- type ComponentVersionBasedAccessProvider
- func (r *ComponentVersionBasedAccessProvider) Access() (AccessSpec, error)
- func (r *ComponentVersionBasedAccessProvider) AccessMethod() (AccessMethod, error)
- func (r *ComponentVersionBasedAccessProvider) BlobAccess() (BlobAccess, error)
- func (r *ComponentVersionBasedAccessProvider) GetComponentVersion() (ComponentVersionAccess, error)
- func (r *ComponentVersionBasedAccessProvider) GetOCMContext() Context
- func (r *ComponentVersionBasedAccessProvider) GlobalAccess() AccessSpec
- func (r *ComponentVersionBasedAccessProvider) ReferenceHint() string
- type ComponentVersionProvider
- type ComponentVersionResolver
- type Context
- type ContextProvider
- type DataAccess
- type DefaultStorageContext
- type DigestDescriptor
- type DigesterType
- type DummyComponentVersionAccess
- func (d *DummyComponentVersionAccess) AccessMethod(spec AccessSpec) (AccessMethod, error)
- func (d *DummyComponentVersionAccess) AddBlob(blob BlobAccess, arttype, refName string, global AccessSpec, ...) (AccessSpec, error)
- func (d *DummyComponentVersionAccess) AdjustResourceAccess(meta *internal.ResourceMeta, acc compdesc.AccessSpec, ...) error
- func (d *DummyComponentVersionAccess) AdjustSourceAccess(meta *internal.SourceMeta, acc compdesc.AccessSpec) error
- func (d *DummyComponentVersionAccess) Close() error
- func (d *DummyComponentVersionAccess) DiscardChanges()
- func (d *DummyComponentVersionAccess) Dup() (ComponentVersionAccess, error)
- func (d *DummyComponentVersionAccess) GetContext() Context
- func (d *DummyComponentVersionAccess) GetDescriptor() *compdesc.ComponentDescriptor
- func (d *DummyComponentVersionAccess) GetInexpensiveContentVersionIdentity(spec AccessSpec) string
- func (d *DummyComponentVersionAccess) GetName() string
- func (d *DummyComponentVersionAccess) GetProvider() *compdesc.Provider
- func (d *DummyComponentVersionAccess) GetReference(meta metav1.Identity) (ComponentReference, error)
- func (d *DummyComponentVersionAccess) GetReferenceByIndex(i int) (ComponentReference, error)
- func (d *DummyComponentVersionAccess) GetReferenceIndex(metav1.Identity) int
- func (d *DummyComponentVersionAccess) GetReferencesByIdentitySelectors(selectors ...compdesc.IdentitySelector) (compdesc.References, error)
- func (d *DummyComponentVersionAccess) GetReferencesByName(name string, selectors ...compdesc.IdentitySelector) (compdesc.References, error)
- func (d *DummyComponentVersionAccess) GetReferencesByReferenceSelectors(selectors ...compdesc.ReferenceSelector) (compdesc.References, error)
- func (d *DummyComponentVersionAccess) GetResource(id metav1.Identity) (ResourceAccess, error)
- func (d *DummyComponentVersionAccess) GetResourceByIndex(i int) (ResourceAccess, error)
- func (d *DummyComponentVersionAccess) GetResourceIndex(metav1.Identity) int
- func (d *DummyComponentVersionAccess) GetResources() []ResourceAccess
- func (d *DummyComponentVersionAccess) GetResourcesByIdentitySelectors(selectors ...compdesc.IdentitySelector) ([]internal.ResourceAccess, error)
- func (d *DummyComponentVersionAccess) GetResourcesByName(name string, selectors ...compdesc.IdentitySelector) ([]ResourceAccess, error)
- func (d *DummyComponentVersionAccess) GetResourcesByResourceSelectors(selectors ...compdesc.ResourceSelector) ([]internal.ResourceAccess, error)
- func (d *DummyComponentVersionAccess) GetSource(id metav1.Identity) (SourceAccess, error)
- func (d *DummyComponentVersionAccess) GetSourceByIndex(i int) (SourceAccess, error)
- func (d *DummyComponentVersionAccess) GetSourceIndex(metav1.Identity) int
- func (d *DummyComponentVersionAccess) GetSources() []SourceAccess
- func (d *DummyComponentVersionAccess) GetVersion() string
- func (d *DummyComponentVersionAccess) IsClosed() bool
- func (d *DummyComponentVersionAccess) IsPersistent() bool
- func (c *DummyComponentVersionAccess) Repository() Repository
- func (d *DummyComponentVersionAccess) SetProvider(p *compdesc.Provider) error
- func (d *DummyComponentVersionAccess) SetReference(ref *ComponentReference) error
- func (d *DummyComponentVersionAccess) SetResource(meta *ResourceMeta, spec compdesc.AccessSpec, opts ...ModificationOption) error
- func (d *DummyComponentVersionAccess) SetResourceAccess(art ResourceAccess, modopts ...BlobModificationOption) error
- func (d *DummyComponentVersionAccess) SetResourceBlob(meta *ResourceMeta, blob BlobAccess, refname string, global AccessSpec, ...) error
- func (d *DummyComponentVersionAccess) SetSource(meta *SourceMeta, spec compdesc.AccessSpec) error
- func (d *DummyComponentVersionAccess) SetSourceBlob(meta *SourceMeta, blob BlobAccess, refname string, global AccessSpec) error
- func (d *DummyComponentVersionAccess) SetSourceByAccess(art SourceAccess) error
- func (d *DummyComponentVersionAccess) Update() error
- func (d *DummyComponentVersionAccess) UseDirectAccess() bool
- type GenericAccessSpec
- type GenericRepositorySpec
- type GlobalAccessProvider
- type Hasher
- type HasherProvider
- type HintProvider
- type ImplementationRepositoryType
- type IntermediateRepositorySpecAspect
- type LocalContextProvider
- type ModificationOption
- type ModificationOptions
- type NamePath
- type OCMContextProvider
- type ParseHandler
- type PrefixProvider
- type Repository
- type RepositoryAccessMethodChecker
- type RepositoryDelegationRegistry
- type RepositoryPriorityDecoder
- type RepositorySpec
- type RepositorySpecDecoder
- type RepositorySpecHandler
- type RepositorySpecHandlers
- type RepositoryType
- func NewRepositoryType[I RepositorySpec](name string, checker RepositoryAccessMethodChecker) RepositoryType
- func NewRepositoryTypeByConverter[I RepositorySpec, V runtime.VersionedTypedObject](name string, converter runtime.Converter[I, V], ...) RepositoryType
- func NewRepositoryTypeByFormatVersion(name string, fmt runtime.FormatVersion[RepositorySpec], ...) RepositoryType
- type RepositoryTypeProvider
- type RepositoryTypeScheme
- type RepositoryTypeVersionScheme
- type ResourceAccess
- type ResourceMeta
- type SourceAccess
- type SourceMeta
- type StorageContext
- type UniformRepositorySpec
Constants ¶
const ( KIND_COMPONENTVERSION = internal.KIND_COMPONENTVERSION KIND_RESOURCE = internal.KIND_RESOURCE KIND_SOURCE = internal.KIND_SOURCE KIND_REFERENCE = internal.KIND_REFERENCE )
const CONTEXT_TYPE = internal.CONTEXT_TYPE
const CommonTransportFormat = internal.CommonTransportFormat
Variables ¶
var TAG_BLOBHANDLER = logging.DefineTag("blobhandler", "execution of blob handler used to upload resource blobs to an ocm repository.")
Functions ¶
func AcceptExistentDigests ¶ added in v0.4.1
func AcceptExistentDigests(flag ...bool) internal.ModOptionImpl
func ArtifactNameHint ¶
func ArtifactNameHint(spec AccessSpec, cv ComponentVersionAccess) string
func BlobHandlerLogger ¶
func BlobHandlerLogger(ctx Context, messageContext ...logging.MessageContext) logging.Logger
func CompleteModificationOptions ¶ added in v0.4.1
func CompleteModificationOptions(ctx ContextProvider, m *ModificationOptions)
func DefaultContext ¶
func GetRefParseHandler ¶ added in v0.3.0
func GetRefParseHandler(ty string, h ParseHandler)
func GetResourceMimeReader ¶ added in v0.5.0
func GetResourceMimeReader(acc AccessProvider) (io.ReadCloser, string, error)
GetResourceMimeReader gets a Reader for a given resource/source access. It provides a Reader handling the Close contract for the access method. Additionally, the mime type is returned.
func GetResourceReader ¶ added in v0.5.0
func GetResourceReader(acc AccessProvider) (io.ReadCloser, error)
GetResourceMimeReader gets a Reader for a given resource/source access. It provides a Reader handling the Close contract for the access method.
func Logger ¶ added in v0.3.0
func Logger(c OCMContextProvider, keyValuePairs ...interface{}) logging.Logger
func ModifyResource ¶ added in v0.4.1
func ModifyResource(flag ...bool) internal.ModOptionImpl
func MustRegisterDigester ¶
func MustRegisterDigester(digester BlobDigester, arttypes ...string)
func NewArtifactAccessForProvider ¶ added in v0.5.0
func NewArtifactAccessForProvider[M any](meta *M, prov AccessProvider) cpi.ArtifactAccess[M]
func NewArtifactAccessProviderForBlobAccessProvider ¶ added in v0.5.0
func NewArtifactAccessProviderForBlobAccessProvider[M any](ctx Context, meta *M, src blobAccessProvider, hint string, global AccessSpec) cpi.ArtifactAccess[M]
func ReferenceHint ¶ added in v0.5.0
func ReferenceHint(spec AccessSpec, cv ComponentVersionAccess) string
func RegisterBlobHandler ¶
func RegisterBlobHandler(handler BlobHandler, opts ...BlobHandlerOption)
func RegisterBlobHandlerRegistrationHandler ¶
func RegisterBlobHandlerRegistrationHandler(path string, handler BlobHandlerRegistrationHandler)
func RegisterRefParseHandler ¶ added in v0.3.0
func RegisterRefParseHandler(ty string, h ParseHandler)
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)
func RepositoryPrefix ¶
func RepositoryPrefix(spec RepositorySpec) string
func ResourceMimeReader ¶ added in v0.3.0
func ResourceMimeReader(s AccessMethodSource) (io.ReadCloser, string, error)
ResourceMimeReader gets a Reader for a given resource/source access. It provides a Reader handling the Close contract for the access method by connecting the access method's Close method to the Readers Close method. Additionally, the mime type is returned. Deprecated: use GetResourceMimeReader. It must be deprecated because of the support of free-floating ReSourceAccess implementations, they not necessarily provide an AccessMethod.
func ResourceReader ¶
func ResourceReader(s AccessMethodSource) (io.ReadCloser, error)
ResourceReader gets a Reader for a given resource/source access. It provides a Reader handling the Close contract for the access method by connecting the access method's Close method to the Readers Close method . Deprecated: use GetResourceReader. It must be deprecated because of the support of free-floating ReSourceAccess implementations, they not necessarily provide an AccessMethod.
func SetDefaultDigester ¶ added in v0.3.0
func SetDefaultDigester(d BlobDigester)
func SkipDigest
deprecated
added in
v0.4.1
func SkipDigest(flag ...bool) internal.ModOptionImpl
SkipDigest disables digest creation if enabled.
Deprecated: for legacy code, only.
func SkipVerify ¶ added in v0.4.1
func SkipVerify(flag ...bool) internal.ModOptionImpl
func UseBlobHandlers ¶ added in v0.5.0
func UseBlobHandlers(h BlobHandlerProvider) internal.BlobOptionImpl
func WithDefaultHashAlgorithm ¶ added in v0.4.1
func WithDefaultHashAlgorithm(algo ...string) internal.ModOptionImpl
func WithHasherProvider ¶ added in v0.4.1
func WithHasherProvider(prov HasherProvider) internal.ModOptionImpl
Types ¶
type AccessMethod ¶
type AccessMethod = internal.AccessMethod
type AccessMethodSource ¶
type AccessMethodSource interface {
AccessMethod() (AccessMethod, error)
}
type AccessProvider ¶ added in v0.5.0
type AccessProvider = internal.AccessProvider
func NewAccessProviderForBlobAccessProvider ¶ added in v0.5.0
func NewAccessProviderForBlobAccessProvider(ctx ocm.Context, prov blobaccess.BlobAccessProvider, hint string, global AccessSpec) AccessProvider
func NewAccessProviderForExternalAccessSpec ¶ added in v0.5.0
func NewAccessProviderForExternalAccessSpec(ctx ocm.Context, spec AccessSpec) (AccessProvider, error)
type AccessSpec ¶
type AccessSpec = internal.AccessSpec
func GlobalAccess ¶ added in v0.5.0
func GlobalAccess(spec AccessSpec, ctx Context) AccessSpec
type AccessSpecDecoder ¶ added in v0.3.0
type AccessSpecDecoder = internal.AccessSpecDecoder
type AccessSpecRef ¶
type AccessSpecRef = internal.AccessSpecRef
func NewAccessSpecRef ¶
func NewAccessSpecRef(spec AccessSpec) *AccessSpecRef
func NewRawAccessSpecRef ¶
func NewRawAccessSpecRef(data []byte, unmarshaler runtime.Unmarshaler) (*AccessSpecRef, error)
type AccessTypeProvider ¶ added in v0.3.0
type AccessTypeProvider = internal.AccessTypeProvider
type AccessTypeScheme ¶ added in v0.3.0
type AccessTypeScheme = internal.AccessTypeScheme
type AddVersionOption ¶ added in v0.5.0
type AddVersionOption = internal.AddVersionOption
func Overwrite ¶ added in v0.5.0
func Overwrite(flag ...bool) AddVersionOption
Overwrite enabled the overwrite mode for adding a component version.
type AddVersionOptions ¶ added in v0.5.0
type AddVersionOptions = internal.AddVersionOptions
func NewAddVersionOptions ¶ added in v0.5.0
func NewAddVersionOptions(list ...AddVersionOption) *AddVersionOptions
type ArtifactAccess ¶ added in v0.5.0
type ArtifactAccess[M any] internal.ArtifactAccess[M]
type BaseAccess
deprecated
added in
v0.3.0
type BaseAccess = ComponentVersionBasedAccessProvider
Deprecated: use ComponentVersionBasedAccessProvider.
type BlobAccess ¶
type BlobAccess = internal.BlobAccess
type BlobDigester ¶
type BlobDigester = internal.BlobDigester
type BlobDigesterRegistry ¶
type BlobDigesterRegistry = internal.BlobDigesterRegistry
func DefaultBlobDigesterRegistry ¶
func DefaultBlobDigesterRegistry() BlobDigesterRegistry
type BlobHandler ¶
type BlobHandler = internal.BlobHandler
type BlobHandlerConfig ¶
type BlobHandlerConfig = internal.BlobHandlerConfig
type BlobHandlerKey ¶ added in v0.3.0
type BlobHandlerKey = internal.BlobHandlerKey
type BlobHandlerOption ¶
type BlobHandlerOption = internal.BlobHandlerOption
func ForArtifactType ¶
func ForArtifactType(arttype string) BlobHandlerOption
func ForMimeType ¶
func ForMimeType(mimetype string) BlobHandlerOption
func ForRepo ¶
func ForRepo(ctxtype, repostype string) BlobHandlerOption
func WithPrio ¶
func WithPrio(p int) BlobHandlerOption
type BlobHandlerOptions ¶
type BlobHandlerOptions = internal.BlobHandlerOptions
func NewBlobHandlerOptions ¶
func NewBlobHandlerOptions(olist ...BlobHandlerOption) *BlobHandlerOptions
type BlobHandlerProvider ¶ added in v0.5.0
type BlobHandlerProvider = internal.BlobHandlerProvider
func DefaultBlobHandlerProvider ¶ added in v0.5.0
func DefaultBlobHandlerProvider(ctx Context) BlobHandlerProvider
type BlobHandlerRegistrationHandler ¶
type BlobHandlerRegistrationHandler = internal.BlobHandlerRegistrationHandler
type BlobHandlerRegistry ¶
type BlobHandlerRegistry = internal.BlobHandlerRegistry
type BlobModificationOption ¶ added in v0.5.0
type BlobModificationOption = internal.BlobModificationOption
type BlobModificationOptions ¶ added in v0.5.0
type BlobModificationOptions = internal.BlobModificationOptions
func NewBlobModificationOptions ¶ added in v0.5.0
func NewBlobModificationOptions(list ...BlobModificationOption) *BlobModificationOptions
type BlobUploadOption ¶ added in v0.5.0
type BlobUploadOption = internal.BlobUploadOption
type BlobUploadOptions ¶ added in v0.5.0
type BlobUploadOptions = internal.BlobUploadOptions
func NewBlobUploadOptions ¶ added in v0.5.0
func NewBlobUploadOptions(list ...BlobUploadOption) *BlobUploadOptions
type ComponentAccess ¶
type ComponentAccess = internal.ComponentAccess
type ComponentLister ¶
type ComponentLister = internal.ComponentLister
type ComponentReference ¶
type ComponentReference = internal.ComponentReference
type ComponentVersionAccess ¶
type ComponentVersionAccess = internal.ComponentVersionAccess
type ComponentVersionBasedAccessProvider ¶ added in v0.5.0
type ComponentVersionBasedAccessProvider struct {
// contains filtered or unexported fields
}
func NewBaseAccess ¶ added in v0.3.0
func NewBaseAccess(cv ComponentVersionAccess, acc compdesc.AccessSpec) *ComponentVersionBasedAccessProvider
func (*ComponentVersionBasedAccessProvider) Access ¶ added in v0.5.0
func (r *ComponentVersionBasedAccessProvider) Access() (AccessSpec, error)
func (*ComponentVersionBasedAccessProvider) AccessMethod ¶ added in v0.5.0
func (r *ComponentVersionBasedAccessProvider) AccessMethod() (AccessMethod, error)
func (*ComponentVersionBasedAccessProvider) BlobAccess ¶ added in v0.5.0
func (r *ComponentVersionBasedAccessProvider) BlobAccess() (BlobAccess, error)
func (*ComponentVersionBasedAccessProvider) GetComponentVersion ¶ added in v0.5.0
func (r *ComponentVersionBasedAccessProvider) GetComponentVersion() (ComponentVersionAccess, error)
func (*ComponentVersionBasedAccessProvider) GetOCMContext ¶ added in v0.5.0
func (r *ComponentVersionBasedAccessProvider) GetOCMContext() Context
func (*ComponentVersionBasedAccessProvider) GlobalAccess ¶ added in v0.5.0
func (r *ComponentVersionBasedAccessProvider) GlobalAccess() AccessSpec
func (*ComponentVersionBasedAccessProvider) ReferenceHint ¶ added in v0.5.0
func (r *ComponentVersionBasedAccessProvider) ReferenceHint() string
type ComponentVersionProvider ¶ added in v0.5.0
type ComponentVersionProvider interface {
GetComponentVersion() (ComponentVersionAccess, error)
}
ComponentVersionProvider should be implemented by Accesses based on component version instances. It is used to determine access type specific information. For example, OCI based access types may provide global OCI artifact references.
type ComponentVersionResolver ¶
type ComponentVersionResolver = internal.ComponentVersionResolver
type Context ¶
func FromProvider ¶ added in v0.3.0
func FromProvider(p ContextProvider) Context
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
func WrapContextProvider ¶ added in v0.3.0
func WrapContextProvider(ctx LocalContextProvider) ContextProvider
type DataAccess ¶
type DataAccess = internal.DataAccess
type DefaultStorageContext ¶
type DefaultStorageContext struct { ComponentRepository Repository ComponentName string ImplementationRepositoryType ImplementationRepositoryType }
func NewDefaultStorageContext ¶
func NewDefaultStorageContext(repo Repository, compname string, reptype ImplementationRepositoryType) *DefaultStorageContext
func (*DefaultStorageContext) GetContext ¶
func (c *DefaultStorageContext) GetContext() Context
func (*DefaultStorageContext) GetImplementationRepositoryType ¶
func (c *DefaultStorageContext) GetImplementationRepositoryType() ImplementationRepositoryType
func (*DefaultStorageContext) TargetComponentName ¶ added in v0.5.0
func (c *DefaultStorageContext) TargetComponentName() string
func (*DefaultStorageContext) TargetComponentRepository ¶
func (c *DefaultStorageContext) TargetComponentRepository() Repository
type DigestDescriptor ¶
type DigestDescriptor = internal.DigestDescriptor
func NewDigestDescriptor ¶
func NewDigestDescriptor(digest string, typ DigesterType) *DigestDescriptor
type DigesterType ¶
type DigesterType = internal.DigesterType
type DummyComponentVersionAccess ¶
type DummyComponentVersionAccess struct {
Context Context
}
func (*DummyComponentVersionAccess) AccessMethod ¶
func (d *DummyComponentVersionAccess) AccessMethod(spec AccessSpec) (AccessMethod, error)
func (*DummyComponentVersionAccess) AddBlob ¶
func (d *DummyComponentVersionAccess) AddBlob(blob BlobAccess, arttype, refName string, global AccessSpec, opts ...BlobUploadOption) (AccessSpec, error)
func (*DummyComponentVersionAccess) AdjustResourceAccess ¶
func (d *DummyComponentVersionAccess) AdjustResourceAccess(meta *internal.ResourceMeta, acc compdesc.AccessSpec, opts ...ModificationOption) error
func (*DummyComponentVersionAccess) AdjustSourceAccess ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) AdjustSourceAccess(meta *internal.SourceMeta, acc compdesc.AccessSpec) error
func (*DummyComponentVersionAccess) Close ¶
func (d *DummyComponentVersionAccess) Close() error
func (*DummyComponentVersionAccess) DiscardChanges ¶
func (d *DummyComponentVersionAccess) DiscardChanges()
func (*DummyComponentVersionAccess) Dup ¶
func (d *DummyComponentVersionAccess) Dup() (ComponentVersionAccess, error)
func (*DummyComponentVersionAccess) GetContext ¶
func (d *DummyComponentVersionAccess) GetContext() Context
func (*DummyComponentVersionAccess) GetDescriptor ¶
func (d *DummyComponentVersionAccess) GetDescriptor() *compdesc.ComponentDescriptor
func (*DummyComponentVersionAccess) GetInexpensiveContentVersionIdentity ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) GetInexpensiveContentVersionIdentity(spec AccessSpec) string
func (*DummyComponentVersionAccess) GetName ¶
func (d *DummyComponentVersionAccess) GetName() string
func (*DummyComponentVersionAccess) GetProvider ¶ added in v0.5.0
func (d *DummyComponentVersionAccess) GetProvider() *compdesc.Provider
func (*DummyComponentVersionAccess) GetReference ¶
func (d *DummyComponentVersionAccess) GetReference(meta metav1.Identity) (ComponentReference, error)
func (*DummyComponentVersionAccess) GetReferenceByIndex ¶
func (d *DummyComponentVersionAccess) GetReferenceByIndex(i int) (ComponentReference, error)
func (*DummyComponentVersionAccess) GetReferenceIndex ¶ added in v0.4.1
func (d *DummyComponentVersionAccess) GetReferenceIndex(metav1.Identity) int
func (*DummyComponentVersionAccess) GetReferencesByIdentitySelectors ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) GetReferencesByIdentitySelectors(selectors ...compdesc.IdentitySelector) (compdesc.References, error)
func (*DummyComponentVersionAccess) GetReferencesByName ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) GetReferencesByName(name string, selectors ...compdesc.IdentitySelector) (compdesc.References, error)
func (*DummyComponentVersionAccess) GetReferencesByReferenceSelectors ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) GetReferencesByReferenceSelectors(selectors ...compdesc.ReferenceSelector) (compdesc.References, error)
func (*DummyComponentVersionAccess) GetResource ¶
func (d *DummyComponentVersionAccess) GetResource(id metav1.Identity) (ResourceAccess, error)
func (*DummyComponentVersionAccess) GetResourceByIndex ¶
func (d *DummyComponentVersionAccess) GetResourceByIndex(i int) (ResourceAccess, error)
func (*DummyComponentVersionAccess) GetResourceIndex ¶ added in v0.4.1
func (d *DummyComponentVersionAccess) GetResourceIndex(metav1.Identity) int
func (*DummyComponentVersionAccess) GetResources ¶
func (d *DummyComponentVersionAccess) GetResources() []ResourceAccess
func (*DummyComponentVersionAccess) GetResourcesByIdentitySelectors ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) GetResourcesByIdentitySelectors(selectors ...compdesc.IdentitySelector) ([]internal.ResourceAccess, error)
func (*DummyComponentVersionAccess) GetResourcesByName ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) GetResourcesByName(name string, selectors ...compdesc.IdentitySelector) ([]ResourceAccess, error)
func (*DummyComponentVersionAccess) GetResourcesByResourceSelectors ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) GetResourcesByResourceSelectors(selectors ...compdesc.ResourceSelector) ([]internal.ResourceAccess, error)
func (*DummyComponentVersionAccess) GetSource ¶
func (d *DummyComponentVersionAccess) GetSource(id metav1.Identity) (SourceAccess, error)
func (*DummyComponentVersionAccess) GetSourceByIndex ¶
func (d *DummyComponentVersionAccess) GetSourceByIndex(i int) (SourceAccess, error)
func (*DummyComponentVersionAccess) GetSourceIndex ¶ added in v0.4.1
func (d *DummyComponentVersionAccess) GetSourceIndex(metav1.Identity) int
func (*DummyComponentVersionAccess) GetSources ¶
func (d *DummyComponentVersionAccess) GetSources() []SourceAccess
func (*DummyComponentVersionAccess) GetVersion ¶
func (d *DummyComponentVersionAccess) GetVersion() string
func (*DummyComponentVersionAccess) IsClosed ¶ added in v0.3.0
func (d *DummyComponentVersionAccess) IsClosed() bool
func (*DummyComponentVersionAccess) IsPersistent ¶ added in v0.4.1
func (d *DummyComponentVersionAccess) IsPersistent() bool
func (*DummyComponentVersionAccess) Repository ¶
func (c *DummyComponentVersionAccess) Repository() Repository
func (*DummyComponentVersionAccess) SetProvider ¶ added in v0.5.0
func (d *DummyComponentVersionAccess) SetProvider(p *compdesc.Provider) error
func (*DummyComponentVersionAccess) SetReference ¶
func (d *DummyComponentVersionAccess) SetReference(ref *ComponentReference) error
func (*DummyComponentVersionAccess) SetResource ¶
func (d *DummyComponentVersionAccess) SetResource(meta *ResourceMeta, spec compdesc.AccessSpec, opts ...ModificationOption) error
func (*DummyComponentVersionAccess) SetResourceAccess ¶ added in v0.5.0
func (d *DummyComponentVersionAccess) SetResourceAccess(art ResourceAccess, modopts ...BlobModificationOption) error
func (*DummyComponentVersionAccess) SetResourceBlob ¶
func (d *DummyComponentVersionAccess) SetResourceBlob(meta *ResourceMeta, blob BlobAccess, refname string, global AccessSpec, opts ...BlobModificationOption) error
func (*DummyComponentVersionAccess) SetSource ¶
func (d *DummyComponentVersionAccess) SetSource(meta *SourceMeta, spec compdesc.AccessSpec) error
func (*DummyComponentVersionAccess) SetSourceBlob ¶
func (d *DummyComponentVersionAccess) SetSourceBlob(meta *SourceMeta, blob BlobAccess, refname string, global AccessSpec) error
func (*DummyComponentVersionAccess) SetSourceByAccess ¶ added in v0.5.0
func (d *DummyComponentVersionAccess) SetSourceByAccess(art SourceAccess) error
func (*DummyComponentVersionAccess) Update ¶ added in v0.5.0
func (d *DummyComponentVersionAccess) Update() error
func (*DummyComponentVersionAccess) UseDirectAccess ¶ added in v0.5.0
func (d *DummyComponentVersionAccess) UseDirectAccess() bool
type GenericAccessSpec ¶
type GenericAccessSpec = internal.GenericAccessSpec
func ToGenericAccessSpec ¶ added in v0.4.1
func ToGenericAccessSpec(spec AccessSpec) (*GenericAccessSpec, error)
type GenericRepositorySpec ¶
type GenericRepositorySpec = internal.GenericRepositorySpec
func ToGenericRepositorySpec ¶
func ToGenericRepositorySpec(spec RepositorySpec) (*GenericRepositorySpec, error)
type GlobalAccessProvider ¶ added in v0.5.0
type GlobalAccessProvider internal.GlobalAccessProvider
GlobalAccessProvider is able to provide a non-local access specification.
type HasherProvider ¶ added in v0.4.1
type HasherProvider = internal.HasherProvider
type HintProvider ¶
type HintProvider internal.HintProvider
HintProvider is able to provide a name hint for globalization of local artifacts.
type ImplementationRepositoryType ¶
type ImplementationRepositoryType = internal.ImplementationRepositoryType
type IntermediateRepositorySpecAspect ¶
type IntermediateRepositorySpecAspect = internal.IntermediateRepositorySpecAspect
type LocalContextProvider ¶ added in v0.3.0
type LocalContextProvider = internal.LocalContextProvider
type ModificationOption ¶ added in v0.4.1
type ModificationOption = internal.ModificationOption
type ModificationOptions ¶ added in v0.4.1
type ModificationOptions = internal.ModificationOptions
func NewModificationOptions ¶ added in v0.4.1
func NewModificationOptions(list ...ModificationOption) *ModificationOptions
type OCMContextProvider ¶ added in v0.3.0
type OCMContextProvider interface {
GetContext() Context
}
type ParseHandler ¶ added in v0.3.0
type ParseHandler func(u *UniformRepositorySpec) error
type PrefixProvider ¶
type PrefixProvider interface {
PathPrefix() string
}
PrefixProvider is supported by RepositorySpecs to provide info about a potential path prefix to use for globalized local artifacts.
type Repository ¶
type Repository = internal.Repository
type RepositoryAccessMethodChecker ¶
type RepositoryAccessMethodChecker func(Context, compdesc.AccessSpec) bool
type RepositoryDelegationRegistry ¶ added in v0.3.0
type RepositoryDelegationRegistry = internal.RepositoryDelegationRegistry
func DefaultDelegationRegistry ¶ added in v0.3.0
func DefaultDelegationRegistry() RepositoryDelegationRegistry
type RepositoryPriorityDecoder ¶ added in v0.3.0
type RepositoryPriorityDecoder = internal.PriorityDecoder[Context, RepositorySpec]
type RepositorySpec ¶
type RepositorySpec = internal.RepositorySpec
type RepositorySpecDecoder ¶ added in v0.3.0
type RepositorySpecDecoder = internal.RepositorySpecDecoder
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, checker RepositoryAccessMethodChecker) RepositoryType
func NewRepositoryTypeByConverter ¶ added in v0.3.0
func NewRepositoryTypeByConverter[I RepositorySpec, V runtime.VersionedTypedObject](name string, converter runtime.Converter[I, V], checker RepositoryAccessMethodChecker) RepositoryType
func NewRepositoryTypeByFormatVersion ¶ added in v0.3.0
func NewRepositoryTypeByFormatVersion(name string, fmt runtime.FormatVersion[RepositorySpec], checker RepositoryAccessMethodChecker) RepositoryType
type RepositoryTypeProvider ¶ added in v0.3.0
type RepositoryTypeProvider = internal.RepositoryTypeProvider
type RepositoryTypeScheme ¶
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 ResourceAccess ¶
type ResourceAccess = internal.ResourceAccess
func NewResourceAccess ¶ added in v0.5.0
func NewResourceAccess(componentVersion ComponentVersionAccess, accessSpec compdesc.AccessSpec, meta ResourceMeta) ResourceAccess
func NewResourceAccessForProvider ¶ added in v0.5.0
func NewResourceAccessForProvider(meta *ResourceMeta, prov AccessProvider) ResourceAccess
type ResourceMeta ¶
type ResourceMeta = internal.ResourceMeta
func NewResourceMeta ¶ added in v0.4.1
func NewResourceMeta(name string, typ string, relation metav1.ResourceRelation) *ResourceMeta
type SourceAccess ¶
type SourceAccess = internal.SourceAccess
func NewSourceAccess ¶ added in v0.5.0
func NewSourceAccess(componentVersion ComponentVersionAccess, accessSpec compdesc.AccessSpec, meta SourceMeta) SourceAccess
func NewSourceAccessForProvider ¶ added in v0.5.0
func NewSourceAccessForProvider(meta *SourceMeta, prov AccessProvider) SourceAccess
type SourceMeta ¶
type SourceMeta = internal.SourceMeta
type StorageContext ¶
type StorageContext = internal.StorageContext
type UniformRepositorySpec ¶
type UniformRepositorySpec = internal.UniformRepositorySpec
func HandleRef ¶ added in v0.3.0
func HandleRef(u UniformRepositorySpec) (UniformRepositorySpec, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package repocpi contains the implementation support for repository backends.
|
Package repocpi contains the implementation support for repository backends. |