flags

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func EnvConfig(cmd *cobra.Command) error

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

func GetSecretsFromFiles added in v1.0.3

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 ProcessFlagAliases added in v1.5.0

func ProcessFlagAliases(flags *pflag.FlagSet)

ProcessFlagAliases updates the value of flags that are being set by helper flags

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

func SetupLogging added in v1.6.0

func SetupLogging(f *pflag.FlagSet) error

SetupLogging reads only the flags that is needed to set up logging and applies them to the global logger

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL