2020-11-02 21:38:52 +08:00
|
|
|
#ifndef __MT_H__
|
|
|
|
|
#define __MT_H__
|
|
|
|
|
|
|
|
|
|
#include "../include/apiClient.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <malloc.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <errno.h>
|
2021-09-04 12:49:02 -03:00
|
|
|
#ifndef _WIN32
|
2020-11-02 21:38:52 +08:00
|
|
|
#include <unistd.h>
|
2021-09-04 12:49:02 -03:00
|
|
|
#endif
|
2020-11-02 21:38:52 +08:00
|
|
|
#include <pthread.h>
|
|
|
|
|
#include <apiClient.h>
|
|
|
|
|
#include <CoreV1API.h>
|
|
|
|
|
|
|
|
|
|
typedef struct kube_params_t {
|
|
|
|
|
char *basePath;
|
|
|
|
|
sslConfig_t *sslConfig;
|
|
|
|
|
list_t *apiKeys;
|
|
|
|
|
} kube_params_t;
|
|
|
|
|
|
|
|
|
|
extern void *watch_pod_thread_func(void *);
|
|
|
|
|
extern void *create_pod_thread_func(void *);
|
|
|
|
|
|
|
|
|
|
extern bool g_exit_watch;
|
|
|
|
|
extern pthread_mutex_t exit_watch_mutex;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
#endif // __MT_H__
|