image

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package image scan and provide image info

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Name       string
	Namespace  string
	Labels     LabelMap
	Deployment string
	Image      string

	RepoTags []string
	Arch     string
	Distro   string
	OS       string
	FileList []string
	DirList  []string

	TempDir string
}

Info contains image information

func (*Info) GetDistro

func (img *Info) GetDistro()

GetDistro identifies the distribution of the image

func (*Info) GetImageInfo

func (img *Info) GetImageInfo()

GetImageInfo fetches information about the image and reads its manifest

func (*Info) GetPolicy

func (img *Info) GetPolicy(ms common.MatchSpec, options common.Options) ([]byte, string)

GetPolicy - creates policy and return back

func (*Info) GetPolicyDir

func (img *Info) GetPolicyDir(outDir string) string

GetPolicyDir generates a policy directory path based on the image information

type LabelMap

type LabelMap = map[string]string

LabelMap is an alias for map[string]string

Jump to

Keyboard shortcuts

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