src/plugin/vault/pachyderm/helpers.go
func putConfig(ctx context.Context, s logical.Storage, cfg *config) error {
	entry, err := logical.StorageEntryJSON("config", cfg)
	if err != nil {
		return fmt.Errorf("%v: failed to generate storage entry", err)
	}
	if err := s.Put(ctx, entry); err != nil {
		return fmt.Errorf("%v: failed to write configuration to storage", err)
	}
	return nil
}
func putConfig(ctx context.Context, s logical.Storage, cfg *config) error {
	entry, err := logical.StorageEntryJSON("config", cfg)
	if err != nil {
		return fmt.Errorf("%v: failed to generate storage entry", err)
	}
	if err := s.Put(ctx, entry); err != nil {
		return fmt.Errorf("%v: failed to write configuration to storage", err)
	}
	return nil
}
// putConfig parses and returns the configuration data from the storage backend.