Documentation
¶
Overview ¶
Package ps provides options for the compose ps command
Index ¶
- func WithAll() compose.SetComposePsOption
- func WithFilter(keyValue string) compose.SetComposePsOption
- func WithFormat(format string) compose.SetComposePsOption
- func WithNoTrunc() compose.SetComposePsOption
- func WithOrphans(include bool) compose.SetComposePsOption
- func WithProfiles(profiles ...string) compose.SetComposePsOption
- func WithQuiet() compose.SetComposePsOption
- func WithServiceNames(names ...string) compose.SetComposePsOption
- func WithServices() compose.SetComposePsOption
- func WithStatus(status string) compose.SetComposePsOption
- func WithWriter(writer io.Writer) compose.SetComposePsOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAll ¶
func WithAll() compose.SetComposePsOption
WithAll shows all stopped containers (including those created by run)
func WithFilter ¶
func WithFilter(keyValue string) compose.SetComposePsOption
WithFilter adds a filter (e.g. "status=running")
func WithFormat ¶
func WithFormat(format string) compose.SetComposePsOption
WithFormat sets the output format (e.g. "table", "json")
func WithNoTrunc ¶
func WithNoTrunc() compose.SetComposePsOption
WithNoTrunc disables truncation of output
func WithOrphans ¶
func WithOrphans(include bool) compose.SetComposePsOption
WithOrphans sets whether to include orphaned services (false = --no-orphans)
func WithProfiles ¶
func WithProfiles(profiles ...string) compose.SetComposePsOption
WithProfiles sets the profiles to activate
func WithServiceNames ¶
func WithServiceNames(names ...string) compose.SetComposePsOption
WithServiceNames sets the optional service names (positional args)
func WithStatus ¶
func WithStatus(status string) compose.SetComposePsOption
WithStatus filters by status (e.g. "running", "exited")
func WithWriter ¶
func WithWriter(writer io.Writer) compose.SetComposePsOption
WithWriter sets the writer for stdout/stderr
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.