code: func (f Files) AsSecrets() string {
  	if f == nil {
  		return ""
  	}
  
  	m := map[string]string{}
  
  	for k, v := range f {
  		m[path.Base(k)] = base64.StdEncoding.EncodeToString(v)
  	}
  
  	return ToYaml(m)
  }
docs: // AsSecrets returns the base64-encoded value of a Files object suitable for
  // including in the 'data' section of a Kubernetes Secret definition.
  // Duplicate keys will be overwritten, so be aware that your file names
  // (regardless of path) should be unique.
  //
  // This is designed to be called from a template, and will return empty string
  // (via ToYaml function) if it cannot be serialized to YAML, or if the Files
  // object is nil.
  //
  // The output will not be indented, so you will want to pipe this to the
  // 'indent' template function.
  //
  //   data:
  // {{ .Files.Glob("secrets/*").AsSecrets() }}