github

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Access

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

func ResourceAccess

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

func SourceAccess

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

Types

type Option

type Option = optionutils.Option[*Options]

func WithMediaType

func WithMediaType(h string) Option

func WithRegion

func WithRegion(h string) Option

func WithVersion

func WithVersion(h string) Option

type Options

type Options struct {
	Region    string
	Version   string
	MediaType string
}

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