Documentation ¶
Index ¶
- func BlobAccessForAccessMethod(m AccessMethod) (blobaccess.AnnotatedBlobAccess[AccessMethodView], error)
- func BlobAccessForAccessSpec(spec AccessSpec, cv ComponentVersionAccess) (blobaccess.BlobAccess, error)
- func GetAccessMethodImplementation(m AccessMethod) interface{}
- func MustNewAccessSpecMultiFormatVersion(kind string, formats AccessSpecFormatVersionRegistry) runtime.FormatVersion[AccessSpec]
- func RegisterAccessType(atype AccessType)
- func RegisterAccessTypeVersions(s AccessTypeVersionScheme)
- type AccessMethod
- func AccessMethodForImplementation(acc AccessMethodImpl, err error) (AccessMethod, error)
- func NewDefaultMethod(c ComponentVersionAccess, a AccessSpec, digest digest.Digest, mime string, ...) AccessMethod
- func NewDefaultMethodForBlobAccess(c ComponentVersionAccess, a AccessSpec, digest digest.Digest, ...) (AccessMethod, error)
- type AccessMethodImpl
- type AccessMethodView
- type AccessSpec
- type AccessSpecFormatVersionRegistry
- type AccessSpecRef
- type AccessSpecTypeOption
- type AccessType
- func NewAccessSpecType[I AccessSpec](name string, opts ...AccessSpecTypeOption) AccessType
- func NewAccessSpecTypeByConverter[I AccessSpec, V runtime.VersionedTypedObject](name string, converter runtime.Converter[I, V], opts ...AccessSpecTypeOption) AccessType
- func NewAccessSpecTypeByFormatVersion(name string, fmt runtime.FormatVersion[AccessSpec], ...) AccessType
- type AccessTypeVersionScheme
- type BlobAccessFactory
- type ComponentVersionAccess
- type Context
- type ContextProvider
- type CosumerIdentityProvider
- type DefaultAccessMethodImpl
- func (m *DefaultAccessMethodImpl) AccessSpec() AccessSpec
- func (m *DefaultAccessMethodImpl) Close() error
- func (m *DefaultAccessMethodImpl) Digest() digest.Digest
- func (m *DefaultAccessMethodImpl) Get() ([]byte, error)
- func (m *DefaultAccessMethodImpl) GetKind() string
- func (m *DefaultAccessMethodImpl) IsLocal() bool
- func (m *DefaultAccessMethodImpl) MimeType() string
- func (m *DefaultAccessMethodImpl) Reader() (io.ReadCloser, error)
- type DigestSource
- type DigestSpecProvider
- type GlobalAccessProvider
- type HintProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlobAccessForAccessMethod ¶
func BlobAccessForAccessMethod(m AccessMethod) (blobaccess.AnnotatedBlobAccess[AccessMethodView], error)
func BlobAccessForAccessSpec ¶
func BlobAccessForAccessSpec(spec AccessSpec, cv ComponentVersionAccess) (blobaccess.BlobAccess, error)
BlobAccessForAccessSpec provide a blob access for an access specification.
func GetAccessMethodImplementation ¶
func GetAccessMethodImplementation(m AccessMethod) interface{}
func MustNewAccessSpecMultiFormatVersion ¶
func MustNewAccessSpecMultiFormatVersion(kind string, formats AccessSpecFormatVersionRegistry) runtime.FormatVersion[AccessSpec]
func RegisterAccessType ¶
func RegisterAccessType(atype AccessType)
func RegisterAccessTypeVersions ¶
func RegisterAccessTypeVersions(s AccessTypeVersionScheme)
Types ¶
type AccessMethod ¶
type AccessMethod = internal.AccessMethod
func AccessMethodForImplementation ¶
func AccessMethodForImplementation(acc AccessMethodImpl, err error) (AccessMethod, error)
AccessMethodForImplementation wrap an access method implementation object into a published multi-view AccessMethod object. The original method implementation is closed when the last view is closed.
func NewDefaultMethod ¶
func NewDefaultMethod(c ComponentVersionAccess, a AccessSpec, digest digest.Digest, mime string, fac BlobAccessFactory, local ...bool) AccessMethod
func NewDefaultMethodForBlobAccess ¶
func NewDefaultMethodForBlobAccess(c ComponentVersionAccess, a AccessSpec, digest digest.Digest, blob blobaccess.BlobAccess, local ...bool) (AccessMethod, error)
type AccessMethodImpl ¶
type AccessMethodImpl = internal.AccessMethodImpl
func NewDefaultMethodImpl ¶
func NewDefaultMethodImpl(c ComponentVersionAccess, a AccessSpec, digest digest.Digest, mime string, fac BlobAccessFactory, local ...bool) AccessMethodImpl
func NewDefaultMethodImplForBlobAccess ¶
func NewDefaultMethodImplForBlobAccess(c ComponentVersionAccess, a AccessSpec, digest digest.Digest, blob blobaccess.BlobAccess, local ...bool) (AccessMethodImpl, error)
type AccessMethodView ¶
type AccessMethodView interface { utils.Unwrappable AccessMethod }
AccessMethodView provides access to the implementation object behind an access method.
type AccessSpec ¶
type AccessSpec = internal.AccessSpec
type AccessSpecFormatVersionRegistry ¶
type AccessSpecFormatVersionRegistry = runtime.FormatVersionRegistry[AccessSpec]
func NewAccessSpecFormatVersionRegistry ¶
func NewAccessSpecFormatVersionRegistry() AccessSpecFormatVersionRegistry
type AccessSpecRef ¶
type AccessSpecRef = internal.AccessSpecRef
func NewAccessSpecRef ¶
func NewAccessSpecRef(spec AccessSpec) *AccessSpecRef
type AccessSpecTypeOption ¶
type AccessSpecTypeOption = flagsetscheme.TypeOption
func WithConfigHandler ¶
func WithConfigHandler(value flagsets.ConfigOptionTypeSetHandler) AccessSpecTypeOption
func WithDescription ¶
func WithDescription(value string) AccessSpecTypeOption
func WithFormatSpec ¶
func WithFormatSpec(value string) AccessSpecTypeOption
type AccessType ¶
type AccessType = internal.AccessType
func NewAccessSpecType ¶
func NewAccessSpecType[I AccessSpec](name string, opts ...AccessSpecTypeOption) AccessType
func NewAccessSpecTypeByConverter ¶
func NewAccessSpecTypeByConverter[I AccessSpec, V runtime.VersionedTypedObject](name string, converter runtime.Converter[I, V], opts ...AccessSpecTypeOption) AccessType
func NewAccessSpecTypeByFormatVersion ¶
func NewAccessSpecTypeByFormatVersion(name string, fmt runtime.FormatVersion[AccessSpec], opts ...AccessSpecTypeOption) AccessType
type AccessTypeVersionScheme ¶
type AccessTypeVersionScheme = runtime.TypeVersionScheme[AccessSpec, AccessType]
func NewAccessTypeVersionScheme ¶
func NewAccessTypeVersionScheme(kind string) AccessTypeVersionScheme
type BlobAccessFactory ¶
type BlobAccessFactory func() (blobaccess.BlobAccess, error)
type ComponentVersionAccess ¶
type ComponentVersionAccess = internal.ComponentVersionAccess
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
type CosumerIdentityProvider ¶
type CosumerIdentityProvider = credentials.ConsumerIdentityProvider
type DefaultAccessMethodImpl ¶
type DefaultAccessMethodImpl struct {
// contains filtered or unexported fields
}
func (*DefaultAccessMethodImpl) AccessSpec ¶
func (m *DefaultAccessMethodImpl) AccessSpec() AccessSpec
func (*DefaultAccessMethodImpl) Close ¶
func (m *DefaultAccessMethodImpl) Close() error
func (*DefaultAccessMethodImpl) Digest ¶
func (m *DefaultAccessMethodImpl) Digest() digest.Digest
func (*DefaultAccessMethodImpl) Get ¶
func (m *DefaultAccessMethodImpl) Get() ([]byte, error)
func (*DefaultAccessMethodImpl) GetKind ¶
func (m *DefaultAccessMethodImpl) GetKind() string
func (*DefaultAccessMethodImpl) IsLocal ¶
func (m *DefaultAccessMethodImpl) IsLocal() bool
func (*DefaultAccessMethodImpl) MimeType ¶
func (m *DefaultAccessMethodImpl) MimeType() string
func (*DefaultAccessMethodImpl) Reader ¶
func (m *DefaultAccessMethodImpl) Reader() (io.ReadCloser, error)
type DigestSource ¶
type DigestSource interface {
GetDigest() (digest.Digest, error)
}
type DigestSpecProvider ¶ added in v0.15.0
type DigestSpecProvider = internal.DigestSpecProvider
type GlobalAccessProvider ¶
type GlobalAccessProvider = internal.GlobalAccessProvider
type HintProvider ¶
type HintProvider = internal.HintProvider
Click to show internal directories.
Click to hide internal directories.