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 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 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 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
- type BuildOption
- type BuildOptions
- type LayerType
Constants ¶
This section is empty.
Variables ¶
View Source
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" )
Functions ¶
func AuthToOCIRegistry ¶ added in v0.7.21
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 ¶ added in v0.7.21
func ErrAppendingLayer ¶
func ErrAuthenticatingToRegistry ¶ added in v0.7.21
func ErrCompressingLayer ¶
func ErrConnectingToRegistry ¶ added in v0.7.21
func ErrFileNotFound ¶ added in v0.7.21
func ErrGettingImage ¶
func ErrGettingLayer ¶
func ErrPushingPackage ¶ added in v0.7.21
func ErrReadingFile ¶
func ErrTaggingPackage ¶ added in v0.7.21
func ErrUnSupportedLayerType ¶
func ErrUnTaringLayer ¶
func ErrValidatingImage ¶
func ErrWriteFile ¶ added in v0.7.21
func PullFromOCIRegistry ¶ added in v0.7.21
func PullFromOCIRegistry(dirPath, registryAdd, repositoryAdd, imageTag, username, password string) error
function to pull images from the public oci repository
func PushToOCIRegistry ¶ added in v0.7.21
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
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.
Click to show internal directories.
Click to hide internal directories.