Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServePlugin ¶ added in v0.6.0
NewServePlugin creates a new serve plugin
Types ¶
type BackupPlugin ¶ added in v0.4.0
type BackupPlugin struct {
// contains filtered or unexported fields
}
func NewBackupPlugin ¶ added in v0.4.0
func NewBackupPlugin() *BackupPlugin
func (*BackupPlugin) Description ¶ added in v0.4.0
func (p *BackupPlugin) Description() string
Description returns a short description of the plugin
func (*BackupPlugin) Execute ¶ added in v0.4.0
func (p *BackupPlugin) Execute(cfg *config.Config) error
Execute runs the plugin with the given configuration
func (*BackupPlugin) Name ¶ added in v0.4.0
func (p *BackupPlugin) Name() string
Name returns the name of the plugin (used as command name)
func (*BackupPlugin) SetupFlags ¶ added in v0.4.0
func (p *BackupPlugin) SetupFlags(cmd *cobra.Command)
type PurgePlugin ¶ added in v0.4.0
type PurgePlugin struct {
// contains filtered or unexported fields
}
func NewPurgePlugin ¶ added in v0.4.0
func NewPurgePlugin() *PurgePlugin
func (*PurgePlugin) Description ¶ added in v0.4.0
func (p *PurgePlugin) Description() string
Description returns a short description of the plugin
func (*PurgePlugin) Execute ¶ added in v0.4.0
func (p *PurgePlugin) Execute(cfg *config.Config) error
Execute runs the plugin with the given configuration
func (*PurgePlugin) Name ¶ added in v0.4.0
func (p *PurgePlugin) Name() string
Name returns the name of the plugin (used as command name)
func (*PurgePlugin) SetupFlags ¶ added in v0.4.0
func (p *PurgePlugin) SetupFlags(cmd *cobra.Command)
type RestorePlugin ¶ added in v0.4.0
type RestorePlugin struct {
// contains filtered or unexported fields
}
func NewRestorePlugin ¶ added in v0.4.0
func NewRestorePlugin() *RestorePlugin
func (*RestorePlugin) Description ¶ added in v0.4.0
func (p *RestorePlugin) Description() string
Description returns a short description of the plugin
func (*RestorePlugin) Execute ¶ added in v0.4.0
func (p *RestorePlugin) Execute(cfg *config.Config) error
Execute runs the plugin with the given configuration
func (*RestorePlugin) Name ¶ added in v0.4.0
func (p *RestorePlugin) Name() string
Name returns the name of the plugin (used as command name)
func (*RestorePlugin) SetupFlags ¶ added in v0.4.0
func (p *RestorePlugin) SetupFlags(cmd *cobra.Command)
type ServePlugin ¶ added in v0.6.0
type ServePlugin struct {
// contains filtered or unexported fields
}
ServePlugin implements the serve command
func (*ServePlugin) Description ¶ added in v0.6.0
func (p *ServePlugin) Description() string
Description returns the plugin description
func (*ServePlugin) Execute ¶ added in v0.6.0
func (p *ServePlugin) Execute(cfg *config.Config) error
Execute runs the serve command
func (*ServePlugin) Name ¶ added in v0.6.0
func (p *ServePlugin) Name() string
Name returns the plugin name
func (*ServePlugin) SetupFlags ¶ added in v0.6.0
func (p *ServePlugin) SetupFlags(cmd *cobra.Command)
SetupFlags adds command-line flags for this plugin