Back to

package flags

Latest Go to latest
Published: May 22, 2020 | License: Apache-2.0 | Module:



const DockerAPIMinVersion string = "1.25"

DockerAPIMinVersion is the minimum version of the docker api required to use watchtower

func EnvConfig

func EnvConfig(cmd *cobra.Command) error

EnvConfig translates the command-line options into environment variables that will initialize the api client

func ReadFlags

func ReadFlags(cmd *cobra.Command) (bool, bool, bool, time.Duration)

ReadFlags reads common flags used in the main program flow of watchtower

func RegisterDockerFlags

func RegisterDockerFlags(rootCmd *cobra.Command)

RegisterDockerFlags that are used directly by the docker api client

func RegisterNotificationFlags

func RegisterNotificationFlags(rootCmd *cobra.Command)

RegisterNotificationFlags that are used by watchtower to send notifications

func RegisterSystemFlags

func RegisterSystemFlags(rootCmd *cobra.Command)

RegisterSystemFlags that are used by watchtower to modify the program flow

func SetDefaults

func SetDefaults()

SetDefaults provides default values for environment variables

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier