Documentation ¶
Index ¶
- Constants
- Variables
- 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 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 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_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 DeleteAllMigrationJobs ¶
func DeleteSetupJob ¶
func GetMigrateHash ¶
func GetMigrationJob ¶
func GetSetupJob ¶
func GetSetupJobName ¶
func IsMigrationJobCompleted ¶
func IsMigrationJobCompleted( ctx context.Context, c client.Client, store *v1.Store, ) (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 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.