artifact

package
v0.0.0-...-82b092a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact interface {
	Inspect(ctx context.Context) (reference types.ArtifactReference, err error)
	Clean(reference types.ArtifactReference) error
}

type ArtifactCleanArgs

type ArtifactCleanArgs struct {
	Reference         types.ArtifactReference
	ReferenceAnything bool
}

type ArtifactCleanExpectation

type ArtifactCleanExpectation struct {
	Args    ArtifactCleanArgs
	Returns ArtifactCleanReturns
}

type ArtifactCleanReturns

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

type ArtifactInspectArgs

type ArtifactInspectArgs struct {
	Ctx         context.Context
	CtxAnything bool
}

type ArtifactInspectExpectation

type ArtifactInspectExpectation struct {
	Args    ArtifactInspectArgs
	Returns ArtifactInspectReturns
}

type ArtifactInspectReturns

type ArtifactInspectReturns struct {
	Reference types.ArtifactReference
	Err       error
}

type MockArtifact

type MockArtifact struct {
	mock.Mock
}

MockArtifact is an autogenerated mock type for the Artifact type

func (*MockArtifact) ApplyCleanExpectation

func (_m *MockArtifact) ApplyCleanExpectation(e ArtifactCleanExpectation)

func (*MockArtifact) ApplyCleanExpectations

func (_m *MockArtifact) ApplyCleanExpectations(expectations []ArtifactCleanExpectation)

func (*MockArtifact) ApplyInspectExpectation

func (_m *MockArtifact) ApplyInspectExpectation(e ArtifactInspectExpectation)

func (*MockArtifact) ApplyInspectExpectations

func (_m *MockArtifact) ApplyInspectExpectations(expectations []ArtifactInspectExpectation)

func (*MockArtifact) Clean

func (_m *MockArtifact) Clean(reference types.ArtifactReference) error

Clean provides a mock function with given fields: reference

func (*MockArtifact) Inspect

Inspect provides a mock function with given fields: ctx

type Option

type Option struct {
	AnalyzerGroup     analyzer.Group // It is empty in OSS
	DisabledAnalyzers []analyzer.Type
	DisabledHandlers  []types.HandlerType
	SkipFiles         []string
	SkipDirs          []string
	FilePatterns      []string
	NoProgress        bool
	Offline           bool
	InsecureSkipTLS   bool
	AppDirs           []string
	RepoBranch        string
	RepoCommit        string
	RepoTag           string
	SBOMSources       []string
	RekorURL          string
	Platform          string
	Slow              bool // Lower CPU and memory
	AWSRegion         string

	MisconfScannerOption misconf.ScannerOption
	SecretScannerOption  analyzer.SecretScannerOption
	LicenseScannerOption analyzer.LicenseScannerOption
}

func (*Option) Sort

func (o *Option) Sort()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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