private static JObject AskForLayers(string repository, string tag) { var url = docker_register_url + repository + "/manifests/" + tag; //Console.WriteLine(url); return(HttpRequests.GetResponseJson(url).Result); }
private static JObject GetBlobs(string config, string repository) { string url = docker_register_url + repository + "/blobs/" + config; //Console.WriteLine(url); return(HttpRequests.GetResponseJson(url).Result); }
private static void SetupAuth(string repository) { //Console.WriteLine(docker_pull_api_url + repository + ":pull"); var res = HttpRequests.GetResponseJson(docker_pull_api_url + repository + ":pull").Result; HttpRequests.ClientSetBearerAndType(res["access_token"].ToString(), "application/vnd.docker.distribution.manifest.v2+json"); }