Files
c/kubernetes/model/v1_seccomp_profile.h
Kubernetes Prow Robot cf0538fd4d Automated openapi generation from release-1.24
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
2022-06-05 18:16:17 +00:00

40 lines
927 B
C

/*
* v1_seccomp_profile.h
*
* SeccompProfile defines a pod/container&#39;s seccomp profile settings. Only one profile source may be set.
*/
#ifndef _v1_seccomp_profile_H_
#define _v1_seccomp_profile_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct v1_seccomp_profile_t v1_seccomp_profile_t;
typedef struct v1_seccomp_profile_t {
char *localhost_profile; // string
char *type; // string
} v1_seccomp_profile_t;
v1_seccomp_profile_t *v1_seccomp_profile_create(
char *localhost_profile,
char *type
);
void v1_seccomp_profile_free(v1_seccomp_profile_t *v1_seccomp_profile);
v1_seccomp_profile_t *v1_seccomp_profile_parseFromJSON(cJSON *v1_seccomp_profileJSON);
cJSON *v1_seccomp_profile_convertToJSON(v1_seccomp_profile_t *v1_seccomp_profile);
#endif /* _v1_seccomp_profile_H_ */