Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // CaBundleFilename defines the name of the file on disk CaBundleFilename = filepath.Join(mirrorConfigDir, "ca-bundle.crt") )
var ( // RegistriesConfFilename defines the name of the file on disk RegistriesConfFilename = filepath.Join(mirrorConfigDir, "registries.conf") )
Functions ¶
func GetMirrorFromRelease ¶
func GetMirrorFromRelease(releaseImage string, registriesConfig *RegistriesConf) string
GetMirrorFromRelease gets the matching mirror configured for the releaseImage.
Types ¶
type CaBundle ¶
CaBundle generates the cetificate file for disconnected mirrors.
func (*CaBundle) Dependencies ¶
Dependencies returns all of the dependencies directly needed to generate the asset.
func (*CaBundle) Generate ¶
Generate generates the Mirror Registries certificate file from install-config.
type RegistriesConf ¶
type RegistriesConf struct { File *asset.File Config *sysregistriesv2.V2RegistriesConf MirrorConfig []RegistriesConfig }
RegistriesConf generates the registries.conf file.
func (*RegistriesConf) Dependencies ¶
func (*RegistriesConf) Dependencies() []asset.Asset
Dependencies returns all of the dependencies directly needed to generate the asset.
func (*RegistriesConf) Files ¶
func (i *RegistriesConf) Files() []*asset.File
Files returns the files generated by the asset.
func (*RegistriesConf) Generate ¶
func (i *RegistriesConf) Generate(dependencies asset.Parents) error
Generate generates the registries.conf file from install-config.
func (*RegistriesConf) Load ¶
func (i *RegistriesConf) Load(f asset.FileFetcher) (bool, error)
Load returns RegistriesConf asset from the disk.
func (*RegistriesConf) Name ¶
func (*RegistriesConf) Name() string
Name returns a human friendly name for the asset.
type RegistriesConfig ¶
RegistriesConfig holds the data extracted from registries.conf