// NewContext is capable of creating RepositoryRetrievers.
NewContext is capable of creating RepositoryRetrievers.
// NewContext is capable of creating RepositoryRetrievers .
func NewContext(transport, insecureTransport http.RoundTripper) *Context {
	return &Context{
		Transport:         transport,
		InsecureTransport: insecureTransport,
		Challenges:        challenge.NewSimpleManager(),
		Actions:           []string{"pull"},
		Retries:           2,
		Credentials:       NoCredentials,
		pings:    make(map[url.URL]error),
		redirect: make(map[url.URL]*url.URL),
	}
}
func NewContext ( transport , insecureTransport http . RoundTripper ) * Context { return & Context { Transport : transport , InsecureTransport : insecureTransport , Challenges : challenge . NewSimpleManager ( ) , Actions : [ ] string { " " } , Retries : 2 , Credentials : NoCredentials , pings : make ( map [ url . URL ] error ) , redirect : make ( map [ url . URL ] * url . URL ) , } }
NewContext is capable of creating RepositoryRetrievers.
NewContext is capable of creating RepositoryRetrievers .