Documentation
¶
Overview ¶
Package run provides Cobra commands to execute PPM
Index ¶
Constants ¶
View Source
const ( InvalidConfigurationExitCode = 1 InternalErrorExitCode = 2 DatabaseErrorExitCode = 3 PartitionsProvisioningFailedExitCode = 4 PartitionsCheckFailedExitCode = 5 PartitionsCleanupFailedExitCode = 6 InvalidDateExitCode = 7 )
Variables ¶
View Source
var AllCmd = &cobra.Command{ Use: "all", Short: "Perform partitions provisioning, cleanup, and check", Long: "Perform partitions provisioning, cleanup, and check", Run: func(cmd *cobra.Command, args []string) { client := initCmd() provisioningCmd(client) cleanupCmd(client) checkCmd(client) }, }
View Source
var CheckCmd = &cobra.Command{ Use: "check", Short: "Check existing partitions", Long: "Check existing partitions", Run: func(cmd *cobra.Command, args []string) { client := initCmd() checkCmd(client) }, }
View Source
var CleanupCmd = &cobra.Command{ Use: "cleanup", Short: "Remove outdated partitions", Long: "Remove outdated partitions", Run: func(cmd *cobra.Command, args []string) { client := initCmd() cleanupCmd(client) }, }
View Source
var ErrUnsupportedPostgreSQLVersion = errors.New("unsupported PostgreSQL version")
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.