Files
c/kubernetes/model/v1_toleration.h

47 lines
1.1 KiB
C
Raw Permalink Normal View History

/*
* v1_toleration.h
*
* The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
*/
#ifndef _v1_toleration_H_
#define _v1_toleration_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_toleration_t v1_toleration_t;
typedef struct v1_toleration_t {
char *effect; // string
char *key; // string
char *_operator; // string
long toleration_seconds; //numeric
char *value; // string
int _library_owned; // Is the library responsible for freeing this object?
} v1_toleration_t;
__attribute__((deprecated)) v1_toleration_t *v1_toleration_create(
char *effect,
char *key,
char *_operator,
long toleration_seconds,
char *value
);
void v1_toleration_free(v1_toleration_t *v1_toleration);
v1_toleration_t *v1_toleration_parseFromJSON(cJSON *v1_tolerationJSON);
cJSON *v1_toleration_convertToJSON(v1_toleration_t *v1_toleration);
#endif /* _v1_toleration_H_ */