Files
c/kubernetes/model/v1_ip_block.h
Brendan Burns d72a1c8566 Automated openapi generation from release-1.32
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2025-02-11 19:36:46 +00:00

41 lines
1.0 KiB
C

/*
* v1_ip_block.h
*
* IPBlock describes a particular CIDR (Ex. \&quot;192.168.1.0/24\&quot;,\&quot;2001:db8::/64\&quot;) that is allowed to the pods matched by a NetworkPolicySpec&#39;s podSelector. The except entry describes CIDRs that should not be included within this rule.
*/
#ifndef _v1_ip_block_H_
#define _v1_ip_block_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_ip_block_t v1_ip_block_t;
typedef struct v1_ip_block_t {
char *cidr; // string
list_t *except; //primitive container
int _library_owned; // Is the library responsible for freeing this object?
} v1_ip_block_t;
__attribute__((deprecated)) v1_ip_block_t *v1_ip_block_create(
char *cidr,
list_t *except
);
void v1_ip_block_free(v1_ip_block_t *v1_ip_block);
v1_ip_block_t *v1_ip_block_parseFromJSON(cJSON *v1_ip_blockJSON);
cJSON *v1_ip_block_convertToJSON(v1_ip_block_t *v1_ip_block);
#endif /* _v1_ip_block_H_ */