dockerdist

package
v0.0.0-...-4678ade Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2020 License: BSD-3-Clause, Apache-2.0 Imports: 20 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var ErrUnauthorized = errors.New("unauthorized access")

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

func DownloadManifest(image string, insecure bool) (reference.NamedTagged, distlib.Manifest, error)

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.

func GetPushURL

func GetPushURL(hostname string) (*url.URL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL