dockerClient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EngineDocker engineType = "docker"
	EnginePodman            = "podman"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *config.Config) (*Client, error)

func (*Client) ListImages

func (c *Client) ListImages() []string

func (*Client) ScanAllImages

func (c *Client) ScanAllImages(ctx context.Context, progress Progress, reportComplete func(report *output.Report) error) error

func (*Client) ScanFilesystem

func (c *Client) ScanFilesystem(ctx context.Context, path string, requiredChecks []string, progress Progress) (*output.Report, error)

func (*Client) ScanImage

func (c *Client) ScanImage(ctx context.Context, imageName string, progress Progress) (*output.Report, error)

type Progress

type Progress interface {
	UpdateStatus(status string)
	ClearStatus()
}

Jump to

Keyboard shortcuts

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