Documentation ¶
Index ¶
- func BuildConfig(ctx context.Context, store storage.Storage, repo string) (ocispec.Descriptor, error)
- func BuildLayer(ctx context.Context, store storage.Storage, repo, path, workDir string) (ocispec.Descriptor, error)
- func BuildManifest(ctx context.Context, store storage.Storage, repo, reference string, ...) (ocispec.Descriptor, error)
- type ModelConfig
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.
Click to show internal directories.
Click to hide internal directories.