seedimage

package
v0.0.0-...-9253115 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInspect

type ImageInspect struct {
	Labels map[string]string `json:"Labels"`
}

ImageInspect contains the fields for unmarshalling podman container image's labels.

type SeedImageContent

type SeedImageContent struct {
	*seedclusterinfo.SeedClusterInfo
	Proxy struct {
		HTTPSProxy string
		HTTPProxy  string
		NOProxy    string
	}
	MirrorConfig *configv1.ImageDigestMirrorSet
}

SeedImageContent contains the seed image manifest and proxy info.

func GetContent

func GetContent(apiClient *clients.Settings, seedImageLocation string) (*SeedImageContent, error)

GetContent returns the structured contents of a seed image as SeedImageContent.

func (*SeedImageContent) ParseMirrorConf

func (s *SeedImageContent) ParseMirrorConf(config sysregistriesv2.V2RegistriesConf)

ParseMirrorConf reads a registries.conf config and sets SeedImageContent.MirrorConfig accordingly.

func (*SeedImageContent) ParseProxyEnv

func (s *SeedImageContent) ParseProxyEnv(config string)

ParseProxyEnv reads a proxy.env config and sets SeedImageContent.Proxy values accordingly.

Jump to

Keyboard shortcuts

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