Files
c/kubernetes/config/kube_config_util.h
Hui Yu 43aaf95cd1 [Configuration]
1. Authentication provider plugin framework

2. An instance of authentication provider plugin for OIDC (OpenID Connect)
2020-08-19 21:38:06 +08:00

101 lines
1.4 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);
/*
* clear_and_free_string_list
*
* Description:
*
* clear the content and free the memory for a string list
*
* Return:
*
* None
*
* Parameter:
*
* IN:
* list: The string list needs to clear and free
*
* OUT:
* None
*
*/
void clear_and_free_string_list(list_t * list);
#ifdef __cplusplus
}
#endif
#endif /* _KUBE_CONFIG_UTIL_H */