Files
c/kubernetes/model/v1alpha1_service_reference.h
Hui Yu 732348e69e Re-generate the C client to merge recent changes from openapi-generator:
1. [C][Client] Add C++ reserved keywords to C-libcurl client generator,then the C client can be compiled by C++ compiler (#8205)

2. [C][Client] Disable escaping the parameter name in URL path string (#8243)

3. [C][Client] Fix coredump when releasing the memory of an incompleted model (#8190)
2021-01-05 15:42:34 +08:00

44 lines
1.1 KiB
C

/*
* v1alpha1_service_reference.h
*
* ServiceReference holds a reference to Service.legacy.k8s.io
*/
#ifndef _v1alpha1_service_reference_H_
#define _v1alpha1_service_reference_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1alpha1_service_reference_t v1alpha1_service_reference_t;
typedef struct v1alpha1_service_reference_t {
char *name; // string
char *_namespace; // string
char *path; // string
int port; //numeric
} v1alpha1_service_reference_t;
v1alpha1_service_reference_t *v1alpha1_service_reference_create(
char *name,
char *_namespace,
char *path,
int port
);
void v1alpha1_service_reference_free(v1alpha1_service_reference_t *v1alpha1_service_reference);
v1alpha1_service_reference_t *v1alpha1_service_reference_parseFromJSON(cJSON *v1alpha1_service_referenceJSON);
cJSON *v1alpha1_service_reference_convertToJSON(v1alpha1_service_reference_t *v1alpha1_service_reference);
#endif /* _v1alpha1_service_reference_H_ */