Files
c/kubernetes/model/v1_container.h
Kubernetes Prow Robot 0f1f163bb9 Automated openapi generation from release-1.28
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2023-09-06 01:56:31 +00:00

94 lines
2.5 KiB
C

/*
* v1_container.h
*
* A single application container that you want to run within a pod.
*/
#ifndef _v1_container_H_
#define _v1_container_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_container_t v1_container_t;
#include "v1_container_port.h"
#include "v1_container_resize_policy.h"
#include "v1_env_from_source.h"
#include "v1_env_var.h"
#include "v1_lifecycle.h"
#include "v1_probe.h"
#include "v1_resource_requirements.h"
#include "v1_security_context.h"
#include "v1_volume_device.h"
#include "v1_volume_mount.h"
typedef struct v1_container_t {
list_t *args; //primitive container
list_t *command; //primitive container
list_t *env; //nonprimitive container
list_t *env_from; //nonprimitive container
char *image; // string
char *image_pull_policy; // string
struct v1_lifecycle_t *lifecycle; //model
struct v1_probe_t *liveness_probe; //model
char *name; // string
list_t *ports; //nonprimitive container
struct v1_probe_t *readiness_probe; //model
list_t *resize_policy; //nonprimitive container
struct v1_resource_requirements_t *resources; //model
char *restart_policy; // string
struct v1_security_context_t *security_context; //model
struct v1_probe_t *startup_probe; //model
int _stdin; //boolean
int stdin_once; //boolean
char *termination_message_path; // string
char *termination_message_policy; // string
int tty; //boolean
list_t *volume_devices; //nonprimitive container
list_t *volume_mounts; //nonprimitive container
char *working_dir; // string
} v1_container_t;
v1_container_t *v1_container_create(
list_t *args,
list_t *command,
list_t *env,
list_t *env_from,
char *image,
char *image_pull_policy,
v1_lifecycle_t *lifecycle,
v1_probe_t *liveness_probe,
char *name,
list_t *ports,
v1_probe_t *readiness_probe,
list_t *resize_policy,
v1_resource_requirements_t *resources,
char *restart_policy,
v1_security_context_t *security_context,
v1_probe_t *startup_probe,
int _stdin,
int stdin_once,
char *termination_message_path,
char *termination_message_policy,
int tty,
list_t *volume_devices,
list_t *volume_mounts,
char *working_dir
);
void v1_container_free(v1_container_t *v1_container);
v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON);
cJSON *v1_container_convertToJSON(v1_container_t *v1_container);
#endif /* _v1_container_H_ */