docker

package
v0.0.0-...-48dca27 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicCredentialFromDockerConfig

func BasicCredentialFromDockerConfig(hostname string) (string, string, error)

BasicCredentialFromDockerConfig fetches the credentials for basic auth from docker config

func GenerateManifest

func GenerateManifest(reference string) ([]byte, error)

GenerateManifest generate manifest from docker save

func GenerateManifestOCIDescriptor

func GenerateManifestOCIDescriptor(reference string) (oci.Descriptor, error)

GenerateManifestOCIDescriptor generate manifest descriptor from docker save

func GetManifestOCIDescriptor

func GetManifestOCIDescriptor(ctx context.Context, hostname, repository, ref string) (oci.Descriptor, error)

GetManifestOCIDescriptor get manifest descriptor from remote registry

func GetManifestReference

func GetManifestReference(ref string) string

GetManifestReference returns the tag or the digest of the reference string

func GetSignatureRepository

func GetSignatureRepository(ctx context.Context, ref string) (notary.SignatureRepository, error)

GetSignatureRepository returns a signature repository

func Transport

func Transport(hostname string) (http.RoundTripper, error)

Transport returns the configured round tripper for a host

Types

This section is empty.

Jump to

Keyboard shortcuts

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