Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProxy ¶
type AuthProxy struct {
// contains filtered or unexported fields
}
AuthProxy exposes an HTTP interface over a domain socket. It handles adding auth headers to requests on the `/proxy` endpoint to directly proxy requests from the cli to the registry, and exposes an interface over `/v1` for secure and composite operations.
func NewAuthProxy ¶
func NewAuthProxy(c *config.Config, sess session.Session, db *db.DB, t *http.Transport, client *registry.Client, logic *logic.Engine, updates *updates.Engine, groupShared bool) (*AuthProxy, error)
NewAuthProxy returns a new AuthProxy. It will return an error if creation of the domain socket fails, or the upstream registry URL is misconfigured.
If groupShared is true, the domain socket will be readable and writable by both the user and the user's group (so daemon can be accessed by multiple users). If false, the socket will only be readable and writable by the user running the daemon.