func WithData(key, value string) Mutation {
	return mutationFunc(
		func(ns *persistence.GetNamespaceResponse) {
			ns.Namespace.Info.Data[key] = value
		})
}
WithData adds a key-value pair to a Namespace during a Clone operation.
package namespace
import (
	"time"
	namespacepb "go.temporal.io/api/namespace/v1"
	"go.temporal.io/server/common/persistence"
)
type mutationFunc func(*persistence.GetNamespaceResponse)
func (f mutationFunc) apply(ns *persistence.GetNamespaceResponse) {
	f(ns)
}
func WithActiveCluster(name string) Mutation {
	return mutationFunc(
		func(ns *persistence.GetNamespaceResponse) {
			ns.Namespace.ReplicationConfig.ActiveClusterName = name
		})
}
func WithBadBinary(chksum string) Mutation {
	return mutationFunc(
		func(ns *persistence.GetNamespaceResponse) {
			ns.Namespace.Config.BadBinaries.Binaries[chksum] =
				&namespacepb.BadBinaryInfo{}
		})
}
func WithID(id string) Mutation {
	return mutationFunc(
		func(ns *persistence.GetNamespaceResponse) {
			ns.Namespace.Info.Id = id
		})
}
func WithGlobalFlag(b bool) Mutation {
	return mutationFunc(
		func(ns *persistence.GetNamespaceResponse) {
			ns.IsGlobalNamespace = b
		})
}
func WithRetention(dur *time.Duration) Mutation {
	return mutationFunc(
		func(ns *persistence.GetNamespaceResponse) {
			ns.Namespace.Config.Retention = dur
		})
}