flagutil

package
v0.0.0-...-ace5c41 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 46

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
	// Moonraker is the centralized Inrepconfig Caching Service. Using this flag
	// overrides the use of the local InRepoConfigCache.
	MoonrakerAddress 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