func InitCreators() {
	creatorMap = make(map[string]Creator)
	registryFilterMap = map[string]accessFilter{
		"repository": &repositoryFilter{
			parser: &basicParser{},
		},
		"registry": &registryFilter{},
	}
	ext, err := config.ExtURL()
	if err != nil {
		log.Warningf("Failed to get ext url, err: %v, the token service will not be functional with notary requests", err)
	} else {
		notaryFilterMap = map[string]accessFilter{
			"repository": &repositoryFilter{
				parser: &endpointParser{
					endpoint: ext,
				},
			},
		}
		creatorMap[Notary] = &generalCreator{
			service:   Notary,
			filterMap: notaryFilterMap,
		}
	}

	creatorMap[Registry] = &generalCreator{
		service:   Registry,
		filterMap: registryFilterMap,
	}
}
// InitCreators initialize the token creators for different services
InitCreators initialize the token creators for different services
// InitCreators initialize the token creators for different services
func InitCreators() {
	creatorMap = make(map[string]Creator)
	registryFilterMap = map[string]accessFilter{
		"repository": &repositoryFilter{
			parser: &basicParser{},
		},
		"registry": &registryFilter{},
	}
	ext, err := config.ExtURL()
	if err != nil {
		log.Warningf("Failed to get ext url, err: %v, the token service will not be functional with notary requests", err)
	} else {
		notaryFilterMap = map[string]accessFilter{
			"repository": &repositoryFilter{
				parser: &endpointParser{
					endpoint: ext,
				},
			},
		}
		creatorMap[Notary] = &generalCreator{
			service:   Notary,
			filterMap: notaryFilterMap,
		}
	}
	creatorMap[Registry] = &generalCreator{
		service:   Registry,
		filterMap: registryFilterMap,
	}
}
func InitCreators ( ) { creatorMap = make ( map [ string ] Creator ) registryFilterMap = map [ string ] accessFilter { " " : & repositoryFilter { parser : & basicParser { } , } , " " : & registryFilter { } , } ext , err := config . ExtURL ( ) if err != nil { log . Warningf ( " " , err ) } else { notaryFilterMap = map [ string ] accessFilter { " " : & repositoryFilter { parser : & endpointParser { endpoint : ext , } , } , } creatorMap [ Notary ] = & generalCreator { service : Notary , filterMap : notaryFilterMap , } } creatorMap [ Registry ] = & generalCreator { service : Registry , filterMap : registryFilterMap , } }
InitCreators initialize the token creators for different services
InitCreators initialize the token creators for different services