41 lines
935 B
C
41 lines
935 B
C
/*
|
|
* v1_ingress_tls.h
|
|
*
|
|
* IngressTLS describes the transport layer security associated with an ingress.
|
|
*/
|
|
|
|
#ifndef _v1_ingress_tls_H_
|
|
#define _v1_ingress_tls_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1_ingress_tls_t v1_ingress_tls_t;
|
|
|
|
|
|
|
|
|
|
typedef struct v1_ingress_tls_t {
|
|
list_t *hosts; //primitive container
|
|
char *secret_name; // string
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v1_ingress_tls_t;
|
|
|
|
__attribute__((deprecated)) v1_ingress_tls_t *v1_ingress_tls_create(
|
|
list_t *hosts,
|
|
char *secret_name
|
|
);
|
|
|
|
void v1_ingress_tls_free(v1_ingress_tls_t *v1_ingress_tls);
|
|
|
|
v1_ingress_tls_t *v1_ingress_tls_parseFromJSON(cJSON *v1_ingress_tlsJSON);
|
|
|
|
cJSON *v1_ingress_tls_convertToJSON(v1_ingress_tls_t *v1_ingress_tls);
|
|
|
|
#endif /* _v1_ingress_tls_H_ */
|
|
|