Documentation ¶
Index ¶
- Variables
- func Confirm(vals map[string]string)
- func Contains(values []string, val string) bool
- func ExtractUnknownArgs(flags *pflag.FlagSet, args []string) []string
- func FormatReason(reason *string) error
- func NewJSONFormatter() *logrus.JSONFormatter
- func NewLogger() *logrus.Logger
- func NewRuntimeFormatter() *rt.Formatter
- func NewTextFormatter() *logrus.TextFormatter
- func Uniq(a []string) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logrus.Logger
Logger is the global logging instance
Functions ¶
func ExtractUnknownArgs ¶
ExtractUnknownArgs fetches unknown args passed to a command. This is used in the kubectl and gcloud commands to extract only the fields that should be used in the invoked command.
Modified from https://github.com/davidovich/summon/blob/master/cmd/run.go see https://github.com/spf13/pflag/pull/160 and https://github.com/spf13/cobra/issues/739 and https://github.com/spf13/pflag/pull/199
func FormatReason ¶
FormatReason formats the reason field for logging visibility
func NewJSONFormatter ¶
func NewJSONFormatter() *logrus.JSONFormatter
func NewRuntimeFormatter ¶
func NewTextFormatter ¶
func NewTextFormatter() *logrus.TextFormatter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.