ociartifact

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobAccess

func BlobAccess(refname string, opts ...Option) (bpi.BlobAccess, string, error)

func Provider

func Provider(name string, opts ...Option) bpi.BlobAccessProvider

Types

type Filter

type Filter = filters.Filter

type Option

type Option = optionutils.Option[*Options]

func WithContext

func WithContext(ctx oci.ContextProvider) Option

func WithFilter

func WithFilter(f filters.Filter) Option

func WithPrinter

func WithPrinter(p common.Printer) Option

func WithVersion

func WithVersion(v string) Option

type Options

type Options struct {
	Context oci.Context
	Version string
	Filter  Filter
	Printer common.Printer
}

func (*Options) ApplyTo

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

func (*Options) GetPrinter

func (o *Options) GetPrinter() common.Printer

func (*Options) OCIContext

func (o *Options) OCIContext() oci.Context

func (*Options) Printf

func (o *Options) Printf(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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