spdxfakes

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 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)

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

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

	PackageFromTarballStub func(*spdx.Options, *spdx.TarballOptions, string) (*spdx.Package, error)

	PullImagesToArchiveStub func(string, string) (*spdx.ImageReferenceInfo, error)

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

func (*FakeSpdxImplementation) AnalyzeImageLayer

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

func (*FakeSpdxImplementation) AnalyzeImageLayerArgsForCall

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

func (*FakeSpdxImplementation) AnalyzeImageLayerCallCount

func (fake *FakeSpdxImplementation) AnalyzeImageLayerCallCount() int

func (*FakeSpdxImplementation) AnalyzeImageLayerCalls

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

func (*FakeSpdxImplementation) AnalyzeImageLayerReturns

func (fake *FakeSpdxImplementation) AnalyzeImageLayerReturns(result1 error)

func (*FakeSpdxImplementation) AnalyzeImageLayerReturnsOnCall

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

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

func (*FakeSpdxImplementation) ImageRefToPackageArgsForCall

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

func (*FakeSpdxImplementation) ImageRefToPackageCallCount

func (fake *FakeSpdxImplementation) ImageRefToPackageCallCount() int

func (*FakeSpdxImplementation) ImageRefToPackageCalls

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

func (*FakeSpdxImplementation) ImageRefToPackageReturns

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

func (*FakeSpdxImplementation) ImageRefToPackageReturnsOnCall

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) PackageFromDirectory added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromDirectoryArgsForCall added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromDirectoryCallCount added in v0.2.0

func (fake *FakeSpdxImplementation) PackageFromDirectoryCallCount() int

func (*FakeSpdxImplementation) PackageFromDirectoryCalls added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromDirectoryReturns added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromDirectoryReturnsOnCall added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromImageTarball

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

func (*FakeSpdxImplementation) PackageFromImageTarballArgsForCall

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

func (*FakeSpdxImplementation) PackageFromImageTarballCallCount

func (fake *FakeSpdxImplementation) PackageFromImageTarballCallCount() int

func (*FakeSpdxImplementation) PackageFromImageTarballCalls

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

func (*FakeSpdxImplementation) PackageFromImageTarballReturns

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

func (*FakeSpdxImplementation) PackageFromImageTarballReturnsOnCall

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

func (*FakeSpdxImplementation) PackageFromTarball added in v0.2.0

func (fake *FakeSpdxImplementation) PackageFromTarball(arg1 *spdx.Options, arg2 *spdx.TarballOptions, arg3 string) (*spdx.Package, error)

func (*FakeSpdxImplementation) PackageFromTarballArgsForCall added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromTarballCallCount added in v0.2.0

func (fake *FakeSpdxImplementation) PackageFromTarballCallCount() int

func (*FakeSpdxImplementation) PackageFromTarballCalls added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromTarballReturns added in v0.2.0

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

func (*FakeSpdxImplementation) PackageFromTarballReturnsOnCall added in v0.2.0

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

func (*FakeSpdxImplementation) PullImagesToArchive

func (fake *FakeSpdxImplementation) PullImagesToArchive(arg1 string, arg2 string) (*spdx.ImageReferenceInfo, 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) (*spdx.ImageReferenceInfo, error))

func (*FakeSpdxImplementation) PullImagesToArchiveReturns

func (fake *FakeSpdxImplementation) PullImagesToArchiveReturns(result1 *spdx.ImageReferenceInfo, result2 error)

func (*FakeSpdxImplementation) PullImagesToArchiveReturnsOnCall

func (fake *FakeSpdxImplementation) PullImagesToArchiveReturnsOnCall(i int, result1 *spdx.ImageReferenceInfo, 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