Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultNamespace = "default"
DefaultNamespace const contains the name of the default Kubernetes namespace.
Variables ¶
This section is empty.
Functions ¶
func NewBench ¶ added in v0.5.0
func NewBench() *cobra.Command
NewBench instantiates the bench subcommand.
func NewTest ¶ added in v0.4.0
func NewTest() *cobra.Command
NewTest instantiates the test subcommand.
func WithSignals ¶
func WithSignals(ctx context.Context) context.Context
WithSignals returns a copy of ctx with a new Done channel. The returned context's Done channel is closed when a SIGKILL or SIGTERM signal is received.
Types ¶
type ConfigOptions ¶
type ConfigOptions struct {
ConfigFile string `validate:"filepath" name:"config"`
LogLevel string `validate:"logrus" name:"loglevel" default:"info"`
LogFormat string `validate:"format" name:"logformat" default:"text"`
}
ConfigOptions represent the persistent configuration flags of event-generator.
func NewConfigOptions ¶
func NewConfigOptions() *ConfigOptions
NewConfigOptions creates an instance of ConfigOptions.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.