site_setup

package module
v0.0.0-...-a774863 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 14 Imported by: 1

README

site-setup

Site Setup plugin for Ecletus Framework

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	E_SETUP    = PKG + ".setup"
	E_REGISTER = PKG + ".register"
)

Functions

func OnRegister

func OnRegister(dis plug.EventDispatcherInterface, cb func(e *SiteSetupEvent))

func OnSetup

func OnSetup(dis plug.EventDispatcherInterface, cb func(e *SiteSetupEvent) error)

func Trigger

func Trigger(dis plug.PluginEventDispatcherInterface, eventName string, site *core.Site, cmd *cobra.Command) error

Types

type Plugin

type Plugin struct {
	plug.EventDispatcher
	SitesRegisterKey string
}

func (*Plugin) OnRegister

func (p *Plugin) OnRegister()

func (*Plugin) RequireOptions

func (p *Plugin) RequireOptions() []string

type PostMigratePlugin

type PostMigratePlugin interface {
	PostMigrate(site *core.Site) (err error)
}

type PostSetupPlugin

type PostSetupPlugin interface {
	PostSetup(site *core.Site) (err error)
}

type PreMigratePlugin

type PreMigratePlugin interface {
	PreMigrate(site *core.Site) (err error)
}

type PreSetupPlugin

type PreSetupPlugin interface {
	PreSetup(site *core.Site) (err error)
}

type SiteSetupEvent

type SiteSetupEvent struct {
	plug.PluginEventInterface
	Site     *core.Site
	SetupCMD *cobra.Command
}

Jump to

Keyboard shortcuts

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