Documentation ¶
Index ¶
- Constants
- func EnvConfig(cmd *cobra.Command) error
- func GetSecretsFromFiles(rootCmd *cobra.Command)
- 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()
Constants ¶
View Source
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 ¶ added in v1.0.3
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 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.