profilesmanager

package
v0.0.0-...-abfb8b1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2016 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Overview

Package profilesmanager provides support for managing jiri profiles. In particular for installing and uninstalling them. It provides a registration mechanism for profile implementations to call from an init function to add themselves to the suite profiles available within this application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureProfileTargetIsInstalled

func EnsureProfileTargetIsInstalled(jirix *jiri.X, pdb *profiles.DB, installer, profile string, root jiri.RelPath, target profiles.Target) error

EnsureProfileTargetIsInstalled ensures that the requested profile and target is installed, installing it if only if necessary.

func EnsureProfileTargetIsUninstalled

func EnsureProfileTargetIsUninstalled(jirix *jiri.X, pdb *profiles.DB, installer, profile string, root jiri.RelPath, target profiles.Target) error

EnsureProfileTargetIsUninstalled ensures that the requested profile and target are no longer installed.

func LookupManager

func LookupManager(name string) profiles.Manager

LookupManager returns the manager for the named, in-process, profile or nil if one is not found.

func Managers

func Managers() []string

Names returns the names, in lexicographic order, of all of the currently available in-process, profile managers.

func Register

func Register(mgr profiles.Manager)

Register is used to register a profile manager. It is an error to call Registerr more than once with the same name, though it is possible to register the same Manager using different names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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