dockerdaemon

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobAccess added in v0.12.0

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

BlobAccess returns a BlobAccess for the image with the given name.

func BlobAccessForImageFromDockerDaemon

func BlobAccessForImageFromDockerDaemon(name string, opts ...Option) (bpi.BlobAccess, string, error)

BlobAccessForImageFromDockerDaemon returns a BlobAccess for the image with the given name. Decrecated: use BlobAccess.

func BlobAccessProviderForImageFromDockerDaemon

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

BlobAccessProviderForImageFromDockerDaemon returns a BlobAccessProvider for the image with the given name. Deprecated: use Provider.

func ImageInfoFor

func ImageInfoFor(name string, opts ...Option) (locator string, version string, err error)

func Provider added in v0.12.0

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

Types

type Option

type Option = optionutils.Option[*Options]

func WithContext

func WithContext(ctx cpi.ContextProvider) Option

func WithName

func WithName(n string) Option

func WithOrigin

func WithOrigin(o common.NameVersion) Option

func WithVersion

func WithVersion(v string) Option

func WithVersionOverride

func WithVersionOverride(v string, flag ...bool) Option

type Options

type Options struct {
	Context         cpi.Context
	Name            string
	Version         string
	OverrideVersion *bool
	Origin          *common.NameVersion
}

func (*Options) ApplyTo

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

func (*Options) OCIContext

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

Jump to

Keyboard shortcuts

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