images

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.0.7

func Clone(baseRef string, dest string, session authn.Authenticator) (string, error)

func EnsureRegistry added in v0.0.7

func EnsureRegistry(baseRef string) string

func Extract

func Extract(baseRef string, dest string, session authn.Authenticator) error

func GetSchema added in v0.0.10

func GetSchema(predictorToParse string) (string, error)

func GetSourceLayers added in v0.0.7

func GetSourceLayers(base v1.Image, cog bool, yolo bool) ([]v1.Layer, error)

returns /src layers created by yolo and/or cog, oldest layers first

func ImageId added in v0.0.7

func ImageId(baseRef string, img v1.Image) (string, error)

func MakeTar added in v0.0.7

func MakeTar(files []LayerFile, layers []v1.Layer) (*bytes.Buffer, error)

func Yolo added in v0.0.7

func Yolo(baseRef string, dest string, files []LayerFile, schema string, commit string, env []string, session authn.Authenticator) (string, error)

Types

type LayerFile added in v0.0.7

type LayerFile struct {
	Header *tar.Header
	Body   []byte
}

Jump to

Keyboard shortcuts

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