flags

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 5 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 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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