Documentation
¶
Overview ¶
Package down is the package for the compose down options
Index ¶
- func WithProfiles(profiles ...string) compose.SetComposeDownOption
- func WithRemoveImage(flag RemoveImageFlag) compose.SetComposeDownOption
- func WithRemoveOrphans() compose.SetComposeDownOption
- func WithRemoveVolumes() compose.SetComposeDownOption
- func WithTimeout(timeout int) compose.SetComposeDownOption
- func WithWriter(writer io.Writer) compose.SetComposeDownOption
- type RemoveImageFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithProfiles ¶ added in v0.1.3
func WithProfiles(profiles ...string) compose.SetComposeDownOption
WithProfiles is a function that sets the profiles for the compose down command
func WithRemoveImage ¶
func WithRemoveImage(flag RemoveImageFlag) compose.SetComposeDownOption
WithRemoveImage is a function that sets the remove image flag
func WithRemoveOrphans ¶
func WithRemoveOrphans() compose.SetComposeDownOption
WithRemoveOrphans is a function that sets the remove orphans flag
func WithRemoveVolumes ¶
func WithRemoveVolumes() compose.SetComposeDownOption
WithRemoveVolumes is a function that sets the remove volumes flag
Remove named volumes declared in the "volumes" section of the Compose file and anonymous volumes attached to containers
func WithTimeout ¶
func WithTimeout(timeout int) compose.SetComposeDownOption
WithTimeout is a function that sets the timeout flag in seconds
func WithWriter ¶
func WithWriter(writer io.Writer) compose.SetComposeDownOption
WithWriter sets the writer for the compose down command stdout and stderr
if writer is nil, it will use os.Stdout as a fallback
Types ¶
type RemoveImageFlag ¶
type RemoveImageFlag string
const ( RemoveAll RemoveImageFlag = "all" RemoveNone RemoveImageFlag = "none" )
Click to show internal directories.
Click to hide internal directories.