Documentation ¶
Index ¶
- Constants
- func EnvConfig(cmd *cobra.Command) error
- func GetSecretsFromFiles(rootCmd *cobra.Command)
- func ProcessFlagAliases(flags *pflag.FlagSet)
- func ReadFlags(cmd *cobra.Command) (bool, bool, bool, time.Duration)
- func RegisterDockerFlags(rootCmd *cobra.Command)
- func RegisterNotificationFlags(rootCmd *cobra.Command)
- func RegisterSystemFlags(rootCmd *cobra.Command)
- func SetDefaults()
- func SetupLogging(f *pflag.FlagSet) error
Constants ¶
const DockerAPIMinVersion string = "1.25"
DockerAPIMinVersion is the minimum version of the docker api required to use watchtower
Variables ¶
This section is empty.
Functions ¶
func EnvConfig ¶
EnvConfig translates the command-line options into environment variables that will initialize the api client
func GetSecretsFromFiles ¶
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 ProcessFlagAliases ¶
ProcessFlagAliases updates the value of flags that are being set by helper flags
func RegisterDockerFlags ¶
RegisterDockerFlags that are used directly by the docker api client
func RegisterNotificationFlags ¶
RegisterNotificationFlags that are used by watchtower to send notifications
func RegisterSystemFlags ¶
RegisterSystemFlags that are used by watchtower to modify the program flow
func SetupLogging ¶
SetupLogging reads only the flags that is needed to set up logging and applies them to the global logger
Types ¶
This section is empty.