build

package
v0.0.0-...-44c0c19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConfig

func BuildConfig(ctx context.Context, store storage.Storage, repo string) (ocispec.Descriptor, error)

BuildConfig builds the image config and push it to the storage.

func BuildLayer

func BuildLayer(ctx context.Context, store storage.Storage, repo, path, workDir string) (ocispec.Descriptor, error)

BuildLayer converts the file to the image blob and push it to the storage.

func BuildManifest

func BuildManifest(ctx context.Context, store storage.Storage, repo, reference string, layers []ocispec.Descriptor, config ocispec.Descriptor, annotations map[string]string) (ocispec.Descriptor, error)

BuildManifest builds the manifest and push it to the storage.

Types

type ModelConfig

type ModelConfig struct {
	// Created is the time when the model image is created.
	Created string `json:"Created"`
}

ModelConfig is a configuration that corresponds to the image config in the image spec.

Jump to

Keyboard shortcuts

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