file

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareBlobContent

func PrepareBlobContent(path string, mediaType string, dgstStr string, size int64) (desc ocispec.Descriptor, rc io.ReadCloser, prepareErr error)

PrepareBlobContent prepares the content descriptor for blob from the file path or stdin. Use the input digest and size if they are provided. Will return error if the content is from stdin but the content digest and size are missing.

func PrepareManifestContent

func PrepareManifestContent(path string) ([]byte, error)

PrepareManifestContent prepares the content for manifest from the file path or stdin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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