sif

package
v0.0.0-...-293e5de Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SingularityMediaType = "application/vnd.sylabs.sif.layer.v1.sif"

Variables

This section is empty.

Functions

This section is empty.

Types

type SingularityImageProvider

type SingularityImageProvider struct {
	// contains filtered or unexported fields
}

SingularityImageProvider is an image.Provider for a Singularity Image Format (SIF) image.

func NewProviderFromPath

func NewProviderFromPath(path string, tmpDirGen *file.TempDirGenerator) *SingularityImageProvider

NewProviderFromPath creates a new provider instance for the Singularity Image Format (SIF) image at path.

func (*SingularityImageProvider) Provide

func (p *SingularityImageProvider) Provide(_ context.Context, userMetadata ...image.AdditionalMetadata) (*image.Image, error)

Provide returns an Image that represents a Singularity Image Format (SIF) image.

Jump to

Keyboard shortcuts

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