Files
c/kubernetes/model/v1_variable.h
Kubernetes Prow Robot c97b51f36a Automated openapi generation from release-1.30
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2024-05-18 13:20:54 +00:00

40 lines
789 B
C

/*
* v1_variable.h
*
* Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
*/
#ifndef _v1_variable_H_
#define _v1_variable_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_variable_t v1_variable_t;
typedef struct v1_variable_t {
char *expression; // string
char *name; // string
} v1_variable_t;
v1_variable_t *v1_variable_create(
char *expression,
char *name
);
void v1_variable_free(v1_variable_t *v1_variable);
v1_variable_t *v1_variable_parseFromJSON(cJSON *v1_variableJSON);
cJSON *v1_variable_convertToJSON(v1_variable_t *v1_variable);
#endif /* _v1_variable_H_ */