Ziti C SDK
Loading...
Searching...
No Matches
ziti_events.h
Go to the documentation of this file.
1// Copyright (c) 2020-2023. NetFoundry Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15
16#ifndef ZITI_SDK_ZITI_EVENTS_H
17#define ZITI_SDK_ZITI_EVENTS_H
18
19#include "ziti_model.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
39
52
60 const char *err;
61 size_t ctrl_count;
63};
64
66 const char *id;
67 const char *url;
68 bool online;
69 bool active;
70};
71
73 const char *identity_name;
75};
83 const char *name;
84 const char *address;
85 const char *version;
86};
87
107
137
144typedef struct ziti_event_s {
146 union {
148 struct ziti_router_event router;
149 struct ziti_service_event service;
150 struct ziti_auth_event auth;
152 };
154
155#ifdef __cplusplus
156}
157#endif
158
159#endif //ZITI_SDK_ZITI_EVENTS_H
Definition ziti_events.h:65
const char * id
Definition ziti_events.h:66
bool online
Definition ziti_events.h:68
bool active
Definition ziti_events.h:69
const char * url
Definition ziti_events.h:67
Event notifying the app that additional action is required to continue authentication or normal opera...
Definition ziti_events.h:131
const char * type
Definition ziti_events.h:133
enum ziti_auth_action action
Definition ziti_events.h:132
ziti_jwt_signer_array providers
Definition ziti_events.h:135
const char * detail
Definition ziti_events.h:134
Definition ziti_events.h:72
const char * identity_name
Definition ziti_events.h:73
const ziti_config * config
Definition ziti_events.h:74
Definition ziti_model.h:262
Context event.
Definition ziti_events.h:58
int ctrl_status
Definition ziti_events.h:59
struct ctrl_detail_s * ctrl_details
Definition ziti_events.h:62
const char * err
Definition ziti_events.h:60
size_t ctrl_count
Definition ziti_events.h:61
Object passed to ziti_options.event_cb.
Definition ziti_events.h:144
ziti_event_type type
Definition ziti_events.h:145
Definition ziti_model.h:258
Edge Router Event.
Definition ziti_events.h:81
const char * address
Definition ziti_events.h:84
const char * version
Definition ziti_events.h:85
const char * name
Definition ziti_events.h:83
ziti_router_status status
Definition ziti_events.h:82
Ziti Service Status event.
Definition ziti_events.h:96
ziti_service_array added
Newly available services in the Ziti Context.
Definition ziti_events.h:105
ziti_service_array removed
Services no longer available in the Ziti Context.
Definition ziti_events.h:99
ziti_service_array changed
Modified services – name, permissions, configs, etc.
Definition ziti_events.h:102
Definition ziti_model.h:272
ziti_router_status
Ziti Edge Router status.
Definition ziti_events.h:45
@ EdgeRouterUnavailable
Definition ziti_events.h:50
@ EdgeRouterConnected
Definition ziti_events.h:47
@ EdgeRouterDisconnected
Definition ziti_events.h:48
@ EdgeRouterAdded
Definition ziti_events.h:46
@ EdgeRouterRemoved
Definition ziti_events.h:49
ziti_auth_action
Definition ziti_events.h:108
@ ziti_auth_prompt_pin
Definition ziti_events.h:111
@ ziti_auth_cannot_continue
Definition ziti_events.h:109
@ ziti_auth_select_external
Definition ziti_events.h:112
@ ziti_auth_prompt_totp
Definition ziti_events.h:110
@ ziti_auth_login_external
Definition ziti_events.h:113
ziti_event_type
Ziti Event Types.
Definition ziti_events.h:32
@ ZitiRouterEvent
Definition ziti_events.h:34
@ ZitiAuthEvent
Definition ziti_events.h:36
@ ZitiContextEvent
Definition ziti_events.h:33
@ ZitiServiceEvent
Definition ziti_events.h:35
@ ZitiConfigEvent
Definition ziti_events.h:37