app

package
v1.0.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 5 modules, 20 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppDescription = "Run your custom cluster-wide scripts in reaction to Kubernetes events or on schedule."
View Source
var AppName = "shell-operator"
View Source
var DebugKeepTmpFiles = "no"
View Source
var DebugUnixSocket = "/var/run/shell-operator/debug.socket"
View Source
var HooksDir = ""
View Source
var JqLibraryPath = ""
View Source
var KubeClientBurst int
View Source
var KubeClientBurstDefault = "10" // DefaultBurst from k8s.io/client-go/rest/config.go
View Source
var KubeClientQps float32
View Source
var KubeClientQpsDefault = "5" // DefaultQPS from k8s.io/client-go/rest/config.go
View Source
var KubeConfig = ""
View Source
var KubeContext = ""
View Source
var ListenAddress = "0.0.0.0"
View Source
var ListenPort = "9115"
View Source
var LogLevel = "info"

Use info level with timestamps and a text output by default

View Source
var LogNoTime = false
View Source
var LogType = "text"
View Source
var PrometheusMetricsPrefix = "shell_operator_"
View Source
var TempDir = "/tmp/shell-operator"
View Source
var Version = "dev"

Functions

func CommandWithDefaultUsageTemplate

func CommandWithDefaultUsageTemplate(kpApp *kingpin.Application, name, help string) *kingpin.CmdClause

CommandWithDefaultUsageTemplate is used to workaround an absence of per-command usage templates

func DefineDebugFlags

func DefineDebugFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause)

SetupDebugSettings init global flags for debug

func DefineDebugUnixSocketFlag

func DefineDebugUnixSocketFlag(cmd *kingpin.CmdClause)

func DefineJqFlags

func DefineJqFlags(cmd *kingpin.CmdClause)

DefineJqFlags set flag for jq library

func DefineKubeClientFlags

func DefineKubeClientFlags(cmd *kingpin.CmdClause)

func DefineLoggingFlags

func DefineLoggingFlags(cmd *kingpin.CmdClause)

SetupLoggingSettings init global flags for logging

func DefineStartCommandFlags

func DefineStartCommandFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause)

DefineStartCommandFlags set shell-operator flags for cmd

func OperatorUsageTemplate

func OperatorUsageTemplate(appName string) string

func SetupLogging

func SetupLogging()

SetupLogging sets logging output

Types

This section is empty.

Jump to

Keyboard shortcuts

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