Documentation ¶
Index ¶
- Constants
- func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, blob []byte, opts ...Option) cpi.ArtifactAccess[M]
- func ResourceAccess(ctx ocm.Context, media string, meta *ocm.ResourceMeta, blob []byte, ...) cpi.ResourceAccess
- func SourceAccess(ctx ocm.Context, media string, meta *ocm.SourceMeta, blob []byte, ...) cpi.SourceAccess
- type Option
- type Options
Constants ¶
View Source
const ( COMPRESSION = compressionMode("compression") DECOMPRESSION = compressionMode("decompression") NONE = compressionMode("") )
Variables ¶
This section is empty.
Functions ¶
func Access ¶
func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, blob []byte, opts ...Option) cpi.ArtifactAccess[M]
func ResourceAccess ¶
func ResourceAccess(ctx ocm.Context, media string, meta *ocm.ResourceMeta, blob []byte, opts ...Option) cpi.ResourceAccess
func SourceAccess ¶
func SourceAccess(ctx ocm.Context, media string, meta *ocm.SourceMeta, blob []byte, opts ...Option) cpi.SourceAccess
Types ¶
type Option ¶
type Option = optionutils.Option[*Options]
func WithCompression ¶
func WithCompression() Option
func WithDecompression ¶
func WithDecompression() Option
func WithGlobalAccess ¶
func WithGlobalAccess(a cpi.AccessSpec) Option
func WithMimeType ¶
Click to show internal directories.
Click to hide internal directories.