Documentation
¶
Overview ¶
Package cli is the wctr command: subcommands in the familiar container CLI grammar (pull, run, ps, logs, rm, rmi, inspect, images) speaking the engine's API, which is compatible with the Docker Engine API.
It is a package so that the command runs anywhere a client can reach a daemon: cmd/wctr over a unix socket, the browser playground in-process through an in-memory transport. It imports no runtime and nothing native, so it also builds for GOOS=wasip1 and GOOS=js.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exit ¶
Exit is a status RunE wants the process to end with (`wctr run` returns the container's).
Types ¶
type Options ¶
type Options struct {
// Version is what --version and `wctr version` print (default "dev").
Version string
// DefaultHost is the -H default (default api.DefaultHost()).
DefaultHost string
// Client connects to a host; nil means api.NewClient.
Client func(host string) (*api.Client, error)
// LookupEnv resolves `-e KEY` (default os.LookupEnv).
LookupEnv func(string) (string, bool)
}
Options configure a command tree.
Click to show internal directories.
Click to hide internal directories.