Documentation
¶
Overview ¶
Package preflight checks, on the host it runs on, the environment properties that SECURITY.md's guarantees rely on.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerAPI ¶
type DockerAPI interface {
Info(
ctx context.Context,
options dockerclient.InfoOptions,
) (dockerclient.SystemInfoResult, error)
PluginList(
ctx context.Context,
options dockerclient.PluginListOptions,
) (dockerclient.PluginListResult, error)
ContainerList(
ctx context.Context,
options dockerclient.ContainerListOptions,
) (dockerclient.ContainerListResult, error)
ContainerInspect(
ctx context.Context,
containerID string,
options dockerclient.ContainerInspectOptions,
) (dockerclient.ContainerInspectResult, error)
NetworkInspect(
ctx context.Context,
networkID string,
options dockerclient.NetworkInspectOptions,
) (dockerclient.NetworkInspectResult, error)
VolumeInspect(
ctx context.Context,
volumeID string,
options dockerclient.VolumeInspectOptions,
) (dockerclient.VolumeInspectResult, error)
}
DockerAPI is the part of the Docker client the preflight uses.
type Env ¶
type Env struct {
Docker DockerAPI
Run func(ctx context.Context, name string, args ...string) ([]byte, error)
DataDir string
}
Env is what the preflight checks: the Docker API, a way to run host commands, the plugin's data directory, and the shared certificate directory as mounted where the preflight runs (empty if it is not).
Click to show internal directories.
Click to hide internal directories.