mirrors

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindURLMirrors added in v1.28.0

func FindURLMirrors(u string) []string

FindURLMirrors will return a list of mirrors for well-known URL locations.

Types

type MirroredAsset added in v1.20.0

type MirroredAsset struct {
	Locations []string
	Hash      *hashing.Hash
}

func BuildMirroredAsset added in v1.20.0

func BuildMirroredAsset(u *url.URL, hash *hashing.Hash) *MirroredAsset

BuildMirroredAsset checks to see if this is a file under the standard base location, and if so constructs some mirror locations

func (*MirroredAsset) CompactString added in v1.20.0

func (a *MirroredAsset) CompactString() string

Jump to

Keyboard shortcuts

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