func NewEtcdBackendWithTransformer(client *clientv3.Client, pathPrefix string, transformer TransformerFromStorage) Backend {
	return &etcdBackend{
		client:     client,
		decoder:    scheme.Codecs.UniversalDecoder(),
		pathPrefix: pathPrefix,
		tranformer: transformer,
	}
}
NewEtcdBackendWithTransformer constructs a new etcdBackend for the given client, pathPrefix and transformer.
package recovery
import (
	"context"
	"fmt"
	"os"
	"path"
	"strings"
	"go.etcd.io/etcd/clientv3"
	"k8s.io/apimachinery/pkg/api/meta"
	"k8s.io/apimachinery/pkg/runtime"
	"k8s.io/client-go/kubernetes/scheme"
	"github.com/kubernetes-sigs/bootkube/cmd/render/plugin/default/asset"
)
type TransformerFromStorage func(value []byte) ([]byte, error)
func identityTransformer(value []byte) ([]byte, error) {
	return value, nil
}
type etcdBackend struct {
	client     *clientv3.Client
	decoder    runtime.Decoder
	pathPrefix string
	tranformer TransformerFromStorage
}
func NewEtcdBackend(client *clientv3.Client, pathPrefix string) Backend {
	return NewEtcdBackendWithTransformer(client, pathPrefix, identityTransformer)
}