code: func handleDockercfgContent(username, password, email, server string) ([]byte, error) {
  	dockercfgAuth := credentialprovider.DockerConfigEntry{
  		Username: username,
  		Password: password,
  		Email:    email,
  	}
  
  	dockerCfg := map[string]credentialprovider.DockerConfigEntry{server: dockercfgAuth}
  
  	return json.Marshal(dockerCfg)
  }
docs: // handleDockercfgContent serializes a dockercfg json file