fileblob

package
v0.18.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COMPRESSION   = compressionMode("compression")
	DECOMPRESSION = compressionMode("decompression")
	NONE          = compressionMode("")
)
View Source
const TYPE = "blob"

Variables

This section is empty.

Functions

func Access

func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, media string, meta P, path string, opts ...Option) cpi.ArtifactAccess[M]

func ResourceAccess

func ResourceAccess(ctx ocm.Context, media string, meta *ocm.ResourceMeta, path string, opts ...Option) cpi.ResourceAccess

func SourceAccess

func SourceAccess(ctx ocm.Context, media string, meta *ocm.SourceMeta, path string, opts ...Option) cpi.SourceAccess

Types

type Option

type Option = optionutils.Option[*Options]

func WithCompression

func WithCompression() Option

func WithDecompression

func WithDecompression() Option

func WithFileSystem

func WithFileSystem(fs vfs.FileSystem) Option

func WithGlobalAccess

func WithGlobalAccess(a cpi.AccessSpec) Option

func WithHint

func WithHint(h string) Option

type Options

type Options struct {
	api.Options
	FileSystem  vfs.FileSystem
	Compression compressionMode
}

func (*Options) Apply

func (o *Options) Apply(opts ...Option)

func (*Options) ApplyTo

func (o *Options) ApplyTo(opts *Options)

Jump to

Keyboard shortcuts

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