image

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Docker = Transport("docker://")
View Source
const PauseImage = "icsforth/pause:apptainer"

Variables

This section is empty.

Functions

func ParseImageName

func ParseImageName(rawImageName string) string

Types

type Image

type Image struct {
	// Filepath points to the location where the image is stored.
	Filepath string
}

Image is an actionable object of a container image.

func Pull

func Pull(imageDir string, transport Transport, imageName string) (*Image, error)

func (*Image) FakerootExec

func (p *Image) FakerootExec(singularityArgs []string, cmd []string) (string, error)

FakerootExec uses Singularity to instantiate the image and run a command.

type Transport

type Transport string

func (Transport) Wrap

func (t Transport) Wrap(imageName string) string

Jump to

Keyboard shortcuts

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