signfakes

package
v0.9.20 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 10 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 FakeImpl

type FakeImpl struct {
	DigestStub func(string, ...crane.Option) (string, error)

	EnvDefaultStub func(string, string) string

	FileExistsStub func(string) bool

	FindTLogEntriesByPayloadStub func(context.Context, *client.Rekor, []byte) ([]string, error)

	NewRekorClientStub func(string) (*client.Rekor, error)

	ParseReferenceStub func(string, ...name.Option) (name.Reference, error)

	PayloadBytesStub func(string) ([]byte, error)

	SetenvStub func(string, string) error

	SignFileInternalStub func(options.RootOptions, options.KeyOpts, options.RegistryOptions, string, bool, string, string) error

	SignImageInternalStub func(options.RootOptions, options.KeyOpts, options.RegistryOptions, map[string]interface{}, []string, string, bool, string, string, string, bool, bool, string, bool) error

	SignaturesStub func(oci.SignedEntity) (oci.Signatures, error)

	SignaturesListStub func(oci.Signatures) ([]oci.Signature, error)

	SignedEntityStub func(name.Reference, ...remote.Option) (oci.SignedEntity, error)

	TokenFromProvidersStub func(context.Context, *logrus.Logger) (string, error)

	VerifyFileInternalStub func(context.Context, options.KeyOpts, string, string, string) error

	VerifyImageInternalStub func(context.Context, string, []string) (*sign.SignedObject, error)
	// contains filtered or unexported fields
}

func (*FakeImpl) Digest

func (fake *FakeImpl) Digest(arg1 string, arg2 ...crane.Option) (string, error)

func (*FakeImpl) DigestArgsForCall

func (fake *FakeImpl) DigestArgsForCall(i int) (string, []crane.Option)

func (*FakeImpl) DigestCallCount

func (fake *FakeImpl) DigestCallCount() int

func (*FakeImpl) DigestCalls

func (fake *FakeImpl) DigestCalls(stub func(string, ...crane.Option) (string, error))

func (*FakeImpl) DigestReturns

func (fake *FakeImpl) DigestReturns(result1 string, result2 error)

func (*FakeImpl) DigestReturnsOnCall

func (fake *FakeImpl) DigestReturnsOnCall(i int, result1 string, result2 error)

func (*FakeImpl) EnvDefault

func (fake *FakeImpl) EnvDefault(arg1 string, arg2 string) string

func (*FakeImpl) EnvDefaultArgsForCall

func (fake *FakeImpl) EnvDefaultArgsForCall(i int) (string, string)

func (*FakeImpl) EnvDefaultCallCount

func (fake *FakeImpl) EnvDefaultCallCount() int

func (*FakeImpl) EnvDefaultCalls

func (fake *FakeImpl) EnvDefaultCalls(stub func(string, string) string)

func (*FakeImpl) EnvDefaultReturns

func (fake *FakeImpl) EnvDefaultReturns(result1 string)

func (*FakeImpl) EnvDefaultReturnsOnCall

func (fake *FakeImpl) EnvDefaultReturnsOnCall(i int, result1 string)

func (*FakeImpl) FileExists

func (fake *FakeImpl) FileExists(arg1 string) bool

func (*FakeImpl) FileExistsArgsForCall

func (fake *FakeImpl) FileExistsArgsForCall(i int) string

func (*FakeImpl) FileExistsCallCount

func (fake *FakeImpl) FileExistsCallCount() int

func (*FakeImpl) FileExistsCalls

func (fake *FakeImpl) FileExistsCalls(stub func(string) bool)

func (*FakeImpl) FileExistsReturns

func (fake *FakeImpl) FileExistsReturns(result1 bool)

func (*FakeImpl) FileExistsReturnsOnCall

func (fake *FakeImpl) FileExistsReturnsOnCall(i int, result1 bool)

func (*FakeImpl) FindTLogEntriesByPayload

func (fake *FakeImpl) FindTLogEntriesByPayload(arg1 context.Context, arg2 *client.Rekor, arg3 []byte) ([]string, error)

func (*FakeImpl) FindTLogEntriesByPayloadArgsForCall

func (fake *FakeImpl) FindTLogEntriesByPayloadArgsForCall(i int) (context.Context, *client.Rekor, []byte)

func (*FakeImpl) FindTLogEntriesByPayloadCallCount

func (fake *FakeImpl) FindTLogEntriesByPayloadCallCount() int

func (*FakeImpl) FindTLogEntriesByPayloadCalls

func (fake *FakeImpl) FindTLogEntriesByPayloadCalls(stub func(context.Context, *client.Rekor, []byte) ([]string, error))

func (*FakeImpl) FindTLogEntriesByPayloadReturns

func (fake *FakeImpl) FindTLogEntriesByPayloadReturns(result1 []string, result2 error)

func (*FakeImpl) FindTLogEntriesByPayloadReturnsOnCall

func (fake *FakeImpl) FindTLogEntriesByPayloadReturnsOnCall(i int, result1 []string, result2 error)

func (*FakeImpl) Invocations

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

func (*FakeImpl) NewRekorClient

func (fake *FakeImpl) NewRekorClient(arg1 string) (*client.Rekor, error)

func (*FakeImpl) NewRekorClientArgsForCall

func (fake *FakeImpl) NewRekorClientArgsForCall(i int) string

func (*FakeImpl) NewRekorClientCallCount

func (fake *FakeImpl) NewRekorClientCallCount() int

func (*FakeImpl) NewRekorClientCalls

func (fake *FakeImpl) NewRekorClientCalls(stub func(string) (*client.Rekor, error))

func (*FakeImpl) NewRekorClientReturns

func (fake *FakeImpl) NewRekorClientReturns(result1 *client.Rekor, result2 error)

func (*FakeImpl) NewRekorClientReturnsOnCall

func (fake *FakeImpl) NewRekorClientReturnsOnCall(i int, result1 *client.Rekor, result2 error)

func (*FakeImpl) ParseReference

func (fake *FakeImpl) ParseReference(arg1 string, arg2 ...name.Option) (name.Reference, error)

func (*FakeImpl) ParseReferenceArgsForCall

func (fake *FakeImpl) ParseReferenceArgsForCall(i int) (string, []name.Option)

func (*FakeImpl) ParseReferenceCallCount

func (fake *FakeImpl) ParseReferenceCallCount() int

func (*FakeImpl) ParseReferenceCalls

func (fake *FakeImpl) ParseReferenceCalls(stub func(string, ...name.Option) (name.Reference, error))

func (*FakeImpl) ParseReferenceReturns

func (fake *FakeImpl) ParseReferenceReturns(result1 name.Reference, result2 error)

func (*FakeImpl) ParseReferenceReturnsOnCall

func (fake *FakeImpl) ParseReferenceReturnsOnCall(i int, result1 name.Reference, result2 error)

func (*FakeImpl) PayloadBytes

func (fake *FakeImpl) PayloadBytes(arg1 string) ([]byte, error)

func (*FakeImpl) PayloadBytesArgsForCall

func (fake *FakeImpl) PayloadBytesArgsForCall(i int) string

func (*FakeImpl) PayloadBytesCallCount

func (fake *FakeImpl) PayloadBytesCallCount() int

func (*FakeImpl) PayloadBytesCalls

func (fake *FakeImpl) PayloadBytesCalls(stub func(string) ([]byte, error))

func (*FakeImpl) PayloadBytesReturns

func (fake *FakeImpl) PayloadBytesReturns(result1 []byte, result2 error)

func (*FakeImpl) PayloadBytesReturnsOnCall

func (fake *FakeImpl) PayloadBytesReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeImpl) Setenv

func (fake *FakeImpl) Setenv(arg1 string, arg2 string) error

func (*FakeImpl) SetenvArgsForCall

func (fake *FakeImpl) SetenvArgsForCall(i int) (string, string)

func (*FakeImpl) SetenvCallCount

func (fake *FakeImpl) SetenvCallCount() int

func (*FakeImpl) SetenvCalls

func (fake *FakeImpl) SetenvCalls(stub func(string, string) error)

func (*FakeImpl) SetenvReturns

func (fake *FakeImpl) SetenvReturns(result1 error)

func (*FakeImpl) SetenvReturnsOnCall

func (fake *FakeImpl) SetenvReturnsOnCall(i int, result1 error)

func (*FakeImpl) SignFileInternal

func (fake *FakeImpl) SignFileInternal(arg1 options.RootOptions, arg2 options.KeyOpts, arg3 options.RegistryOptions, arg4 string, arg5 bool, arg6 string, arg7 string) error

func (*FakeImpl) SignFileInternalArgsForCall

func (fake *FakeImpl) SignFileInternalArgsForCall(i int) (options.RootOptions, options.KeyOpts, options.RegistryOptions, string, bool, string, string)

func (*FakeImpl) SignFileInternalCallCount

func (fake *FakeImpl) SignFileInternalCallCount() int

func (*FakeImpl) SignFileInternalCalls

func (fake *FakeImpl) SignFileInternalCalls(stub func(options.RootOptions, options.KeyOpts, options.RegistryOptions, string, bool, string, string) error)

func (*FakeImpl) SignFileInternalReturns

func (fake *FakeImpl) SignFileInternalReturns(result1 error)

func (*FakeImpl) SignFileInternalReturnsOnCall

func (fake *FakeImpl) SignFileInternalReturnsOnCall(i int, result1 error)

func (*FakeImpl) SignImageInternal

func (fake *FakeImpl) SignImageInternal(arg1 options.RootOptions, arg2 options.KeyOpts, arg3 options.RegistryOptions, arg4 map[string]interface{}, arg5 []string, arg6 string, arg7 bool, arg8 string, arg9 string, arg10 string, arg11 bool, arg12 bool, arg13 string, arg14 bool) error

func (*FakeImpl) SignImageInternalArgsForCall

func (fake *FakeImpl) SignImageInternalArgsForCall(i int) (options.RootOptions, options.KeyOpts, options.RegistryOptions, map[string]interface{}, []string, string, bool, string, string, string, bool, bool, string, bool)

func (*FakeImpl) SignImageInternalCallCount

func (fake *FakeImpl) SignImageInternalCallCount() int

func (*FakeImpl) SignImageInternalCalls

func (fake *FakeImpl) SignImageInternalCalls(stub func(options.RootOptions, options.KeyOpts, options.RegistryOptions, map[string]interface{}, []string, string, bool, string, string, string, bool, bool, string, bool) error)

func (*FakeImpl) SignImageInternalReturns

func (fake *FakeImpl) SignImageInternalReturns(result1 error)

func (*FakeImpl) SignImageInternalReturnsOnCall

func (fake *FakeImpl) SignImageInternalReturnsOnCall(i int, result1 error)

func (*FakeImpl) Signatures

func (fake *FakeImpl) Signatures(arg1 oci.SignedEntity) (oci.Signatures, error)

func (*FakeImpl) SignaturesArgsForCall

func (fake *FakeImpl) SignaturesArgsForCall(i int) oci.SignedEntity

func (*FakeImpl) SignaturesCallCount

func (fake *FakeImpl) SignaturesCallCount() int

func (*FakeImpl) SignaturesCalls

func (fake *FakeImpl) SignaturesCalls(stub func(oci.SignedEntity) (oci.Signatures, error))

func (*FakeImpl) SignaturesList

func (fake *FakeImpl) SignaturesList(arg1 oci.Signatures) ([]oci.Signature, error)

func (*FakeImpl) SignaturesListArgsForCall

func (fake *FakeImpl) SignaturesListArgsForCall(i int) oci.Signatures

func (*FakeImpl) SignaturesListCallCount

func (fake *FakeImpl) SignaturesListCallCount() int

func (*FakeImpl) SignaturesListCalls

func (fake *FakeImpl) SignaturesListCalls(stub func(oci.Signatures) ([]oci.Signature, error))

func (*FakeImpl) SignaturesListReturns

func (fake *FakeImpl) SignaturesListReturns(result1 []oci.Signature, result2 error)

func (*FakeImpl) SignaturesListReturnsOnCall

func (fake *FakeImpl) SignaturesListReturnsOnCall(i int, result1 []oci.Signature, result2 error)

func (*FakeImpl) SignaturesReturns

func (fake *FakeImpl) SignaturesReturns(result1 oci.Signatures, result2 error)

func (*FakeImpl) SignaturesReturnsOnCall

func (fake *FakeImpl) SignaturesReturnsOnCall(i int, result1 oci.Signatures, result2 error)

func (*FakeImpl) SignedEntity

func (fake *FakeImpl) SignedEntity(arg1 name.Reference, arg2 ...remote.Option) (oci.SignedEntity, error)

func (*FakeImpl) SignedEntityArgsForCall

func (fake *FakeImpl) SignedEntityArgsForCall(i int) (name.Reference, []remote.Option)

func (*FakeImpl) SignedEntityCallCount

func (fake *FakeImpl) SignedEntityCallCount() int

func (*FakeImpl) SignedEntityCalls

func (fake *FakeImpl) SignedEntityCalls(stub func(name.Reference, ...remote.Option) (oci.SignedEntity, error))

func (*FakeImpl) SignedEntityReturns

func (fake *FakeImpl) SignedEntityReturns(result1 oci.SignedEntity, result2 error)

func (*FakeImpl) SignedEntityReturnsOnCall

func (fake *FakeImpl) SignedEntityReturnsOnCall(i int, result1 oci.SignedEntity, result2 error)

func (*FakeImpl) TokenFromProviders

func (fake *FakeImpl) TokenFromProviders(arg1 context.Context, arg2 *logrus.Logger) (string, error)

func (*FakeImpl) TokenFromProvidersArgsForCall

func (fake *FakeImpl) TokenFromProvidersArgsForCall(i int) (context.Context, *logrus.Logger)

func (*FakeImpl) TokenFromProvidersCallCount

func (fake *FakeImpl) TokenFromProvidersCallCount() int

func (*FakeImpl) TokenFromProvidersCalls

func (fake *FakeImpl) TokenFromProvidersCalls(stub func(context.Context, *logrus.Logger) (string, error))

func (*FakeImpl) TokenFromProvidersReturns

func (fake *FakeImpl) TokenFromProvidersReturns(result1 string, result2 error)

func (*FakeImpl) TokenFromProvidersReturnsOnCall

func (fake *FakeImpl) TokenFromProvidersReturnsOnCall(i int, result1 string, result2 error)

func (*FakeImpl) VerifyFileInternal

func (fake *FakeImpl) VerifyFileInternal(arg1 context.Context, arg2 options.KeyOpts, arg3 string, arg4 string, arg5 string) error

func (*FakeImpl) VerifyFileInternalArgsForCall

func (fake *FakeImpl) VerifyFileInternalArgsForCall(i int) (context.Context, options.KeyOpts, string, string, string)

func (*FakeImpl) VerifyFileInternalCallCount

func (fake *FakeImpl) VerifyFileInternalCallCount() int

func (*FakeImpl) VerifyFileInternalCalls

func (fake *FakeImpl) VerifyFileInternalCalls(stub func(context.Context, options.KeyOpts, string, string, string) error)

func (*FakeImpl) VerifyFileInternalReturns

func (fake *FakeImpl) VerifyFileInternalReturns(result1 error)

func (*FakeImpl) VerifyFileInternalReturnsOnCall

func (fake *FakeImpl) VerifyFileInternalReturnsOnCall(i int, result1 error)

func (*FakeImpl) VerifyImageInternal

func (fake *FakeImpl) VerifyImageInternal(arg1 context.Context, arg2 string, arg3 []string) (*sign.SignedObject, error)

func (*FakeImpl) VerifyImageInternalArgsForCall

func (fake *FakeImpl) VerifyImageInternalArgsForCall(i int) (context.Context, string, []string)

func (*FakeImpl) VerifyImageInternalCallCount

func (fake *FakeImpl) VerifyImageInternalCallCount() int

func (*FakeImpl) VerifyImageInternalCalls

func (fake *FakeImpl) VerifyImageInternalCalls(stub func(context.Context, string, []string) (*sign.SignedObject, error))

func (*FakeImpl) VerifyImageInternalReturns

func (fake *FakeImpl) VerifyImageInternalReturns(result1 *sign.SignedObject, result2 error)

func (*FakeImpl) VerifyImageInternalReturnsOnCall

func (fake *FakeImpl) VerifyImageInternalReturnsOnCall(i int, result1 *sign.SignedObject, result2 error)

Jump to

Keyboard shortcuts

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