Files
c/kubernetes/model/v1_config_map_key_selector.h

42 lines
1022 B
C
Raw Normal View History

/*
* v1_config_map_key_selector.h
*
* Selects a key from a ConfigMap.
*/
#ifndef _v1_config_map_key_selector_H_
#define _v1_config_map_key_selector_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_config_map_key_selector_t v1_config_map_key_selector_t;
typedef struct v1_config_map_key_selector_t {
char *key; // string
char *name; // string
int optional; //boolean
} v1_config_map_key_selector_t;
v1_config_map_key_selector_t *v1_config_map_key_selector_create(
char *key,
char *name,
int optional
);
void v1_config_map_key_selector_free(v1_config_map_key_selector_t *v1_config_map_key_selector);
v1_config_map_key_selector_t *v1_config_map_key_selector_parseFromJSON(cJSON *v1_config_map_key_selectorJSON);
cJSON *v1_config_map_key_selector_convertToJSON(v1_config_map_key_selector_t *v1_config_map_key_selector);
#endif /* _v1_config_map_key_selector_H_ */