cache

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Port = 81

Port is the port cache listens on.

Variables

This section is empty.

Functions

func BlobFile

func BlobFile(imageTag, digest string) (string, error)

BlobFile creates blob filename to be requested from the cache server.

func ManifestFile

func ManifestFile(imageTag string) (string, error)

ManifestFile creates Manifest filename to be requested from the cache server.

func Mirrors

func Mirrors(mirrors ...string) host.Configurator

Mirrors defines container image mirrors.

func Service

func Service(appName string, release uint64) host.Configurator

Service returns new yum repo service.

Types

type Manifest

type Manifest struct {
	MediaType string `json:"mediaType"`
	Config    struct {
		MediaType string `json:"mediaType"`
		Digest    string `json:"digest"`
	} `json:"config"`
	Layers []struct {
		MediaType string `json:"mediaType"`
		Digest    string `json:"digest"`
	} `json:"layers"`
}

Manifest represents container image manifest.

Jump to

Keyboard shortcuts

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