buildfakes

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 FakeMetadataRetriever

type FakeMetadataRetriever struct {
	GetBuildMetadataStub func(string, string, authn.Keychain) (*cnb.BuildMetadata, error)
	// contains filtered or unexported fields
}

func (*FakeMetadataRetriever) GetBuildMetadata

func (fake *FakeMetadataRetriever) GetBuildMetadata(arg1 string, arg2 string, arg3 authn.Keychain) (*cnb.BuildMetadata, error)

func (*FakeMetadataRetriever) GetBuildMetadataArgsForCall

func (fake *FakeMetadataRetriever) GetBuildMetadataArgsForCall(i int) (string, string, authn.Keychain)

func (*FakeMetadataRetriever) GetBuildMetadataCallCount

func (fake *FakeMetadataRetriever) GetBuildMetadataCallCount() int

func (*FakeMetadataRetriever) GetBuildMetadataCalls

func (fake *FakeMetadataRetriever) GetBuildMetadataCalls(stub func(string, string, authn.Keychain) (*cnb.BuildMetadata, error))

func (*FakeMetadataRetriever) GetBuildMetadataReturns

func (fake *FakeMetadataRetriever) GetBuildMetadataReturns(result1 *cnb.BuildMetadata, result2 error)

func (*FakeMetadataRetriever) GetBuildMetadataReturnsOnCall

func (fake *FakeMetadataRetriever) GetBuildMetadataReturnsOnCall(i int, result1 *cnb.BuildMetadata, result2 error)

func (*FakeMetadataRetriever) Invocations

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

type FakeSLSAAttester added in v0.13.0

type FakeSLSAAttester struct {
	AttestBuildStub func(*v1alpha2.Build, *cnb.BuildMetadata, *v1.Pod, authn.Keychain, slsa.BuilderID, ...slsa.BuilderDependencyFn) (in_toto.Statement, error)

	SignStub func(context.Context, in_toto.Statement, ...dsse.Signer) ([]byte, error)

	WriteStub func(context.Context, string, []byte, authn.Keychain) (v1a.Image, string, error)
	// contains filtered or unexported fields
}

func (*FakeSLSAAttester) AttestBuild added in v0.13.0

func (fake *FakeSLSAAttester) AttestBuild(arg1 *v1alpha2.Build, arg2 *cnb.BuildMetadata, arg3 *v1.Pod, arg4 authn.Keychain, arg5 slsa.BuilderID, arg6 ...slsa.BuilderDependencyFn) (in_toto.Statement, error)

func (*FakeSLSAAttester) AttestBuildArgsForCall added in v0.13.0

func (*FakeSLSAAttester) AttestBuildCallCount added in v0.13.0

func (fake *FakeSLSAAttester) AttestBuildCallCount() int

func (*FakeSLSAAttester) AttestBuildCalls added in v0.13.0

func (*FakeSLSAAttester) AttestBuildReturns added in v0.13.0

func (fake *FakeSLSAAttester) AttestBuildReturns(result1 in_toto.Statement, result2 error)

func (*FakeSLSAAttester) AttestBuildReturnsOnCall added in v0.13.0

func (fake *FakeSLSAAttester) AttestBuildReturnsOnCall(i int, result1 in_toto.Statement, result2 error)

func (*FakeSLSAAttester) Invocations added in v0.13.0

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

func (*FakeSLSAAttester) Sign added in v0.13.0

func (fake *FakeSLSAAttester) Sign(arg1 context.Context, arg2 in_toto.Statement, arg3 ...dsse.Signer) ([]byte, error)

func (*FakeSLSAAttester) SignArgsForCall added in v0.13.0

func (fake *FakeSLSAAttester) SignArgsForCall(i int) (context.Context, in_toto.Statement, []dsse.Signer)

func (*FakeSLSAAttester) SignCallCount added in v0.13.0

func (fake *FakeSLSAAttester) SignCallCount() int

func (*FakeSLSAAttester) SignCalls added in v0.13.0

func (fake *FakeSLSAAttester) SignCalls(stub func(context.Context, in_toto.Statement, ...dsse.Signer) ([]byte, error))

func (*FakeSLSAAttester) SignReturns added in v0.13.0

func (fake *FakeSLSAAttester) SignReturns(result1 []byte, result2 error)

func (*FakeSLSAAttester) SignReturnsOnCall added in v0.13.0

func (fake *FakeSLSAAttester) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeSLSAAttester) Write added in v0.13.0

func (fake *FakeSLSAAttester) Write(arg1 context.Context, arg2 string, arg3 []byte, arg4 authn.Keychain) (v1a.Image, string, error)

func (*FakeSLSAAttester) WriteArgsForCall added in v0.13.0

func (fake *FakeSLSAAttester) WriteArgsForCall(i int) (context.Context, string, []byte, authn.Keychain)

func (*FakeSLSAAttester) WriteCallCount added in v0.13.0

func (fake *FakeSLSAAttester) WriteCallCount() int

func (*FakeSLSAAttester) WriteCalls added in v0.13.0

func (fake *FakeSLSAAttester) WriteCalls(stub func(context.Context, string, []byte, authn.Keychain) (v1a.Image, string, error))

func (*FakeSLSAAttester) WriteReturns added in v0.13.0

func (fake *FakeSLSAAttester) WriteReturns(result1 v1a.Image, result2 string, result3 error)

func (*FakeSLSAAttester) WriteReturnsOnCall added in v0.13.0

func (fake *FakeSLSAAttester) WriteReturnsOnCall(i int, result1 v1a.Image, result2 string, result3 error)

type FakeSecretFetcher added in v0.13.0

type FakeSecretFetcher struct {
	SecretsForServiceAccountStub func(context.Context, string, string) ([]*v1.Secret, error)

	SecretsForSystemServiceAccountStub func(context.Context) ([]*v1.Secret, error)
	// contains filtered or unexported fields
}

func (*FakeSecretFetcher) Invocations added in v0.13.0

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

func (*FakeSecretFetcher) SecretsForServiceAccount added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForServiceAccount(arg1 context.Context, arg2 string, arg3 string) ([]*v1.Secret, error)

func (*FakeSecretFetcher) SecretsForServiceAccountArgsForCall added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForServiceAccountArgsForCall(i int) (context.Context, string, string)

func (*FakeSecretFetcher) SecretsForServiceAccountCallCount added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForServiceAccountCallCount() int

func (*FakeSecretFetcher) SecretsForServiceAccountCalls added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForServiceAccountCalls(stub func(context.Context, string, string) ([]*v1.Secret, error))

func (*FakeSecretFetcher) SecretsForServiceAccountReturns added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForServiceAccountReturns(result1 []*v1.Secret, result2 error)

func (*FakeSecretFetcher) SecretsForServiceAccountReturnsOnCall added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForServiceAccountReturnsOnCall(i int, result1 []*v1.Secret, result2 error)

func (*FakeSecretFetcher) SecretsForSystemServiceAccount added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForSystemServiceAccount(arg1 context.Context) ([]*v1.Secret, error)

func (*FakeSecretFetcher) SecretsForSystemServiceAccountArgsForCall added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForSystemServiceAccountArgsForCall(i int) context.Context

func (*FakeSecretFetcher) SecretsForSystemServiceAccountCallCount added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForSystemServiceAccountCallCount() int

func (*FakeSecretFetcher) SecretsForSystemServiceAccountCalls added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForSystemServiceAccountCalls(stub func(context.Context) ([]*v1.Secret, error))

func (*FakeSecretFetcher) SecretsForSystemServiceAccountReturns added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForSystemServiceAccountReturns(result1 []*v1.Secret, result2 error)

func (*FakeSecretFetcher) SecretsForSystemServiceAccountReturnsOnCall added in v0.13.0

func (fake *FakeSecretFetcher) SecretsForSystemServiceAccountReturnsOnCall(i int, result1 []*v1.Secret, result2 error)

Jump to

Keyboard shortcuts

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