-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstructs.h
59 lines (48 loc) · 837 Bytes
/
structs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef _BUILDER_H
#define _BUILDER_H
#include <unistd.h>
typedef struct {
int time_to_live;
pid_t pid;
const char *build_id;
} li_data;
typedef struct {
union {
char *write_ptr;
const char *read_ptr;
} ptrs;
int offset;
} mem_t;
typedef struct {
pid_t pid;
int read_fd;
} child_t;
typedef struct
{
char *hostname;
char *move_output_cmd;
char *container_data_path;
char *commit_hash_path;
char *fail_reason_path;
} strings_t;
typedef struct {
int is_git;
char *branch;
char *type;
char *cmd;
uid_t run_as_uid;
gid_t run_as_gid;
} builder_t;
typedef struct {
char *abf_api_url;
char *query_string;
char *api_token;
char *file_store_url;
char *work_dir;
char *output_dir;
char *git_scripts_dir;
strings_t strings;
int builder_scripts_len;
builder_t *builder_scripts;
} builder_config_t;
#endif