externalblob

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Overview

Package ociartifact provides a way to provide ResourceAccess and SourceAccess objects based on external access specification intended to be added as local access. Those access objects can then directly be used to compose reource and source entries in a component version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access

func Access[M any, P compdesc.ArtifactMetaPointer[M]](ctx ocm.Context, meta P, access ocm.AccessSpec, opts ...Option) (cpi.ArtifactAccess[M], error)

func ResourceAccess

func ResourceAccess(ctx ocm.Context, meta *cpi.ResourceMeta, access cpi.AccessSpec, opts ...Option) (cpi.ResourceAccess, error)

func SourceAccess

func SourceAccess(ctx ocm.Context, meta *cpi.SourceMeta, access cpi.AccessSpec, opts ...Option) (cpi.SourceAccess, error)

Types

type Option

type Option = api.Option

func WithGlobalAccess

func WithGlobalAccess(a cpi.AccessSpec) Option

func WithHint

func WithHint(h string) Option

type Options

type Options = api.Options

Jump to

Keyboard shortcuts

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