Documentation ¶
Index ¶
- func GetMD5Hash(text string) string
- func K8s(c *K8sCrawler)
- func ParseImageDigest(imageDigestPath string) (imageDigest string, err error)
- func ParseImageTagPath(imagePath string) (imageRegistry, imageRepo, imagTag, imageDigest string, err error)
- func Registry(backend datastore.Backend, cc clairclient.Client, regCrawler *RegCrawler)
- func ScanImage(db datastore.Backend, cc clairclient.Client, token *docker.Token, ...) (*datastore.Image, error)
- type K8sCrawler
- type RegCrawler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseImageDigest ¶
ParseImageDigest func init
func ParseImageTagPath ¶
func ParseImageTagPath(imagePath string) (imageRegistry, imageRepo, imagTag, imageDigest string, err error)
ParseImageTagPath func init
func Registry ¶
func Registry(backend datastore.Backend, cc clairclient.Client, regCrawler *RegCrawler)
Registry crawler gets a list of images including their manifests and layers from a defined Docker V2 registry. Then a semaphore channel is opened and the images are fed to the Clair instances for scanning.
Types ¶
type K8sCrawler ¶
type K8sCrawler struct { CrawlerID int64 Store datastore.Backend Context string KubeConfig *clientcmdapi.Config MaxThreads uint RegAuth []map[string]string ClairClient clairclient.Client Scan bool }
K8sCrawler struct init
func (*K8sCrawler) GetContainerImages ¶
func (c *K8sCrawler) GetContainerImages() ([]*datastore.Container, string, error)
GetContainerImages func init
func (*K8sCrawler) GetStoredCredentials ¶
func (c *K8sCrawler) GetStoredCredentials(dc *datastore.Container) (username, password string, match bool)
GetStoredCredentials func init
func (*K8sCrawler) ScanContainerImage ¶
func (c *K8sCrawler) ScanContainerImage(dc *datastore.Container, user, pass string) error
ScanContainerImage func init
Click to show internal directories.
Click to hide internal directories.