Files
c/kubernetes/config/kube_config_util.h
Hui Yu 84c76b5d49 1. Re-generate c client to merge PR #7467 of openapi-generator
2. Remove the duplicated definition of "clear_and_free_string_list" after code merge
2020-09-26 13:09:03 +08:00

79 lines
1.1 KiB
C

#ifndef _KUBE_CONFIG_UTIL_H
#define _KUBE_CONFIG_UTIL_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* kubeconfig_mk_cert_key_tempfile
*
* Description:
*
* Create a temporary file to persist SSL/TLS certificate or key
*
* Return:
*
* char * : File name of created temporary file
* NULL : Failed to create temporary file
*
* Parameter:
*
* IN:
* data: raw data of SSL/TLS certificate or key
*
* OUT:
* None
*
*/
char *kubeconfig_mk_cert_key_tempfile(const char *data);
/*
* unsetSslConfig
*
* Description:
*
* unset the SSL configuration
*
* Return:
*
* None
*
* Parameter:
*
* IN:
* sslConfig: The SSL configuration
*
* OUT:
* None
*
*/
void unsetSslConfig(sslConfig_t * sslConfig);
/*
* clear_and_free_string_pair_list
*
* Description:
*
* clear the content and free the memory for a string pair list
*
* Return:
*
* None
*
* Parameter:
*
* IN:
* list: The string pair list needs to clear and free
*
* OUT:
* None
*
*/
void clear_and_free_string_pair_list(list_t * list);
#ifdef __cplusplus
}
#endif
#endif /* _KUBE_CONFIG_UTIL_H */