func NewDefaultFactory() (*Factory, error) {
	factory := NewFactory()

	if err := factory.Register(
		k8sproxy.ProxierTypeKey,
		FactoryRegister{
			ConfigFn: func() interface{} { return k8sproxy.NewProxierConfig() },
			MakerFn:  func(c interface{}) (Proxier, error) { return k8sproxy.NewProxierFromRawConfig(c) },
		}); err != nil {
		return factory, err
	}

	return factory, nil
}
// NewDefaultFactory constructs a factory with all the known proxy
// implementations in juju registered.
NewDefaultFactory constructs a factory with all the known proxy
implementations in juju registered.
// NewDefaultFactory constructs a factory with all the known proxy // implementations in juju registered .
func NewDefaultFactory() (*Factory, error) {
	factory := NewFactory()
	if err := factory.Register(
		k8sproxy.ProxierTypeKey,
		FactoryRegister{
			ConfigFn: func() interface{} { return k8sproxy.NewProxierConfig() },
			MakerFn:  func(c interface{}) (Proxier, error) { return k8sproxy.NewProxierFromRawConfig(c) },
		}); err != nil {
		return factory, err
	}
	return factory, nil
}
func NewDefaultFactory ( ) ( * Factory , error ) { factory := NewFactory ( ) if err := factory . Register ( k8sproxy . ProxierTypeKey , FactoryRegister { ConfigFn : func ( ) interface { } { return k8sproxy . NewProxierConfig ( ) } , MakerFn : func ( c interface { } ) ( Proxier , error ) { return k8sproxy . NewProxierFromRawConfig ( c ) } , } ) ; err != nil { return factory , err } return factory , nil }
NewDefaultFactory constructs a factory with all the known proxy
implementations in juju registered.
NewDefaultFactory constructs a factory with all the known proxy implementations in juju registered .