397 lines
17 KiB
C
397 lines
17 KiB
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include "../include/apiClient.h"
|
|
#include "../include/list.h"
|
|
#include "../external/cJSON.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "../model/object.h"
|
|
#include "../model/v1_api_resource_list.h"
|
|
#include "../model/v1_controller_revision.h"
|
|
#include "../model/v1_controller_revision_list.h"
|
|
#include "../model/v1_daemon_set.h"
|
|
#include "../model/v1_daemon_set_list.h"
|
|
#include "../model/v1_delete_options.h"
|
|
#include "../model/v1_deployment.h"
|
|
#include "../model/v1_deployment_list.h"
|
|
#include "../model/v1_replica_set.h"
|
|
#include "../model/v1_replica_set_list.h"
|
|
#include "../model/v1_scale.h"
|
|
#include "../model/v1_stateful_set.h"
|
|
#include "../model/v1_stateful_set_list.h"
|
|
#include "../model/v1_status.h"
|
|
|
|
|
|
// create a ControllerRevision
|
|
//
|
|
v1_controller_revision_t*
|
|
AppsV1API_createNamespacedControllerRevision(apiClient_t *apiClient, char *_namespace, v1_controller_revision_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// create a DaemonSet
|
|
//
|
|
v1_daemon_set_t*
|
|
AppsV1API_createNamespacedDaemonSet(apiClient_t *apiClient, char *_namespace, v1_daemon_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// create a Deployment
|
|
//
|
|
v1_deployment_t*
|
|
AppsV1API_createNamespacedDeployment(apiClient_t *apiClient, char *_namespace, v1_deployment_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// create a ReplicaSet
|
|
//
|
|
v1_replica_set_t*
|
|
AppsV1API_createNamespacedReplicaSet(apiClient_t *apiClient, char *_namespace, v1_replica_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// create a StatefulSet
|
|
//
|
|
v1_stateful_set_t*
|
|
AppsV1API_createNamespacedStatefulSet(apiClient_t *apiClient, char *_namespace, v1_stateful_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// delete collection of ControllerRevision
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteCollectionNamespacedControllerRevision(apiClient_t *apiClient, char *_namespace, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
|
|
|
|
|
// delete collection of DaemonSet
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteCollectionNamespacedDaemonSet(apiClient_t *apiClient, char *_namespace, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
|
|
|
|
|
// delete collection of Deployment
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteCollectionNamespacedDeployment(apiClient_t *apiClient, char *_namespace, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
|
|
|
|
|
// delete collection of ReplicaSet
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteCollectionNamespacedReplicaSet(apiClient_t *apiClient, char *_namespace, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
|
|
|
|
|
// delete collection of StatefulSet
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteCollectionNamespacedStatefulSet(apiClient_t *apiClient, char *_namespace, char *pretty, char *_continue, char *dryRun, char *fieldSelector, int *gracePeriodSeconds, char *labelSelector, int *limit, int *orphanDependents, char *propagationPolicy, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, v1_delete_options_t *body);
|
|
|
|
|
|
// delete a ControllerRevision
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteNamespacedControllerRevision(apiClient_t *apiClient, char *name, char *_namespace, char *pretty, char *dryRun, int *gracePeriodSeconds, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
|
|
|
|
|
// delete a DaemonSet
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteNamespacedDaemonSet(apiClient_t *apiClient, char *name, char *_namespace, char *pretty, char *dryRun, int *gracePeriodSeconds, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
|
|
|
|
|
// delete a Deployment
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteNamespacedDeployment(apiClient_t *apiClient, char *name, char *_namespace, char *pretty, char *dryRun, int *gracePeriodSeconds, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
|
|
|
|
|
// delete a ReplicaSet
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteNamespacedReplicaSet(apiClient_t *apiClient, char *name, char *_namespace, char *pretty, char *dryRun, int *gracePeriodSeconds, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
|
|
|
|
|
// delete a StatefulSet
|
|
//
|
|
v1_status_t*
|
|
AppsV1API_deleteNamespacedStatefulSet(apiClient_t *apiClient, char *name, char *_namespace, char *pretty, char *dryRun, int *gracePeriodSeconds, int *orphanDependents, char *propagationPolicy, v1_delete_options_t *body);
|
|
|
|
|
|
// get available resources
|
|
//
|
|
v1_api_resource_list_t*
|
|
AppsV1API_getAPIResources_5(apiClient_t *apiClient);
|
|
|
|
|
|
// list or watch objects of kind ControllerRevision
|
|
//
|
|
v1_controller_revision_list_t*
|
|
AppsV1API_listControllerRevisionForAllNamespaces(apiClient_t *apiClient, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *pretty, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind DaemonSet
|
|
//
|
|
v1_daemon_set_list_t*
|
|
AppsV1API_listDaemonSetForAllNamespaces(apiClient_t *apiClient, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *pretty, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind Deployment
|
|
//
|
|
v1_deployment_list_t*
|
|
AppsV1API_listDeploymentForAllNamespaces(apiClient_t *apiClient, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *pretty, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind ControllerRevision
|
|
//
|
|
v1_controller_revision_list_t*
|
|
AppsV1API_listNamespacedControllerRevision(apiClient_t *apiClient, char *_namespace, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind DaemonSet
|
|
//
|
|
v1_daemon_set_list_t*
|
|
AppsV1API_listNamespacedDaemonSet(apiClient_t *apiClient, char *_namespace, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind Deployment
|
|
//
|
|
v1_deployment_list_t*
|
|
AppsV1API_listNamespacedDeployment(apiClient_t *apiClient, char *_namespace, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind ReplicaSet
|
|
//
|
|
v1_replica_set_list_t*
|
|
AppsV1API_listNamespacedReplicaSet(apiClient_t *apiClient, char *_namespace, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind StatefulSet
|
|
//
|
|
v1_stateful_set_list_t*
|
|
AppsV1API_listNamespacedStatefulSet(apiClient_t *apiClient, char *_namespace, char *pretty, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind ReplicaSet
|
|
//
|
|
v1_replica_set_list_t*
|
|
AppsV1API_listReplicaSetForAllNamespaces(apiClient_t *apiClient, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *pretty, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// list or watch objects of kind StatefulSet
|
|
//
|
|
v1_stateful_set_list_t*
|
|
AppsV1API_listStatefulSetForAllNamespaces(apiClient_t *apiClient, int *allowWatchBookmarks, char *_continue, char *fieldSelector, char *labelSelector, int *limit, char *pretty, char *resourceVersion, char *resourceVersionMatch, int *sendInitialEvents, int *timeoutSeconds, int *watch);
|
|
|
|
|
|
// partially update the specified ControllerRevision
|
|
//
|
|
v1_controller_revision_t*
|
|
AppsV1API_patchNamespacedControllerRevision(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update the specified DaemonSet
|
|
//
|
|
v1_daemon_set_t*
|
|
AppsV1API_patchNamespacedDaemonSet(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update status of the specified DaemonSet
|
|
//
|
|
v1_daemon_set_t*
|
|
AppsV1API_patchNamespacedDaemonSetStatus(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update the specified Deployment
|
|
//
|
|
v1_deployment_t*
|
|
AppsV1API_patchNamespacedDeployment(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update scale of the specified Deployment
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_patchNamespacedDeploymentScale(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update status of the specified Deployment
|
|
//
|
|
v1_deployment_t*
|
|
AppsV1API_patchNamespacedDeploymentStatus(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update the specified ReplicaSet
|
|
//
|
|
v1_replica_set_t*
|
|
AppsV1API_patchNamespacedReplicaSet(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update scale of the specified ReplicaSet
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_patchNamespacedReplicaSetScale(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update status of the specified ReplicaSet
|
|
//
|
|
v1_replica_set_t*
|
|
AppsV1API_patchNamespacedReplicaSetStatus(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update the specified StatefulSet
|
|
//
|
|
v1_stateful_set_t*
|
|
AppsV1API_patchNamespacedStatefulSet(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update scale of the specified StatefulSet
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_patchNamespacedStatefulSetScale(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// partially update status of the specified StatefulSet
|
|
//
|
|
v1_stateful_set_t*
|
|
AppsV1API_patchNamespacedStatefulSetStatus(apiClient_t *apiClient, char *name, char *_namespace, object_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation, int *force);
|
|
|
|
|
|
// read the specified ControllerRevision
|
|
//
|
|
v1_controller_revision_t*
|
|
AppsV1API_readNamespacedControllerRevision(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read the specified DaemonSet
|
|
//
|
|
v1_daemon_set_t*
|
|
AppsV1API_readNamespacedDaemonSet(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read status of the specified DaemonSet
|
|
//
|
|
v1_daemon_set_t*
|
|
AppsV1API_readNamespacedDaemonSetStatus(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read the specified Deployment
|
|
//
|
|
v1_deployment_t*
|
|
AppsV1API_readNamespacedDeployment(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read scale of the specified Deployment
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_readNamespacedDeploymentScale(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read status of the specified Deployment
|
|
//
|
|
v1_deployment_t*
|
|
AppsV1API_readNamespacedDeploymentStatus(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read the specified ReplicaSet
|
|
//
|
|
v1_replica_set_t*
|
|
AppsV1API_readNamespacedReplicaSet(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read scale of the specified ReplicaSet
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_readNamespacedReplicaSetScale(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read status of the specified ReplicaSet
|
|
//
|
|
v1_replica_set_t*
|
|
AppsV1API_readNamespacedReplicaSetStatus(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read the specified StatefulSet
|
|
//
|
|
v1_stateful_set_t*
|
|
AppsV1API_readNamespacedStatefulSet(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read scale of the specified StatefulSet
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_readNamespacedStatefulSetScale(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// read status of the specified StatefulSet
|
|
//
|
|
v1_stateful_set_t*
|
|
AppsV1API_readNamespacedStatefulSetStatus(apiClient_t *apiClient, char *name, char *_namespace, char *pretty);
|
|
|
|
|
|
// replace the specified ControllerRevision
|
|
//
|
|
v1_controller_revision_t*
|
|
AppsV1API_replaceNamespacedControllerRevision(apiClient_t *apiClient, char *name, char *_namespace, v1_controller_revision_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace the specified DaemonSet
|
|
//
|
|
v1_daemon_set_t*
|
|
AppsV1API_replaceNamespacedDaemonSet(apiClient_t *apiClient, char *name, char *_namespace, v1_daemon_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace status of the specified DaemonSet
|
|
//
|
|
v1_daemon_set_t*
|
|
AppsV1API_replaceNamespacedDaemonSetStatus(apiClient_t *apiClient, char *name, char *_namespace, v1_daemon_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace the specified Deployment
|
|
//
|
|
v1_deployment_t*
|
|
AppsV1API_replaceNamespacedDeployment(apiClient_t *apiClient, char *name, char *_namespace, v1_deployment_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace scale of the specified Deployment
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_replaceNamespacedDeploymentScale(apiClient_t *apiClient, char *name, char *_namespace, v1_scale_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace status of the specified Deployment
|
|
//
|
|
v1_deployment_t*
|
|
AppsV1API_replaceNamespacedDeploymentStatus(apiClient_t *apiClient, char *name, char *_namespace, v1_deployment_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace the specified ReplicaSet
|
|
//
|
|
v1_replica_set_t*
|
|
AppsV1API_replaceNamespacedReplicaSet(apiClient_t *apiClient, char *name, char *_namespace, v1_replica_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace scale of the specified ReplicaSet
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_replaceNamespacedReplicaSetScale(apiClient_t *apiClient, char *name, char *_namespace, v1_scale_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace status of the specified ReplicaSet
|
|
//
|
|
v1_replica_set_t*
|
|
AppsV1API_replaceNamespacedReplicaSetStatus(apiClient_t *apiClient, char *name, char *_namespace, v1_replica_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace the specified StatefulSet
|
|
//
|
|
v1_stateful_set_t*
|
|
AppsV1API_replaceNamespacedStatefulSet(apiClient_t *apiClient, char *name, char *_namespace, v1_stateful_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace scale of the specified StatefulSet
|
|
//
|
|
v1_scale_t*
|
|
AppsV1API_replaceNamespacedStatefulSetScale(apiClient_t *apiClient, char *name, char *_namespace, v1_scale_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|
|
// replace status of the specified StatefulSet
|
|
//
|
|
v1_stateful_set_t*
|
|
AppsV1API_replaceNamespacedStatefulSetStatus(apiClient_t *apiClient, char *name, char *_namespace, v1_stateful_set_t *body, char *pretty, char *dryRun, char *fieldManager, char *fieldValidation);
|
|
|
|
|