Documentation
¶
Index ¶
- func CheckEOSL(osType, osVersion string) (bool, string, error)
- func EnsurePath(path string, perm fs.FileMode) (bool, error)
- func GetImageDescriptor(ctx context.Context, imageRef, runtime string) (*ocispec.Descriptor, error)
- func GetIndexManifestAnnotations(_ context.Context, imageRef string) (map[string]string, error)
- func GetMediaType(imageRef, runtime string) (string, error)
- func GetPlatformManifestAnnotations(_ context.Context, imageRef string, targetPlatform *ocispec.Platform) (map[string]string, error)
- func GetProxy() llb.ProxyEnv
- func IsNonEmptyFile(dir, file string) bool
- func LogPipe(pipe io.ReadCloser, level log.Level)
- type EOLAPIResponse
- type EOLProductInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageDescriptor ¶ added in v0.11.0
GetImageDescriptor retrieves the image descriptor for a given image reference using the specified runtime. It first tries to inspect the image using the specified runtime client (local). If the image is not found locally or a local error occurs, it tries to get the image descriptor from the remote registry. runtime should be imageloader.Docker or imageloader.Podman.
func GetIndexManifestAnnotations ¶ added in v0.11.0
GetIndexManifestAnnotations retrieves annotations from an image index manifest. This is specifically for multi-platform images to get the index-level annotations.
func GetMediaType ¶ added in v0.11.0
GetMediaType returns the manifest’s media type for an image reference It prefers a local inspection and falls back to a registry lookup.
func GetPlatformManifestAnnotations ¶ added in v0.11.0
func GetPlatformManifestAnnotations(_ context.Context, imageRef string, targetPlatform *ocispec.Platform) (map[string]string, error)
GetPlatformManifestAnnotations retrieves manifest-level annotations for a specific platform from an image index manifest.
func IsNonEmptyFile ¶
Types ¶
type EOLAPIResponse ¶ added in v0.11.0
type EOLAPIResponse struct {
SchemaVersion string `json:"schema_version"`
GeneratedAt string `json:"generated_at"`
Result EOLProductInfo `json:"result"`
}