Documentation
¶
Index ¶
- Constants
- func AddManifestToRemoveScheduler(CVMFSRepo string, manifest da.Manifest) error
- func ConvertWish(wish WishFriendly, convertAgain, forceDownload, convertSingularity bool) (err error)
- func CreateCatalogIntoDir(CVMFSRepo, dir string) (err error)
- func CreateSymlinkIntoCVMFS(CVMFSRepo, newLinkName, toLinkPath string) (err error)
- func ExecCommand(input ...string) *execCmd
- func FindImageToGarbageCollect(CVMFSRepo string) ([]da.Manifest, error)
- func GarbageCollectSingleLayer(CVMFSRepo, image, layer string) error
- func GetSingularityPathFromManifest(manifest da.Manifest) string
- func IngestIntoCVMFS(CVMFSRepo string, path string, target string) (err error)
- func LayerMetadataPath(CVMFSRepo, layerDigest string) string
- func LayerPath(CVMFSRepo, layerDigest string) string
- func LayerRootfsPath(CVMFSRepo, layerDigest string) string
- func Log() *log.Entry
- func LogE(err error) *log.Entry
- func RemoveDirectory(directory string) error
- func RemoveLayer(CVMFSRepo, layerDigest string) error
- func RemoveScheduleLocation(CVMFSRepo string) string
- func RemoveSingularityImageFromManifest(CVMFSRepo string, manifest da.Manifest) error
- func SaveLayersBacklink(CVMFSRepo string, img Image, layerDigest []string) error
- func TrimCVMFSRepoPrefix(path string) string
- type Backlink
- type ConversionResult
- type Image
- func (img Image) DownloadSingularityDirectory(rootPath string) (sing Singularity, err error)
- func (img Image) GetChanges() (changes []string, err error)
- func (img Image) GetLayers(layersChan chan<- downloadedLayer, manifestChan chan<- string, ...) error
- func (img Image) GetManifest() (da.Manifest, error)
- func (i Image) GetManifestUrl() string
- func (i Image) GetReference() string
- func (i Image) GetSimpleName() string
- func (i Image) GetSimpleReference() string
- func (img Image) GetSingularityLocation() string
- func (img Image) GetSingularityPath() (string, error)
- func (img Image) PrintImage(machineFriendly, csv_header bool)
- func (i Image) WholeName() string
- type ManifestRequest
- type Recipe
- type Singularity
- type Wish
- type WishFriendly
- type YamlRecipeV1
Constants ¶
const ( ConversionNotFound = iota ConversionMatch = iota ConversionNotMatch = iota )
Variables ¶
This section is empty.
Functions ¶
func ConvertWish ¶
func ConvertWish(wish WishFriendly, convertAgain, forceDownload, convertSingularity bool) (err error)
func CreateCatalogIntoDir ¶
func CreateSymlinkIntoCVMFS ¶
create a symbolic link inside the repository called `newLinkName`, the symlink will point to `toLinkPath` newLinkName: comes without the /cvmfs/$REPO/ prefix toLinkPath: comes without the /cvmfs/$REPO/ prefix
func ExecCommand ¶
func ExecCommand(input ...string) *execCmd
func GarbageCollectSingleLayer ¶
with image and layer we pass the digest of the layer and the digest of the image, both without the sha256: prefix
func IngestIntoCVMFS ¶
ingest into the repository, inside the subpath, the target (directory or file) object CVMFSRepo: just the name of the repository (ex: unpacked.cern.ch) path: the path inside the repository, without the prefix (ex: .foo/bar/baz), where to put the ingested target target: the path of the target in the normal FS, the thing to ingest if no error is returned, we remove the target from the FS
func LayerMetadataPath ¶
func LayerRootfsPath ¶
func RemoveDirectory ¶
func RemoveLayer ¶
func RemoveScheduleLocation ¶
func SaveLayersBacklink ¶
func TrimCVMFSRepoPrefix ¶
from /cvmfs/$REPO/foo/bar -> foo/bar
Types ¶
type ConversionResult ¶
type ConversionResult int
func AlreadyConverted ¶
func AlreadyConverted(CVMFSRepo string, img Image, reference string) ConversionResult
type Image ¶
type Image struct { Id int User string Scheme string Registry string Repository string Tag string Digest string IsThin bool Manifest *da.Manifest }
func ParseImage ¶
func (Image) DownloadSingularityDirectory ¶
func (img Image) DownloadSingularityDirectory(rootPath string) (sing Singularity, err error)
func (Image) GetChanges ¶
func (Image) GetManifestUrl ¶
func (Image) GetReference ¶
func (Image) GetSimpleName ¶
func (Image) GetSimpleReference ¶
func (Image) GetSingularityLocation ¶
func (Image) GetSingularityPath ¶
here is where in the FS we are going to store the singularity image
func (Image) PrintImage ¶
type ManifestRequest ¶
type Singularity ¶
func (Singularity) IngestIntoCVMFS ¶
func (s Singularity) IngestIntoCVMFS(CVMFSRepo string) error
type WishFriendly ¶
type WishFriendly struct { Id int InputId int InputName string OutputId int OutputName string CvmfsRepo string Converted bool UserInput string UserOutput string }
func CreateWish ¶
func CreateWish(inputImage, outputImage, cvmfsRepo, userInput, userOutput string) (wish WishFriendly, err error)