STASIS
A pipeline delivery generator
Toggle main menu visibility
Loading...
Searching...
No Matches
src
lib
core
include
docker.h
Go to the documentation of this file.
1
2
#ifndef STASIS_DOCKER_H
3
#define STASIS_DOCKER_H
4
5
#include "
core.h
"
6
8
#define STASIS_DOCKER_QUIET 1 << 1
9
#define STASIS_DOCKER_QUIET_STDOUT 1 << 2
10
#define STASIS_DOCKER_QUIET_STDERR 1 << 3
11
13
#define STASIS_DOCKER_BUILD 1 << 1
15
#define STASIS_DOCKER_BUILD_X 1 << 2
16
18
#define STASIS_DOCKER_IMAGE_COMPRESSION "zstd"
19
20
struct
DockerCapabilities
{
21
int
podman
;
22
int
build
;
23
int
available
;
24
int
usable
;
25
};
26
44
int
docker_capable
(
struct
DockerCapabilities
*result);
45
62
int
docker_exec
(
const
char
*args,
unsigned
flags);
63
87
int
docker_build
(
const
char
*dirpath,
const
char
*args,
int
engine);
88
int
docker_script(
const
char
*image,
char
*args,
char
*data,
unsigned
flags);
89
int
docker_save(
const
char
*image,
const
char
*destdir,
const
char
*compression_program);
90
void
docker_sanitize_tag(
char
*str);
91
int
docker_validate_compression_program(
char
*prog);
92
93
94
#endif
//STASIS_DOCKER_H
core.h
docker_exec
int docker_exec(const char *args, unsigned flags)
Definition
docker.c:3
docker_capable
int docker_capable(struct DockerCapabilities *result)
Definition
docker.c:156
docker_build
int docker_build(const char *dirpath, const char *args, int engine)
Definition
docker.c:64
DockerCapabilities
Definition
docker.h:20
DockerCapabilities::podman
int podman
Is "docker" really podman?
Definition
docker.h:21
DockerCapabilities::available
int available
Is a "docker" program available?
Definition
docker.h:23
DockerCapabilities::usable
int usable
Is docker in a usable state for the current user?
Definition
docker.h:24
DockerCapabilities::build
int build
Is a build plugin available?
Definition
docker.h:22
Generated by
1.17.0