apps

package
v3.0.3-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package apps [apps-plugin] provides the functions which are necessary for adding SCI-F apps support to Singularity 3.0.0. In 3.1.0+, this package will be able to be built standalone as a plugin so it will be maintainable separately from the core Singularity functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() interface{}

New returns a new BuildPlugin for the plugin registry to hold

Types

type App

type App struct {
	Name    string
	Install string
	Files   string
	Env     string
	Test    string
	Help    string
	Run     string
}

App stores the deffile sections of the app

type BuildPlugin

type BuildPlugin struct {
	Apps map[string]*App `json:"appsDefined"`
	sync.Mutex
}

BuildPlugin is the type which the build system can understand

func (*BuildPlugin) HandleBundle

func (pl *BuildPlugin) HandleBundle(b *types.Bundle)

HandleBundle is a hook where we can modify the bundle

func (*BuildPlugin) HandlePost

func (pl *BuildPlugin) HandlePost() string

HandlePost returns a script that should run after %post

func (*BuildPlugin) HandleSection

func (pl *BuildPlugin) HandleSection(ident, section string)

HandleSection receives a string of each section from the deffile

func (*BuildPlugin) Name

func (pl *BuildPlugin) Name() string

Name returns this handler's name [singularity_apps]

Jump to

Keyboard shortcuts

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