Documentation ¶
Overview ¶
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
CODE FROM https://github.com/jgsqware/clairctl
Package dockerdist provides helper methods for retrieving and parsing a information from a remote Docker repository.
Index ¶
- Variables
- func AuthenticateResponse(client *http.Client, dockerResponse *http.Response, request *http.Request) error
- func DownloadManifest(image string, insecure bool) (reference.NamedTagged, distlib.Manifest, error)
- func DownloadV1Manifest(imageName string, insecure bool) (reference.NamedTagged, schema1.SignedManifest, error)
- func GetPushURL(hostname string) (*url.URL, error)
Constants ¶
This section is empty.
Variables ¶
ErrUnauthorized is return when requested user don't have access to the resource
Functions ¶
func AuthenticateResponse ¶
func AuthenticateResponse(client *http.Client, dockerResponse *http.Response, request *http.Request) error
AuthenticateResponse add authentication headers on request
func DownloadManifest ¶
DownloadManifest the manifest for the given image, using the given credentials.
func DownloadV1Manifest ¶
func DownloadV1Manifest(imageName string, insecure bool) (reference.NamedTagged, schema1.SignedManifest, error)
DownloadV1Manifest the manifest for the given image in v1 schema format, using the given credentials.
Types ¶
This section is empty.