2020-03-18 17:24:33 +08:00
|
|
|
/*
|
|
|
|
|
* v1_downward_api_volume_file.h
|
|
|
|
|
*
|
|
|
|
|
* DownwardAPIVolumeFile represents information to create the file containing the pod field
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _v1_downward_api_volume_file_H_
|
|
|
|
|
#define _v1_downward_api_volume_file_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_downward_api_volume_file_t v1_downward_api_volume_file_t;
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
#include "v1_object_field_selector.h"
|
|
|
|
|
#include "v1_resource_field_selector.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct v1_downward_api_volume_file_t {
|
|
|
|
|
struct v1_object_field_selector_t *field_ref; //model
|
|
|
|
|
int mode; //numeric
|
|
|
|
|
char *path; // string
|
|
|
|
|
struct v1_resource_field_selector_t *resource_field_ref; //model
|
|
|
|
|
|
|
|
|
|
} v1_downward_api_volume_file_t;
|
|
|
|
|
|
|
|
|
|
v1_downward_api_volume_file_t *v1_downward_api_volume_file_create(
|
|
|
|
|
v1_object_field_selector_t *field_ref,
|
|
|
|
|
int mode,
|
|
|
|
|
char *path,
|
|
|
|
|
v1_resource_field_selector_t *resource_field_ref
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void v1_downward_api_volume_file_free(v1_downward_api_volume_file_t *v1_downward_api_volume_file);
|
|
|
|
|
|
|
|
|
|
v1_downward_api_volume_file_t *v1_downward_api_volume_file_parseFromJSON(cJSON *v1_downward_api_volume_fileJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *v1_downward_api_volume_file_convertToJSON(v1_downward_api_volume_file_t *v1_downward_api_volume_file);
|
|
|
|
|
|
|
|
|
|
#endif /* _v1_downward_api_volume_file_H_ */
|
|
|
|
|
|