code: func (s SecretForDockerRegistryGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) {
  	err := ValidateParams(s.ParamNames(), genericParams)
  	if err != nil {
  		return nil, err
  	}
  	params := map[string]string{}
  	for key, value := range genericParams {
  		strVal, isString := value.(string)
  		if !isString {
  			return nil, fmt.Errorf("expected string, saw %v for '%s'", value, key)
  		}
  		params[key] = strVal
  	}
  	delegate := &SecretForDockerRegistryGeneratorV1{
  		Name:     params["name"],
  		Username: params["docker-username"],
  		Email:    params["docker-email"],
  		Password: params["docker-password"],
  		Server:   params["docker-server"],
  	}
  	return delegate.StructuredGenerate()
  }
docs: // Generate returns a secret using the specified parameters