accspeccpi

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 Context

type Context = internal.Context

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL