Documentation ¶
Index ¶
- Variables
- func AuthToOCIRegistry(repo *remote.Repository, registryURI, username, password string) error
- func BuildImage(sourcePath string, opts ...BuildOption) (gcrv1.Image, error)
- func CreateTempOCIContentDir() (tempDir string, err error)
- func ErrAddLayer(err error) error
- func ErrAppendingLayer(err error) error
- func ErrAuthenticatingToRegistry(err error) error
- func ErrCompressingLayer(err error) error
- func ErrConnectingToRegistry(err error) error
- func ErrCreateLayer(err error) error
- func ErrFileNotFound(err error, filePath string) error
- func ErrGettingImage(err error) error
- func ErrGettingLayer(err error) error
- func ErrPushingPackage(err error) error
- func ErrReadingFile(err error) error
- func ErrSavingImage(err error) error
- func ErrSeekFailed(err error) error
- func ErrTaggingPackage(err error) error
- func ErrUnSupportedLayerType(err error) error
- func ErrUnTaringLayer(err error) error
- func ErrValidatingImage(err error) error
- func ErrWriteFile(err error) error
- func ExtractAndValidateManifest(data []byte) error
- func IsOCIArtifact(data []byte) bool
- func PullFromOCIRegistry(dirPath, registryAdd, repositoryAdd, imageTag, username, password string) error
- func PushToOCIRegistry(dirPath, registryAdd, repositoryAdd, imageTag, username, password string) error
- func SaveOCIArtifact(img gcrv1.Image, artifactPath, name string) error
- func UnCompressOCIArtifact(source, destination string) error
- func ValidateOCIArtifact(tarballPath string) error
- type BuildOption
- type BuildOptions
- type LayerType
Constants ¶
This section is empty.
Variables ¶
var ( ErrAppendingLayerCode = "meshkit-11147" ErrReadingFileCode = "meshkit-11148" ErrUnSupportedLayerTypeCode = "meshkit-11149" ErrGettingLayerCode = "meshkit-11150" ErrCompressingLayerCode = "meshkit-11151" ErrUnTaringLayerCode = "meshkit-11152" ErrGettingImageCode = "meshkit-11153" ErrValidatingImageCode = "meshkit-11154" ErrConnectingToRegistryCode = "meshkit-11243" ErrFileNotFoundCode = "meshkit-11244" ErrAuthenticatingToRegistryCode = "meshkit-11245" ErrWriteFilesCode = "meshkit-11246" ErrAddLayerCode = "meshkit-11247" ErrTaggingPackageCode = "meshkit-11248" ErrPushingPackageCode = "meshkit-11249" ErrSeekFailedCode = "replace_me" ErrCreateLayerCode = "replace_me" ErrSavingImageCode = "replace_me" )
Functions ¶
func AuthToOCIRegistry ¶
func AuthToOCIRegistry(repo *remote.Repository, registryURI, username, password string) error
authentification to the public oci registry registryURL example : docker.io
func BuildImage ¶
func BuildImage(sourcePath string, opts ...BuildOption) (gcrv1.Image, error)
Builds OCI Img for the artifacts in the given path. Returns v1.Image manifest.
func CreateTempOCIContentDir ¶
func ErrAddLayer ¶
func ErrAppendingLayer ¶
func ErrCompressingLayer ¶
func ErrConnectingToRegistry ¶
func ErrCreateLayer ¶
func ErrFileNotFound ¶
func ErrGettingImage ¶
func ErrGettingLayer ¶
func ErrPushingPackage ¶
func ErrReadingFile ¶
func ErrSavingImage ¶
func ErrSeekFailed ¶
func ErrTaggingPackage ¶
func ErrUnSupportedLayerType ¶
func ErrUnTaringLayer ¶
func ErrValidatingImage ¶
func ErrWriteFile ¶
func IsOCIArtifact ¶
IsOCIArtifact checks if the tarball is an OCI artifact by looking for manifest.json or index.json
func PullFromOCIRegistry ¶
func PullFromOCIRegistry(dirPath, registryAdd, repositoryAdd, imageTag, username, password string) error
function to pull images from the public oci repository
func PushToOCIRegistry ¶
func PushToOCIRegistry(dirPath, registryAdd, repositoryAdd, imageTag, username, password string) error
function to pull models from any OCI-compatible repository
func SaveOCIArtifact ¶
saves the oci artifact to the given path as tarball type
func UnCompressOCIArtifact ¶
uncompress the OCI Artifact tarball at the given destination path
func ValidateOCIArtifact ¶
ValidateOCIArtifact validates the OCI artifact tarball using go-containerregistry's validate function
Types ¶
type BuildOption ¶
type BuildOption func(o *BuildOptions)
BuildOption is a function for configuring BuildOptions.
type BuildOptions ¶
type BuildOptions struct {
// contains filtered or unexported fields
}
BuildOptions are options for configuring the Push operation.