installmodes

package
v0.0.0-...-746469e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 1 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequirements

func CheckRequirements() error

CheckRequirements iterates over all registered install modes and check for their requirements

func GetObject

func GetObject(name string) (interface{}, error)

GetObject gets the object that represents a install mode

Types

type InstallMode

type InstallMode struct {
	Name              string
	CheckRequirements func() error
	GetObject         func() interface{}
}

InstallMode represents a install mode

func RegisterInstallMode

func RegisterInstallMode(mode InstallMode) InstallMode

RegisterInstallMode registers a new install mode

func (InstallMode) Unregister

func (mode InstallMode) Unregister()

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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