spdxfakes

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSpdxImplementation

type FakeSpdxImplementation struct {
	AnalyzeImageLayerStub func(string, *spdx.Package) error

	ApplyIgnorePatternsStub func([]string, []gitignore.Pattern) []string

	ExtractTarballTmpStub func(string) (string, error)

	GetDirectoryLicenseStub func(*license.Reader, string, *spdx.Options) (*license.License, error)

	GetDirectoryTreeStub func(string) ([]string, error)

	GetGoDependenciesStub func(string, *spdx.Options) ([]*spdx.Package, error)

	IgnorePatternsStub func(string, []string, bool) ([]gitignore.Pattern, error)

	ImageRefToPackageStub func(string, *spdx.Options) (*spdx.Package, error)

	LicenseReaderStub func(*spdx.Options) (*license.Reader, error)

	PackageFromImageTarballStub func(string, *spdx.Options) (*spdx.Package, error)

	PackageFromLayerTarballStub func(string, *spdx.TarballOptions) (*spdx.Package, error)

	PullImagesToArchiveStub func(string, string) ([]struct {
		Reference string
		Archive   string
		Arch      string
		OS        string
	}, error)

	ReadArchiveManifestStub func(string) (*spdx.ArchiveManifest, error)
	// contains filtered or unexported fields
}

func (*FakeSpdxImplementation) AnalyzeImageLayer added in v0.10.0

func (fake *FakeSpdxImplementation) AnalyzeImageLayer(arg1 string, arg2 *spdx.Package) error

func (*FakeSpdxImplementation) AnalyzeImageLayerArgsForCall added in v0.10.0

func (fake *FakeSpdxImplementation) AnalyzeImageLayerArgsForCall(i int) (string, *spdx.Package)

func (*FakeSpdxImplementation) AnalyzeImageLayerCallCount added in v0.10.0

func (fake *FakeSpdxImplementation) AnalyzeImageLayerCallCount() int

func (*FakeSpdxImplementation) AnalyzeImageLayerCalls added in v0.10.0

func (fake *FakeSpdxImplementation) AnalyzeImageLayerCalls(stub func(string, *spdx.Package) error)

func (*FakeSpdxImplementation) AnalyzeImageLayerReturns added in v0.10.0

func (fake *FakeSpdxImplementation) AnalyzeImageLayerReturns(result1 error)

func (*FakeSpdxImplementation) AnalyzeImageLayerReturnsOnCall added in v0.10.0

func (fake *FakeSpdxImplementation) AnalyzeImageLayerReturnsOnCall(i int, result1 error)

func (*FakeSpdxImplementation) ApplyIgnorePatterns

func (fake *FakeSpdxImplementation) ApplyIgnorePatterns(arg1 []string, arg2 []gitignore.Pattern) []string

func (*FakeSpdxImplementation) ApplyIgnorePatternsArgsForCall

func (fake *FakeSpdxImplementation) ApplyIgnorePatternsArgsForCall(i int) ([]string, []gitignore.Pattern)

func (*FakeSpdxImplementation) ApplyIgnorePatternsCallCount

func (fake *FakeSpdxImplementation) ApplyIgnorePatternsCallCount() int

func (*FakeSpdxImplementation) ApplyIgnorePatternsCalls

func (fake *FakeSpdxImplementation) ApplyIgnorePatternsCalls(stub func([]string, []gitignore.Pattern) []string)

func (*FakeSpdxImplementation) ApplyIgnorePatternsReturns

func (fake *FakeSpdxImplementation) ApplyIgnorePatternsReturns(result1 []string)

func (*FakeSpdxImplementation) ApplyIgnorePatternsReturnsOnCall

func (fake *FakeSpdxImplementation) ApplyIgnorePatternsReturnsOnCall(i int, result1 []string)

func (*FakeSpdxImplementation) ExtractTarballTmp

func (fake *FakeSpdxImplementation) ExtractTarballTmp(arg1 string) (string, error)

func (*FakeSpdxImplementation) ExtractTarballTmpArgsForCall

func (fake *FakeSpdxImplementation) ExtractTarballTmpArgsForCall(i int) string

func (*FakeSpdxImplementation) ExtractTarballTmpCallCount

func (fake *FakeSpdxImplementation) ExtractTarballTmpCallCount() int

func (*FakeSpdxImplementation) ExtractTarballTmpCalls

func (fake *FakeSpdxImplementation) ExtractTarballTmpCalls(stub func(string) (string, error))

func (*FakeSpdxImplementation) ExtractTarballTmpReturns

func (fake *FakeSpdxImplementation) ExtractTarballTmpReturns(result1 string, result2 error)

func (*FakeSpdxImplementation) ExtractTarballTmpReturnsOnCall

func (fake *FakeSpdxImplementation) ExtractTarballTmpReturnsOnCall(i int, result1 string, result2 error)

func (*FakeSpdxImplementation) GetDirectoryLicense

func (fake *FakeSpdxImplementation) GetDirectoryLicense(arg1 *license.Reader, arg2 string, arg3 *spdx.Options) (*license.License, error)

func (*FakeSpdxImplementation) GetDirectoryLicenseArgsForCall

func (fake *FakeSpdxImplementation) GetDirectoryLicenseArgsForCall(i int) (*license.Reader, string, *spdx.Options)

func (*FakeSpdxImplementation) GetDirectoryLicenseCallCount

func (fake *FakeSpdxImplementation) GetDirectoryLicenseCallCount() int

func (*FakeSpdxImplementation) GetDirectoryLicenseCalls

func (fake *FakeSpdxImplementation) GetDirectoryLicenseCalls(stub func(*license.Reader, string, *spdx.Options) (*license.License, error))

func (*FakeSpdxImplementation) GetDirectoryLicenseReturns

func (fake *FakeSpdxImplementation) GetDirectoryLicenseReturns(result1 *license.License, result2 error)

func (*FakeSpdxImplementation) GetDirectoryLicenseReturnsOnCall

func (fake *FakeSpdxImplementation) GetDirectoryLicenseReturnsOnCall(i int, result1 *license.License, result2 error)

func (*FakeSpdxImplementation) GetDirectoryTree

func (fake *FakeSpdxImplementation) GetDirectoryTree(arg1 string) ([]string, error)

func (*FakeSpdxImplementation) GetDirectoryTreeArgsForCall

func (fake *FakeSpdxImplementation) GetDirectoryTreeArgsForCall(i int) string

func (*FakeSpdxImplementation) GetDirectoryTreeCallCount

func (fake *FakeSpdxImplementation) GetDirectoryTreeCallCount() int

func (*FakeSpdxImplementation) GetDirectoryTreeCalls

func (fake *FakeSpdxImplementation) GetDirectoryTreeCalls(stub func(string) ([]string, error))

func (*FakeSpdxImplementation) GetDirectoryTreeReturns

func (fake *FakeSpdxImplementation) GetDirectoryTreeReturns(result1 []string, result2 error)

func (*FakeSpdxImplementation) GetDirectoryTreeReturnsOnCall

func (fake *FakeSpdxImplementation) GetDirectoryTreeReturnsOnCall(i int, result1 []string, result2 error)

func (*FakeSpdxImplementation) GetGoDependencies

func (fake *FakeSpdxImplementation) GetGoDependencies(arg1 string, arg2 *spdx.Options) ([]*spdx.Package, error)

func (*FakeSpdxImplementation) GetGoDependenciesArgsForCall

func (fake *FakeSpdxImplementation) GetGoDependenciesArgsForCall(i int) (string, *spdx.Options)

func (*FakeSpdxImplementation) GetGoDependenciesCallCount

func (fake *FakeSpdxImplementation) GetGoDependenciesCallCount() int

func (*FakeSpdxImplementation) GetGoDependenciesCalls

func (fake *FakeSpdxImplementation) GetGoDependenciesCalls(stub func(string, *spdx.Options) ([]*spdx.Package, error))

func (*FakeSpdxImplementation) GetGoDependenciesReturns

func (fake *FakeSpdxImplementation) GetGoDependenciesReturns(result1 []*spdx.Package, result2 error)

func (*FakeSpdxImplementation) GetGoDependenciesReturnsOnCall

func (fake *FakeSpdxImplementation) GetGoDependenciesReturnsOnCall(i int, result1 []*spdx.Package, result2 error)

func (*FakeSpdxImplementation) IgnorePatterns

func (fake *FakeSpdxImplementation) IgnorePatterns(arg1 string, arg2 []string, arg3 bool) ([]gitignore.Pattern, error)

func (*FakeSpdxImplementation) IgnorePatternsArgsForCall

func (fake *FakeSpdxImplementation) IgnorePatternsArgsForCall(i int) (string, []string, bool)

func (*FakeSpdxImplementation) IgnorePatternsCallCount

func (fake *FakeSpdxImplementation) IgnorePatternsCallCount() int

func (*FakeSpdxImplementation) IgnorePatternsCalls

func (fake *FakeSpdxImplementation) IgnorePatternsCalls(stub func(string, []string, bool) ([]gitignore.Pattern, error))

func (*FakeSpdxImplementation) IgnorePatternsReturns

func (fake *FakeSpdxImplementation) IgnorePatternsReturns(result1 []gitignore.Pattern, result2 error)

func (*FakeSpdxImplementation) IgnorePatternsReturnsOnCall

func (fake *FakeSpdxImplementation) IgnorePatternsReturnsOnCall(i int, result1 []gitignore.Pattern, result2 error)

func (*FakeSpdxImplementation) ImageRefToPackage added in v0.10.0

func (fake *FakeSpdxImplementation) ImageRefToPackage(arg1 string, arg2 *spdx.Options) (*spdx.Package, error)

func (*FakeSpdxImplementation) ImageRefToPackageArgsForCall added in v0.10.0

func (fake *FakeSpdxImplementation) ImageRefToPackageArgsForCall(i int) (string, *spdx.Options)

func (*FakeSpdxImplementation) ImageRefToPackageCallCount added in v0.10.0

func (fake *FakeSpdxImplementation) ImageRefToPackageCallCount() int

func (*FakeSpdxImplementation) ImageRefToPackageCalls added in v0.10.0

func (fake *FakeSpdxImplementation) ImageRefToPackageCalls(stub func(string, *spdx.Options) (*spdx.Package, error))

func (*FakeSpdxImplementation) ImageRefToPackageReturns added in v0.10.0

func (fake *FakeSpdxImplementation) ImageRefToPackageReturns(result1 *spdx.Package, result2 error)

func (*FakeSpdxImplementation) ImageRefToPackageReturnsOnCall added in v0.10.0

func (fake *FakeSpdxImplementation) ImageRefToPackageReturnsOnCall(i int, result1 *spdx.Package, result2 error)

func (*FakeSpdxImplementation) Invocations

func (fake *FakeSpdxImplementation) Invocations() map[string][][]interface{}

func (*FakeSpdxImplementation) LicenseReader

func (fake *FakeSpdxImplementation) LicenseReader(arg1 *spdx.Options) (*license.Reader, error)

func (*FakeSpdxImplementation) LicenseReaderArgsForCall

func (fake *FakeSpdxImplementation) LicenseReaderArgsForCall(i int) *spdx.Options

func (*FakeSpdxImplementation) LicenseReaderCallCount

func (fake *FakeSpdxImplementation) LicenseReaderCallCount() int

func (*FakeSpdxImplementation) LicenseReaderCalls

func (fake *FakeSpdxImplementation) LicenseReaderCalls(stub func(*spdx.Options) (*license.Reader, error))

func (*FakeSpdxImplementation) LicenseReaderReturns

func (fake *FakeSpdxImplementation) LicenseReaderReturns(result1 *license.Reader, result2 error)

func (*FakeSpdxImplementation) LicenseReaderReturnsOnCall

func (fake *FakeSpdxImplementation) LicenseReaderReturnsOnCall(i int, result1 *license.Reader, result2 error)

func (*FakeSpdxImplementation) PackageFromImageTarball added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromImageTarball(arg1 string, arg2 *spdx.Options) (*spdx.Package, error)

func (*FakeSpdxImplementation) PackageFromImageTarballArgsForCall added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromImageTarballArgsForCall(i int) (string, *spdx.Options)

func (*FakeSpdxImplementation) PackageFromImageTarballCallCount added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromImageTarballCallCount() int

func (*FakeSpdxImplementation) PackageFromImageTarballCalls added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromImageTarballCalls(stub func(string, *spdx.Options) (*spdx.Package, error))

func (*FakeSpdxImplementation) PackageFromImageTarballReturns added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromImageTarballReturns(result1 *spdx.Package, result2 error)

func (*FakeSpdxImplementation) PackageFromImageTarballReturnsOnCall added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromImageTarballReturnsOnCall(i int, result1 *spdx.Package, result2 error)

func (*FakeSpdxImplementation) PackageFromLayerTarball added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromLayerTarball(arg1 string, arg2 *spdx.TarballOptions) (*spdx.Package, error)

func (*FakeSpdxImplementation) PackageFromLayerTarballArgsForCall added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromLayerTarballArgsForCall(i int) (string, *spdx.TarballOptions)

func (*FakeSpdxImplementation) PackageFromLayerTarballCallCount added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromLayerTarballCallCount() int

func (*FakeSpdxImplementation) PackageFromLayerTarballCalls added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromLayerTarballCalls(stub func(string, *spdx.TarballOptions) (*spdx.Package, error))

func (*FakeSpdxImplementation) PackageFromLayerTarballReturns added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromLayerTarballReturns(result1 *spdx.Package, result2 error)

func (*FakeSpdxImplementation) PackageFromLayerTarballReturnsOnCall added in v0.10.0

func (fake *FakeSpdxImplementation) PackageFromLayerTarballReturnsOnCall(i int, result1 *spdx.Package, result2 error)

func (*FakeSpdxImplementation) PullImagesToArchive

func (fake *FakeSpdxImplementation) PullImagesToArchive(arg1 string, arg2 string) ([]struct {
	Reference string
	Archive   string
	Arch      string
	OS        string
}, error)

func (*FakeSpdxImplementation) PullImagesToArchiveArgsForCall

func (fake *FakeSpdxImplementation) PullImagesToArchiveArgsForCall(i int) (string, string)

func (*FakeSpdxImplementation) PullImagesToArchiveCallCount

func (fake *FakeSpdxImplementation) PullImagesToArchiveCallCount() int

func (*FakeSpdxImplementation) PullImagesToArchiveCalls

func (fake *FakeSpdxImplementation) PullImagesToArchiveCalls(stub func(string, string) ([]struct {
	Reference string
	Archive   string
	Arch      string
	OS        string
}, error))

func (*FakeSpdxImplementation) PullImagesToArchiveReturns

func (fake *FakeSpdxImplementation) PullImagesToArchiveReturns(result1 []struct {
	Reference string
	Archive   string
	Arch      string
	OS        string
}, result2 error)

func (*FakeSpdxImplementation) PullImagesToArchiveReturnsOnCall

func (fake *FakeSpdxImplementation) PullImagesToArchiveReturnsOnCall(i int, result1 []struct {
	Reference string
	Archive   string
	Arch      string
	OS        string
}, result2 error)

func (*FakeSpdxImplementation) ReadArchiveManifest

func (fake *FakeSpdxImplementation) ReadArchiveManifest(arg1 string) (*spdx.ArchiveManifest, error)

func (*FakeSpdxImplementation) ReadArchiveManifestArgsForCall

func (fake *FakeSpdxImplementation) ReadArchiveManifestArgsForCall(i int) string

func (*FakeSpdxImplementation) ReadArchiveManifestCallCount

func (fake *FakeSpdxImplementation) ReadArchiveManifestCallCount() int

func (*FakeSpdxImplementation) ReadArchiveManifestCalls

func (fake *FakeSpdxImplementation) ReadArchiveManifestCalls(stub func(string) (*spdx.ArchiveManifest, error))

func (*FakeSpdxImplementation) ReadArchiveManifestReturns

func (fake *FakeSpdxImplementation) ReadArchiveManifestReturns(result1 *spdx.ArchiveManifest, result2 error)

func (*FakeSpdxImplementation) ReadArchiveManifestReturnsOnCall

func (fake *FakeSpdxImplementation) ReadArchiveManifestReturnsOnCall(i int, result1 *spdx.ArchiveManifest, result2 error)

Jump to

Keyboard shortcuts

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