Documentation ¶
Index ¶
Constants ¶
const CloudURI = "https://cloud.sylabs.io"
CloudURI holds the URI of the Library web front-end.
Variables ¶
This section is empty.
Functions ¶
func IsValidAssembler ¶
IsValidAssembler returns whether or not the given Assembler is valid
func IsValidURI ¶
IsValidURI returns whether or not the given source is valid
Types ¶
type Assembler ¶
Assembler is responsible for assembling an image from a bundle. For example a bundle may be holding multiple file systems indended to be separate partitions within a SIF image. The assembler would need to detect these directories and make sure it properly assembles the SIF with them as partitions
type Build ¶
type Build struct {
// contains filtered or unexported fields
}
Build is an abstracted way to look at the entire build process. For example calling NewBuild() will return this object. From there we can call Full() on this build object, which will:
Call Bundle() to obtain all data needed to execute the specified build locally on the machine Execute all of a definition using AllSections() And finally call Assemble() to create our container image
func NewBuild ¶
func NewBuild(spec, dest, format string, force, update bool, sections []string, noTest bool, libraryURL, authToken string) (*Build, error)
NewBuild creates a new Build struct from a spec (URI, definition file, etc...)
func NewBuildJSON ¶
func NewBuildJSON(r io.Reader, dest, format string, force, update bool, sections []string, noTest bool, libraryURL, authToken string) (*Build, error)
NewBuildJSON creates a new build struct from a JSON byte slice
type Conveyor ¶
Conveyor is responsible for downloading from remote sources (library, shub, docker...)
type ConveyorPacker ¶
ConveyorPacker describes an interface that a ConveyorPacker type must implement
type Packer ¶
Packer is the type which is responsible for installing the chroot directory, metadata directory, and potentially other files/directories within the Bundle
type RemoteBuilder ¶
type RemoteBuilder struct { Client http.Client ImagePath string Force bool LibraryURL string Definition types.Definition IsDetached bool BuilderURL *url.URL AuthToken string }
RemoteBuilder contains the build request and response
func NewRemoteBuilder ¶
func NewRemoteBuilder(imagePath, libraryURL string, d types.Definition, isDetached, force bool, builderAddr, authToken string) (rb *RemoteBuilder, err error)
NewRemoteBuilder creates a RemoteBuilder with the specified details.