dockerClient

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

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() *Client

func (*Client) IsDockerDesktop

func (c *Client) IsDockerDesktop() bool

func (*Client) ListImages

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

func (*Client) ScanAccount

func (c *Client) ScanAccount(ctx context.Context, accountNo, region string, progress Progress) (*output.Report, error)

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)

func (*Client) ScanService

func (c *Client) ScanService(ctx context.Context, serviceName string, accountNo, region 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