Documentation ¶
Overview ¶
Package pukcab provides a common interface for a modular backup system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(config Config)
Configure will prepare pukcab for running with the given config instance
func GetFilePath ¶
GetFilePath return an absolute path for a backup artifact. Must specify the module name, a description (which needs to be a filename-safe string), and an extension (without a dot)
func MarshallConfig ¶
func MarshallConfig(in interface{}, out interface{}) error
Types ¶
type Config ¶
type Config struct { Modules []ModuleType `json:"modules"` OutputDir string `json:"output_dir"` Verbose bool `json:"verbose"` ArtifactRetention int `json:"artifact_retention"` }
Config describes a configuration object for pukcab
type ModuleType ¶
type ModuleType struct { Name string `json:"name"` Config interface{} `json:"config"` }
ModuleType describes a module configuration for pukcab
Click to show internal directories.
Click to hide internal directories.