Documentation ¶
Index ¶
- type Image
- func (i *Image) Digest() (string, error)
- func (i *Image) IsOCI() bool
- func (i *Image) Manifest() (string, error)
- func (i *Image) MustDigest() string
- func (i *Image) Registry() string
- func (i *Image) RegistryPlain() string
- func (i *Image) RegistryRepository() string
- func (i *Image) RegistryRepositoryPlain() string
- func (i *Image) RegistryRepositoryTag() string
- func (i *Image) RegistryRepositoryTagDigest() string
- func (i *Image) RegistryRepositoryTagDigestPlain() string
- func (i *Image) RegistryRepositoryTagPlain() string
- func (i *Image) Repository() string
- func (i *Image) Safe() bool
- func (i *Image) SetVulncheck(vulncheck *Vulncheck)
- func (i *Image) String() string
- func (i *Image) StringPlain() string
- func (i *Image) Tag() string
- func (i *Image) TagPlain() string
- func (i *Image) ToPersistance(name string) (*ImagePersistance, error)
- type ImagePersistance
- type Vuln
- type Vulncheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { // I_registry of the image I_registry string // I_repository of the image (=name) I_repository string // I_tag of the image I_tag string // wheather the image is a usual image or a general I_oci artifact I_oci bool // I_cfg is the config I_cfg *config.Config I_vulncheck *Vulncheck }
func (*Image) MustDigest ¶
func (*Image) RegistryPlain ¶
func (*Image) RegistryRepository ¶
func (*Image) RegistryRepositoryPlain ¶
func (*Image) RegistryRepositoryTag ¶
func (*Image) RegistryRepositoryTagDigest ¶
func (*Image) RegistryRepositoryTagDigestPlain ¶
func (*Image) RegistryRepositoryTagPlain ¶
func (*Image) Repository ¶
func (*Image) SetVulncheck ¶
func (*Image) StringPlain ¶
func (*Image) ToPersistance ¶
func (i *Image) ToPersistance(name string) (*ImagePersistance, error)
type ImagePersistance ¶
type ImagePersistance struct { Name string `yaml:"name"` Registry string `yaml:"registry"` Repository string `yaml:"repository"` Tag string `yaml:"tag"` OCI bool `yaml:"oci"` Digest string `yaml:"digest"` Vulncheck *Vulncheck `yaml:"vulncheck"` }
func (*ImagePersistance) ToImage ¶
func (i *ImagePersistance) ToImage() *Image
type Vuln ¶
type Vuln struct { CVE string `yaml:"id"` Title string `yaml:"title"` PkgName string `yaml:"pkgname"` Severity string `yaml:"severity"` }
func NewVuln ¶
func NewVuln(vuln types.DetectedVulnerability) (v *Vuln)
Click to show internal directories.
Click to hide internal directories.