code: func (s SecretForDockerRegistryGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) {
  	err := generate.ValidateParams(s.ParamNames(), genericParams)
  	if err != nil {
  		return nil, err
  	}
  	delegate := &SecretForDockerRegistryGeneratorV1{}
  	hashParam, found := genericParams["append-hash"]
  	if found {
  		hashBool, isBool := hashParam.(bool)
  		if !isBool {
  			return nil, fmt.Errorf("expected bool, found :%v", hashParam)
  		}
  		delegate.AppendHash = hashBool
  		delete(genericParams, "append-hash")
  	}
  	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.Name = params["name"]
  	delegate.Username = params["docker-username"]
  	delegate.Email = params["docker-email"]
  	delegate.Password = params["docker-password"]
  	delegate.Server = params["docker-server"]
  	return delegate.StructuredGenerate()
  }
docs: // Generate returns a secret using the specified parameters