extpoints

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

generated by go-extpoints -- DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var BootComponents = &bootComponentExt{
	newExtensionPoint(new(BootComponent)),
}

Functions

func RegisterExtension

func RegisterExtension(extension interface{}, name string) []string

func UnregisterExtension

func UnregisterExtension(name string) []string

Types

type BootComponent

type BootComponent interface {
	// EtcdDefaults required initial values in etcd
	EtcdDefaults() map[string]string

	// MkdirsEtcd required directories in etcd
	MkdirsEtcd() []string

	// PreBoot custom pre-boot task (custom go code)
	PreBoot(currentBoot *types.CurrentBoot)

	// PreBootScripts scripts to execute before the component starts
	PreBootScripts(currentBoot *types.CurrentBoot) []*types.Script

	// UseConfd is required the use of confd?
	UseConfd() (bool, bool)

	// BootDaemons required commands to start the component
	BootDaemons(currentBoot *types.CurrentBoot) []*types.ServiceDaemon

	// WaitForPorts ports that must be open to indicate that the component is running
	WaitForPorts() []int

	// PostBootScripts scripts to execute after the component starts
	PostBootScripts(currentBoot *types.CurrentBoot) []*types.Script

	// PostBoot custom post-boot task (custom go code)
	PostBoot(currentBoot *types.CurrentBoot)

	// ScheduleTasks tasks that must run during the lifecycle of the component
	ScheduleTasks(currentBoot *types.CurrentBoot) []*types.Cron

	// PreShutdownScripts scripts to execute before the component execution ends
	PreShutdownScripts(currentBoot *types.CurrentBoot) []*types.Script
}

BootComponent interface that defines the steps required to initialize a component

Jump to

Keyboard shortcuts

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