|
clibdocker
0.1.0-alpha.0
A Docker API for C
|
Docker Ignore File API. More...

Go to the source code of this file.
Macros | |
| #define | DOCKER_IGNORE_NULL 501 |
| #define | DOCKER_IGNORE_EMPTY 502 |
| #define | DOCKER_IGNORE_LIST_NULL 503 |
| #define | DOCKER_IGNORE_ALLOC_ERROR 504 |
Functions | |
| d_err_t | readlines_dockerignore (const char *contents, arraylist *lines) |
| int | dockerignore_check (arraylist *ignore, const char *path) |
| Not implemeted. More... | |
| arraylist * | list_dir_w_ignore (const char *folder_path, const char *dockerignore_path) |
| List given folder path, while applying the rules in the docker ignore list. More... | |
Docker Ignore File API.
| #define DOCKER_IGNORE_ALLOC_ERROR 504 |
Docker ignore allocation error code
| #define DOCKER_IGNORE_EMPTY 502 |
Docker ignore file is empty error code
| #define DOCKER_IGNORE_LIST_NULL 503 |
Docker ignore list is null error code
| #define DOCKER_IGNORE_NULL 501 |
Docker ignore file is null error code
| int dockerignore_check | ( | arraylist * | ignore, |
| const char * | path | ||
| ) |
Not implemeted.
| ignore | |
| path |
| arraylist* list_dir_w_ignore | ( | const char * | folder_path, |
| const char * | dockerignore_path | ||
| ) |
List given folder path, while applying the rules in the docker ignore list.
| folder_path | path to the folder/dir to list |
| dockerignore_path | path to the docker ignore file |
References docker_log_debug, readlines_dockerignore(), and str_clone().
| d_err_t readlines_dockerignore | ( | const char * | contents, |
| arraylist * | lines | ||
| ) |
Parse the contents of the dockerignore file into lines
| contents | string contents of the file |
| lines | pointer to arraylist which will store the lines |
Referenced by list_dir_w_ignore().