// NewDefaultDecoder returns the default decoder for etcd3 store func NewDefaultDecoder(codec runtime.Codec, versioner storage.Versioner) Decoder { … } type Decoder … var _ … type defaultDecoder … // decode decodes value of bytes into object. It will also set the object resource version to rev. // On success, objPtr would be set to the object. func (d *defaultDecoder) Decode(value []byte, objPtr runtime.Object, rev int64) error { … } // decodeListItem decodes bytes value in array into object. func (d *defaultDecoder) DecodeListItem(ctx context.Context, data []byte, rev uint64, newItemFunc func() runtime.Object) (runtime.Object, error) { … }