watchtower: Index | Files

package flags

import ""


Package Files



const DockerAPIMinVersion string = "1.25"

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

func EnvConfig Uses

func EnvConfig(cmd *cobra.Command) error

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

func GetSecretsFromFiles Uses

func GetSecretsFromFiles(rootCmd *cobra.Command)

GetSecretsFromFiles checks if passwords/tokens/webhooks have been passed as a file instead of plaintext. If so, the value of the flag will be replaced with the contents of the file.

func ReadFlags Uses

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

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

func RegisterDockerFlags Uses

func RegisterDockerFlags(rootCmd *cobra.Command)

RegisterDockerFlags that are used directly by the docker api client

func RegisterNotificationFlags Uses

func RegisterNotificationFlags(rootCmd *cobra.Command)

RegisterNotificationFlags that are used by watchtower to send notifications

func RegisterSystemFlags Uses

func RegisterSystemFlags(rootCmd *cobra.Command)

RegisterSystemFlags that are used by watchtower to modify the program flow

func SetDefaults Uses

func SetDefaults()

SetDefaults provides default values for environment variables

Package flags imports 8 packages (graph) and is imported by 3 packages. Updated 2020-06-16. Refresh now. Tools for package owners.