syplugin

package
v3.0.3-rc2+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHandleBundles

func BuildHandleBundles(b *types.Bundle)

BuildHandleBundles runs the HandleBundle() hook on every plugin

func BuildHandlePosts

func BuildHandlePosts() (ret string)

BuildHandlePosts runs the HandleBundle() hook on every plugin

func BuildHandleSections

func BuildHandleSections(i, s string)

BuildHandleSections runs the HandleSection() hook on every plugin

func GetBuildPlugins

func GetBuildPlugins() map[string]BuildPlugin

GetBuildPlugins returns the list of known plugins

func Init

func Init()

Init initializes plugins via static linking

func InitDynamic

func InitDynamic()

InitDynamic initializes plugins via dynamic loading. This is implemented but not fully featured, so we're using a static methodology until 3.1

func RegisterBuildPlugin

func RegisterBuildPlugin(_pl interface{}) error

RegisterBuildPlugin adds the plugin to the known plugins

Types

type BasePluginRegistry

type BasePluginRegistry struct {
	sync.Mutex
}

BasePluginRegistry ...

type BuildPlugin

type BuildPlugin interface {
	Name() string
	HandleSection(string, string)
	HandleBundle(*types.Bundle)
	HandlePost() string
}

BuildPlugin is the interface for plugins on the build system

type BuildPluginRegistry

type BuildPluginRegistry struct {
	BasePluginRegistry
	Plugins map[string]BuildPlugin
}

BuildPluginRegistry ...

Jump to

Keyboard shortcuts

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