Documentation ¶
Index ¶
- func BlobAccess(cvp ComponentVersionProvider, res ResourceProvider) (blob bpi.BlobAccess, rerr error)
- func DataAccess(cvp ComponentVersionProvider, res ResourceProvider) (bpi.DataAccess, error)
- func Provider(cvp ComponentVersionProvider, res ResourceProvider) bpi.BlobAccessProvider
- type ComponentVersionProvider
- func ByComponentVersion(cv cpi.ComponentVersionAccess) ComponentVersionProvider
- func ByRepositorySpecAndName(ctx cpi.ContextProvider, spec cpi.RepositorySpec, comp, vers string) ComponentVersionProvider
- func ByResolverAndName(resolver cpi.ComponentVersionResolver, comp, vers string) ComponentVersionProvider
- type ResourceProvider
- func ByResourceId(id metav1.Identity) ResourceProvider
- func ByResourcePath(id metav1.Identity, path ...metav1.Identity) ResourceProvider
- func ByResourceRef(ref metav1.ResourceReference, res ...cpi.ComponentVersionResolver) ResourceProvider
- func ByResourceSelector(sel ...rscsel.Selector) ResourceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlobAccess ¶
func BlobAccess(cvp ComponentVersionProvider, res ResourceProvider) (blob bpi.BlobAccess, rerr error)
func DataAccess ¶
func DataAccess(cvp ComponentVersionProvider, res ResourceProvider) (bpi.DataAccess, error)
func Provider ¶
func Provider(cvp ComponentVersionProvider, res ResourceProvider) bpi.BlobAccessProvider
Types ¶
type ComponentVersionProvider ¶
type ComponentVersionProvider interface {
GetComponentVersionAccess() (cpi.ComponentVersionAccess, error)
}
ComponentVersionProvider is a factory for component versions. Every call provides a separately closeable component versuion access. An implementation should not hold private views of objects, The life cycle of all those objects should be left to the creator of ComponentVersionProvider implementation. Therefore, it does not have a close method.
func ByComponentVersion ¶
func ByComponentVersion(cv cpi.ComponentVersionAccess) ComponentVersionProvider
func ByRepositorySpecAndName ¶
func ByRepositorySpecAndName(ctx cpi.ContextProvider, spec cpi.RepositorySpec, comp, vers string) ComponentVersionProvider
func ByResolverAndName ¶
func ByResolverAndName(resolver cpi.ComponentVersionResolver, comp, vers string) ComponentVersionProvider
type ResourceProvider ¶
type ResourceProvider interface {
GetResource(cv cpi.ComponentVersionAccess) (cpi.ResourceAccess, cpi.ComponentVersionAccess, error)
}
ResourceProvider selects a resource from a component version. It should not hold any separately closeabvle view on an object. The lifecycle of those objects should be left to the creator of the implementation of this interface.
func ByResourceId ¶
func ByResourceId(id metav1.Identity) ResourceProvider
func ByResourcePath ¶
func ByResourcePath(id metav1.Identity, path ...metav1.Identity) ResourceProvider
func ByResourceRef ¶
func ByResourceRef(ref metav1.ResourceReference, res ...cpi.ComponentVersionResolver) ResourceProvider
func ByResourceSelector ¶
func ByResourceSelector(sel ...rscsel.Selector) ResourceProvider
Click to show internal directories.
Click to hide internal directories.