Documentation
¶
Index ¶
- Constants
- Variables
- func CommandCronJob(store v1.Store, ex v1.StoreExec) *batchv1.CronJob
- func CommandJob(store v1.Store, ex v1.StoreExec) *batchv1.Job
- func CommandJobName(exec v1.StoreExec) string
- func DeleteAllMigrationJobs(ctx context.Context, c client.Client, store *v1.Store) error
- func DeleteSetupJob(ctx context.Context, c client.Client, store v1.Store) error
- func GetCommandCronJob(ctx context.Context, client client.Client, store v1.Store, exec v1.StoreExec) (*batchv1.CronJob, error)
- func GetCommandJob(ctx context.Context, client client.Client, store v1.Store, exec v1.StoreExec) (*batchv1.Job, error)
- func GetMigrateHash(store v1.Store) string
- func GetMigrationJob(ctx context.Context, client client.Client, store v1.Store) (*batchv1.Job, error)
- func GetSetupJob(ctx context.Context, client client.Client, store v1.Store) (*batchv1.Job, error)
- func GetSetupJobName(store v1.Store) string
- func IsCommandJobCompleted(ctx context.Context, c client.Client, store v1.Store, exec v1.StoreExec) (bool, error)
- func IsMigrationJobCompleted(ctx context.Context, c client.Client, store v1.Store) (bool, error)
- func IsSetupJobCompleted(ctx context.Context, c client.Client, store v1.Store) (bool, error)
- func MigrateJobName(store v1.Store) string
- func MigrationJob(store v1.Store) *batchv1.Job
- func SetupJob(store v1.Store) *batchv1.Job
- type JobState
Constants ¶
View Source
const CONTAINER_NAME_COMMAND = "shopware-command"
View Source
const CONTAINER_NAME_MIGRATION_JOB = "shopware-migration"
View Source
const CONTAINER_NAME_SETUP_JOB = "shopware-setup"
Variables ¶
View Source
var MigrationJobIdentifyer = map[string]string{"type": "migration"}
Functions ¶
func CommandJobName ¶
func DeleteAllMigrationJobs ¶
func DeleteSetupJob ¶
func GetCommandCronJob ¶
func GetCommandJob ¶
func GetMigrateHash ¶
func GetMigrationJob ¶
func GetSetupJob ¶
func GetSetupJobName ¶
func IsCommandJobCompleted ¶
func IsCommandJobCompleted( ctx context.Context, c client.Client, store v1.Store, exec v1.StoreExec, ) (bool, error)
This is just a soft check, use container check for a clean check Will return true if container is stopped (Completed, Error)
func IsMigrationJobCompleted ¶
This is just a soft check, use container check for a clean check Will return true if container is stopped (Completed, Error)
func IsSetupJobCompleted ¶
This is just a soft check, use container check for a clean check Will return true if container is stopped (Completed, Error)
func MigrateJobName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.