flagutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigOptions

type ConfigOptions struct {
	ConfigPath    string
	JobConfigPath string
	// ConfigPathFlagName allows to override the flag name for the prow config. Defaults
	// to 'config-path'.
	ConfigPathFlagName string
	// JobConfigPathFlagName allows to override the flag name for the job config. Defaults
	// to 'job-config-path'.
	JobConfigPathFlagName                 string
	SupplementalProwConfigDirs            flagutil.Strings
	SupplementalProwConfigsFileNameSuffix string
	// Inrepoconfig related flags
	InRepoConfigCacheSize    int
	InRepoConfigCacheDirBase string
}

func (*ConfigOptions) AddFlags

func (o *ConfigOptions) AddFlags(fs *flag.FlagSet)

func (*ConfigOptions) ConfigAgent

func (o *ConfigOptions) ConfigAgent(reuse ...*config.Agent) (*config.Agent, error)

func (*ConfigOptions) ConfigAgentWithAdditionals

func (o *ConfigOptions) ConfigAgentWithAdditionals(ca *config.Agent, additionals []func(*config.Config) error) (*config.Agent, error)

func (*ConfigOptions) Validate

func (o *ConfigOptions) Validate(_ bool) error

func (*ConfigOptions) ValidateConfigOptional

func (o *ConfigOptions) ValidateConfigOptional() error

Jump to

Keyboard shortcuts

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