49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* v1alpha1_cluster_role.h
|
|
*
|
|
* ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.
|
|
*/
|
|
|
|
#ifndef _v1alpha1_cluster_role_H_
|
|
#define _v1alpha1_cluster_role_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1alpha1_cluster_role_t v1alpha1_cluster_role_t;
|
|
|
|
#include "v1_object_meta.h"
|
|
#include "v1alpha1_aggregation_rule.h"
|
|
#include "v1alpha1_policy_rule.h"
|
|
|
|
|
|
|
|
typedef struct v1alpha1_cluster_role_t {
|
|
struct v1alpha1_aggregation_rule_t *aggregation_rule; //model
|
|
char *api_version; // string
|
|
char *kind; // string
|
|
struct v1_object_meta_t *metadata; //model
|
|
list_t *rules; //nonprimitive container
|
|
|
|
} v1alpha1_cluster_role_t;
|
|
|
|
v1alpha1_cluster_role_t *v1alpha1_cluster_role_create(
|
|
v1alpha1_aggregation_rule_t *aggregation_rule,
|
|
char *api_version,
|
|
char *kind,
|
|
v1_object_meta_t *metadata,
|
|
list_t *rules
|
|
);
|
|
|
|
void v1alpha1_cluster_role_free(v1alpha1_cluster_role_t *v1alpha1_cluster_role);
|
|
|
|
v1alpha1_cluster_role_t *v1alpha1_cluster_role_parseFromJSON(cJSON *v1alpha1_cluster_roleJSON);
|
|
|
|
cJSON *v1alpha1_cluster_role_convertToJSON(v1alpha1_cluster_role_t *v1alpha1_cluster_role);
|
|
|
|
#endif /* _v1alpha1_cluster_role_H_ */
|
|
|