cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 23 Imported by: 0

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