Documentation
¶
Index ¶
- func NewServePlugin() plugin.Plugin
- type BackupDatabasePlugin
- type BackupPlugin
- type BackupStatistics
- type ChatsPlugin
- type DecryptPlugin
- type FullBackupPlugin
- type NewIdentityPlugin
- type PurgeDatabasePlugin
- type PurgePlugin
- type RestoreDatabasePlugin
- type RestorePlugin
- type ServePlugin
- type StatisticsPlugin
- type VerifyPlugin
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 BackupDatabasePlugin ¶ added in v0.12.0
type BackupDatabasePlugin struct {
// contains filtered or unexported fields
}
func NewBackupDatabasePlugin ¶ added in v0.12.0
func NewBackupDatabasePlugin() *BackupDatabasePlugin
func (*BackupDatabasePlugin) Description ¶ added in v0.12.0
func (p *BackupDatabasePlugin) Description() string
Description returns a short description of the plugin
func (*BackupDatabasePlugin) Execute ¶ added in v0.12.0
func (p *BackupDatabasePlugin) Execute(cfg *config.Config) error
Execute runs the plugin with the given configuration
func (*BackupDatabasePlugin) Name ¶ added in v0.12.0
func (p *BackupDatabasePlugin) Name() string
Name returns the name of the plugin (used as command name)
func (*BackupDatabasePlugin) SetupFlags ¶ added in v0.12.0
func (p *BackupDatabasePlugin) SetupFlags(cmd *cobra.Command)
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 BackupStatistics ¶ added in v0.14.0
type BackupStatistics struct {
KnowledgeCount int
KnowledgeSize int64
ModelsCount int
ToolsCount int
PromptsCount int
FilesCount int
FilesSize int64
ChatsCount int
GroupsCount int
FeedbacksCount int
UsersCount int
DatabaseConfigured bool
DatabaseName string
}
BackupStatistics holds statistics about backup content
type ChatsPlugin ¶ added in v0.15.0
type ChatsPlugin struct {
// contains filtered or unexported fields
}
func NewChatsPlugin ¶ added in v0.15.0
func NewChatsPlugin() *ChatsPlugin
func (*ChatsPlugin) Description ¶ added in v0.15.0
func (p *ChatsPlugin) Description() string
func (*ChatsPlugin) Execute ¶ added in v0.15.0
func (p *ChatsPlugin) Execute(cfg *config.Config) error
func (*ChatsPlugin) Name ¶ added in v0.15.0
func (p *ChatsPlugin) Name() string
func (*ChatsPlugin) SetConfig ¶ added in v0.15.0
func (p *ChatsPlugin) SetConfig(cfg *config.Config)
SetConfig stores the config for use by subcommands
func (*ChatsPlugin) SetupFlags ¶ added in v0.15.0
func (p *ChatsPlugin) SetupFlags(cmd *cobra.Command)
type DecryptPlugin ¶ added in v0.11.0
type DecryptPlugin struct {
// contains filtered or unexported fields
}
DecryptPlugin decrypts all .age files in a directory
func NewDecryptPlugin ¶ added in v0.11.0
func NewDecryptPlugin() *DecryptPlugin
NewDecryptPlugin creates a new instance of the DecryptPlugin
func (*DecryptPlugin) Description ¶ added in v0.11.0
func (p *DecryptPlugin) Description() string
Description returns the command description
func (*DecryptPlugin) Execute ¶ added in v0.11.0
func (p *DecryptPlugin) Execute(cfg *config.Config) error
Execute decrypts all .age files in the directory
func (*DecryptPlugin) Name ¶ added in v0.11.0
func (p *DecryptPlugin) Name() string
Name returns the command name
func (*DecryptPlugin) SetupFlags ¶ added in v0.11.0
func (p *DecryptPlugin) SetupFlags(cmd *cobra.Command)
SetupFlags configures the command-line flags
type FullBackupPlugin ¶ added in v0.10.0
type FullBackupPlugin struct {
// contains filtered or unexported fields
}
FullBackupPlugin creates a backup with automatic identity management
func NewFullBackupPlugin ¶ added in v0.10.0
func NewFullBackupPlugin() *FullBackupPlugin
NewFullBackupPlugin creates a new instance of the FullBackupPlugin
func (*FullBackupPlugin) Description ¶ added in v0.10.0
func (p *FullBackupPlugin) Description() string
Description returns the command description
func (*FullBackupPlugin) Execute ¶ added in v0.10.0
func (p *FullBackupPlugin) Execute(cfg *config.Config) error
Execute creates the backup with automatic identity management
func (*FullBackupPlugin) Name ¶ added in v0.10.0
func (p *FullBackupPlugin) Name() string
Name returns the command name
func (*FullBackupPlugin) SetupFlags ¶ added in v0.10.0
func (p *FullBackupPlugin) SetupFlags(cmd *cobra.Command)
SetupFlags configures the command-line flags
type NewIdentityPlugin ¶ added in v0.10.0
type NewIdentityPlugin struct {
// contains filtered or unexported fields
}
NewIdentityPlugin generates a new age identity keypair and saves it to files
func NewNewIdentityPlugin ¶ added in v0.10.0
func NewNewIdentityPlugin() *NewIdentityPlugin
NewNewIdentityPlugin creates a new instance of the NewIdentityPlugin
func (*NewIdentityPlugin) Description ¶ added in v0.10.0
func (p *NewIdentityPlugin) Description() string
Description returns the command description
func (*NewIdentityPlugin) Execute ¶ added in v0.10.0
func (p *NewIdentityPlugin) Execute(cfg *config.Config) error
Execute generates the identity pair and saves to files
func (*NewIdentityPlugin) Name ¶ added in v0.10.0
func (p *NewIdentityPlugin) Name() string
Name returns the command name
func (*NewIdentityPlugin) SetupFlags ¶ added in v0.10.0
func (p *NewIdentityPlugin) SetupFlags(cmd *cobra.Command)
SetupFlags configures the command-line flags
type PurgeDatabasePlugin ¶ added in v0.12.0
type PurgeDatabasePlugin struct {
// contains filtered or unexported fields
}
func NewPurgeDatabasePlugin ¶ added in v0.12.0
func NewPurgeDatabasePlugin() *PurgeDatabasePlugin
func (*PurgeDatabasePlugin) Description ¶ added in v0.12.0
func (p *PurgeDatabasePlugin) Description() string
Description returns a short description of the plugin
func (*PurgeDatabasePlugin) Execute ¶ added in v0.12.0
func (p *PurgeDatabasePlugin) Execute(cfg *config.Config) error
Execute runs the plugin with the given configuration
func (*PurgeDatabasePlugin) Name ¶ added in v0.12.0
func (p *PurgeDatabasePlugin) Name() string
Name returns the name of the plugin (used as command name)
func (*PurgeDatabasePlugin) SetupFlags ¶ added in v0.12.0
func (p *PurgeDatabasePlugin) 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 RestoreDatabasePlugin ¶ added in v0.12.0
type RestoreDatabasePlugin struct {
// contains filtered or unexported fields
}
func NewRestoreDatabasePlugin ¶ added in v0.12.0
func NewRestoreDatabasePlugin() *RestoreDatabasePlugin
func (*RestoreDatabasePlugin) Description ¶ added in v0.12.0
func (p *RestoreDatabasePlugin) Description() string
Description returns a short description of the plugin
func (*RestoreDatabasePlugin) Execute ¶ added in v0.12.0
func (p *RestoreDatabasePlugin) Execute(cfg *config.Config) error
Execute runs the plugin with the given configuration
func (*RestoreDatabasePlugin) Name ¶ added in v0.12.0
func (p *RestoreDatabasePlugin) Name() string
Name returns the name of the plugin (used as command name)
func (*RestoreDatabasePlugin) SetupFlags ¶ added in v0.12.0
func (p *RestoreDatabasePlugin) 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
type StatisticsPlugin ¶ added in v0.14.0
type StatisticsPlugin struct {
// contains filtered or unexported fields
}
func NewStatisticsPlugin ¶ added in v0.14.0
func NewStatisticsPlugin() *StatisticsPlugin
func (*StatisticsPlugin) Description ¶ added in v0.14.0
func (p *StatisticsPlugin) Description() string
Description returns a short description of the plugin
func (*StatisticsPlugin) Execute ¶ added in v0.14.0
func (p *StatisticsPlugin) Execute(cfg *config.Config) error
Execute runs the plugin with the given configuration
func (*StatisticsPlugin) Name ¶ added in v0.14.0
func (p *StatisticsPlugin) Name() string
Name returns the name of the plugin (used as command name)
func (*StatisticsPlugin) SetupFlags ¶ added in v0.14.0
func (p *StatisticsPlugin) SetupFlags(cmd *cobra.Command)
type VerifyPlugin ¶ added in v0.10.0
type VerifyPlugin struct {
// contains filtered or unexported fields
}
VerifyPlugin verifies that a backup can be decrypted and optionally validates contents
func NewVerifyPlugin ¶ added in v0.10.0
func NewVerifyPlugin() *VerifyPlugin
NewVerifyPlugin creates a new instance of the VerifyPlugin
func (*VerifyPlugin) Description ¶ added in v0.10.0
func (p *VerifyPlugin) Description() string
Description returns the command description
func (*VerifyPlugin) Execute ¶ added in v0.10.0
func (p *VerifyPlugin) Execute(cfg *config.Config) error
Execute verifies the backup file
func (*VerifyPlugin) Name ¶ added in v0.10.0
func (p *VerifyPlugin) Name() string
Name returns the command name
func (*VerifyPlugin) SetupFlags ¶ added in v0.10.0
func (p *VerifyPlugin) SetupFlags(cmd *cobra.Command)
SetupFlags configures the command-line flags