func NewAuthProxy(c *config.Config, sess session.Session, db *db.DB,
	t *http.Transport, client *registry.Client, logic *logic.Engine) (*AuthProxy, error) {

	l, err := makeSocket(c.SocketPath)
	if err != nil {
		return nil, err
	}

	return &AuthProxy{
		u:      c.RegistryURI,
		l:      l,
		c:      c,
		db:     db,
		sess:   sess,
		o:      observer.New(),
		t:      t,
		client: client,
		logic:  logic,
	}, nil
}
// NewAuthProxy returns a new AuthProxy. It will return an error if creation
// of the domain socket fails, or the upstream registry URL is misconfigured.
NewAuthProxy returns a new AuthProxy. It will return an error if creation
of the domain socket fails, or the upstream registry URL is misconfigured.
// NewAuthProxy returns a new AuthProxy . It will return an error if creation // of the domain socket fails or the upstream registry URL is misconfigured .
func NewAuthProxy(c *config.Config, sess session.Session, db *db.DB,
	t *http.Transport, client *registry.Client, logic *logic.Engine) (*AuthProxy, error) {
	l, err := makeSocket(c.SocketPath)
	if err != nil {
		return nil, err
	}
	return &AuthProxy{
		u:      c.RegistryURI,
		l:      l,
		c:      c,
		db:     db,
		sess:   sess,
		o:      observer.New(),
		t:      t,
		client: client,
		logic:  logic,
	}, nil
}
func NewAuthProxy ( c * config . Config , sess session . Session , db * db . DB , t * http . Transport , client * registry . Client , logic * logic . Engine ) ( * AuthProxy , error ) { l , err := makeSocket ( c . SocketPath ) if err != nil { return nil , err } return & AuthProxy { u : c . RegistryURI , l : l , c : c , db : db , sess : sess , o : observer . New ( ) , t : t , client : client , logic : logic , } , nil }
NewAuthProxy returns a new AuthProxy.
NewAuthProxy returns a new AuthProxy .