2020-03-18 17:24:33 +08:00
|
|
|
/*
|
|
|
|
|
* v1_deployment_strategy.h
|
|
|
|
|
*
|
|
|
|
|
* DeploymentStrategy describes how to replace existing pods with new ones.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _v1_deployment_strategy_H_
|
|
|
|
|
#define _v1_deployment_strategy_H_
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include "../external/cJSON.h"
|
|
|
|
|
#include "../include/list.h"
|
|
|
|
|
#include "../include/keyValuePair.h"
|
2020-06-20 09:41:15 +08:00
|
|
|
#include "../include/binary.h"
|
|
|
|
|
|
|
|
|
|
typedef struct v1_deployment_strategy_t v1_deployment_strategy_t;
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
#include "v1_rolling_update_deployment.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct v1_deployment_strategy_t {
|
|
|
|
|
struct v1_rolling_update_deployment_t *rolling_update; //model
|
2022-06-05 18:16:17 +00:00
|
|
|
char *type; // string
|
2020-03-18 17:24:33 +08:00
|
|
|
|
2025-02-11 19:36:46 +00:00
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
2020-03-18 17:24:33 +08:00
|
|
|
} v1_deployment_strategy_t;
|
|
|
|
|
|
2025-02-11 19:36:46 +00:00
|
|
|
__attribute__((deprecated)) v1_deployment_strategy_t *v1_deployment_strategy_create(
|
2020-03-18 17:24:33 +08:00
|
|
|
v1_rolling_update_deployment_t *rolling_update,
|
2022-06-05 18:16:17 +00:00
|
|
|
char *type
|
2020-03-18 17:24:33 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void v1_deployment_strategy_free(v1_deployment_strategy_t *v1_deployment_strategy);
|
|
|
|
|
|
|
|
|
|
v1_deployment_strategy_t *v1_deployment_strategy_parseFromJSON(cJSON *v1_deployment_strategyJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *v1_deployment_strategy_convertToJSON(v1_deployment_strategy_t *v1_deployment_strategy);
|
|
|
|
|
|
|
|
|
|
#endif /* _v1_deployment_strategy_H_ */
|
|
|
|
|
|