oci

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTag = "latest"

Functions

func BuildImage

func BuildImage(ctx context.Context, goBinPath string, base v1.Image, options ...BuildOption) (v1.Image, error)

func Get

Get returns the descriptor for the provided image reference.

func Push

func Push(ctx context.Context, repo name.Repository, img remote.Taggable, options ...PushOption) error

Push writes img to the remote repo. The provided img must be either a v1.Image or v1.ImageIndex.

func PushDaemon

func PushDaemon(ctx context.Context, imgName string, img v1.Image, options ...PushOption) error

PushDaemon writes the provided image to the local Docker daemon.

Types

type BuildOption

type BuildOption func(*buildOptions)

func WithCompressionLevel

func WithCompressionLevel(v int) BuildOption

func WithLabels

func WithLabels(v map[string]string) BuildOption

type PushOption

type PushOption func(*pushOptions)

func WithLogger

func WithLogger(v types.Logger) PushOption

func WithTags

func WithTags(v []string) PushOption

Jump to

Keyboard shortcuts

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