prow/sidecar/options.go
func (o *Options) Validate() error {
	ents := o.entries()
	if len(ents) == 0 {
		return errors.New("no wrapper.Option entries")
	}
	for i, e := range ents {
		if err := e.Validate(); err != nil {
			return fmt.Errorf("entry %d: %v", i, err)
		}
	}

	return o.GcsOptions.Validate()
}
func (o *Options) Validate() error {
	ents := o.entries()
	if len(ents) == 0 {
		return errors.New("no wrapper.Option entries")
	}
	for i, e := range ents {
		if err := e.Validate(); err != nil {
			return fmt.Errorf("entry %d: %v", i, err)
		}
	}

	return o.GcsOptions.Validate()
}
func ( o * Options ) Validate ( ) error { ents := o . entries ( ) if len ( ents ) == 0 { return errors . New ( " " ) } for i , e := range ents { if err := e . Validate ( ) ; err != nil { return fmt . Errorf ( " " , i , err ) } } return o . GcsOptions . Validate ( ) }
// Validate ensures that the set of options are
// self-consistent and valid
Validate ensures that the set of options are self - consistent and valid