Files
c/kubernetes/model/networking_v1beta1_http_ingress_path.h
Ahmed Yarub Hani Al Nuaimi e3f4285173 Regenerate specs and CMake scripts
2021-09-07 12:42:28 -03:00

41 lines
1.3 KiB
C

/*
* networking_v1beta1_http_ingress_path.h
*
* HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.
*/
#ifndef _networking_v1beta1_http_ingress_path_H_
#define _networking_v1beta1_http_ingress_path_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct networking_v1beta1_http_ingress_path_t networking_v1beta1_http_ingress_path_t;
#include "networking_v1beta1_ingress_backend.h"
typedef struct networking_v1beta1_http_ingress_path_t {
struct networking_v1beta1_ingress_backend_t *backend; //model
char *path; // string
} networking_v1beta1_http_ingress_path_t;
networking_v1beta1_http_ingress_path_t *networking_v1beta1_http_ingress_path_create(
networking_v1beta1_ingress_backend_t *backend,
char *path
);
void networking_v1beta1_http_ingress_path_free(networking_v1beta1_http_ingress_path_t *networking_v1beta1_http_ingress_path);
networking_v1beta1_http_ingress_path_t *networking_v1beta1_http_ingress_path_parseFromJSON(cJSON *networking_v1beta1_http_ingress_pathJSON);
cJSON *networking_v1beta1_http_ingress_path_convertToJSON(networking_v1beta1_http_ingress_path_t *networking_v1beta1_http_ingress_path);
#endif /* _networking_v1beta1_http_ingress_path_H_ */