apps

package
v3.1.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: BSD-3-Clause Imports: 11 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

This section is empty.

Types

type App

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

App stores the deffile sections of the app

type BuildApp

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

BuildApp is the type which the build system can use to build an app in a bundle

func New

func New() *BuildApp

New returns a new BuildPlugin for the plugin registry to hold

func (*BuildApp) HandleBundle

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

HandleBundle is a hook where we can modify the bundle

func (*BuildApp) HandlePost

func (pl *BuildApp) HandlePost() string

HandlePost returns a script that should run after %post

func (*BuildApp) HandleSection

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

HandleSection receives a string of each section from the deffile

func (*BuildApp) Name

func (pl *BuildApp) 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