signfakes

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 11 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

	FindTlogEntryStub func(context.Context, *client.Rekor, string, []byte, []byte) ([]models.LogEntryAnon, error)

	ImagesSignedStub func(context.Context, *sign.Signer, ...string) (*sync.Map, error)

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

	NewWithContextStub func(context.Context, name.Registry, authn.Authenticator, http.RoundTripper, []string) (http.RoundTripper, 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, string, bool, string, string, bool) error

	SignImageInternalStub func(options.RootOptions, options.KeyOpts, options.SignOptions, []string) error

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

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

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

func (*FakeImpl) Digest added in v0.8.0

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

func (*FakeImpl) DigestArgsForCall added in v0.8.0

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

func (*FakeImpl) DigestCallCount added in v0.8.0

func (fake *FakeImpl) DigestCallCount() int

func (*FakeImpl) DigestCalls added in v0.8.0

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

func (*FakeImpl) DigestReturns added in v0.8.0

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

func (*FakeImpl) DigestReturnsOnCall added in v0.8.0

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) FindTlogEntry added in v0.10.2

func (fake *FakeImpl) FindTlogEntry(arg1 context.Context, arg2 *client.Rekor, arg3 string, arg4 []byte, arg5 []byte) ([]models.LogEntryAnon, error)

func (*FakeImpl) FindTlogEntryArgsForCall added in v0.10.2

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

func (*FakeImpl) FindTlogEntryCallCount added in v0.10.2

func (fake *FakeImpl) FindTlogEntryCallCount() int

func (*FakeImpl) FindTlogEntryCalls added in v0.10.2

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

func (*FakeImpl) FindTlogEntryReturns added in v0.10.2

func (fake *FakeImpl) FindTlogEntryReturns(result1 []models.LogEntryAnon, result2 error)

func (*FakeImpl) FindTlogEntryReturnsOnCall added in v0.10.2

func (fake *FakeImpl) FindTlogEntryReturnsOnCall(i int, result1 []models.LogEntryAnon, result2 error)

func (*FakeImpl) ImagesSigned added in v0.9.4

func (fake *FakeImpl) ImagesSigned(arg1 context.Context, arg2 *sign.Signer, arg3 ...string) (*sync.Map, error)

func (*FakeImpl) ImagesSignedArgsForCall added in v0.9.4

func (fake *FakeImpl) ImagesSignedArgsForCall(i int) (context.Context, *sign.Signer, []string)

func (*FakeImpl) ImagesSignedCallCount added in v0.9.4

func (fake *FakeImpl) ImagesSignedCallCount() int

func (*FakeImpl) ImagesSignedCalls added in v0.9.4

func (fake *FakeImpl) ImagesSignedCalls(stub func(context.Context, *sign.Signer, ...string) (*sync.Map, error))

func (*FakeImpl) ImagesSignedReturns added in v0.9.4

func (fake *FakeImpl) ImagesSignedReturns(result1 *sync.Map, result2 error)

func (*FakeImpl) ImagesSignedReturnsOnCall added in v0.9.4

func (fake *FakeImpl) ImagesSignedReturnsOnCall(i int, result1 *sync.Map, result2 error)

func (*FakeImpl) Invocations

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

func (*FakeImpl) NewRekorClient added in v0.9.2

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

func (*FakeImpl) NewRekorClientArgsForCall added in v0.9.2

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

func (*FakeImpl) NewRekorClientCallCount added in v0.9.2

func (fake *FakeImpl) NewRekorClientCallCount() int

func (*FakeImpl) NewRekorClientCalls added in v0.9.2

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

func (*FakeImpl) NewRekorClientReturns added in v0.9.2

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

func (*FakeImpl) NewRekorClientReturnsOnCall added in v0.9.2

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

func (*FakeImpl) NewWithContext added in v0.9.4

func (fake *FakeImpl) NewWithContext(arg1 context.Context, arg2 name.Registry, arg3 authn.Authenticator, arg4 http.RoundTripper, arg5 []string) (http.RoundTripper, error)

func (*FakeImpl) NewWithContextArgsForCall added in v0.9.4

func (fake *FakeImpl) NewWithContextArgsForCall(i int) (context.Context, name.Registry, authn.Authenticator, http.RoundTripper, []string)

func (*FakeImpl) NewWithContextCallCount added in v0.9.4

func (fake *FakeImpl) NewWithContextCallCount() int

func (*FakeImpl) NewWithContextCalls added in v0.9.4

func (fake *FakeImpl) NewWithContextCalls(stub func(context.Context, name.Registry, authn.Authenticator, http.RoundTripper, []string) (http.RoundTripper, error))

func (*FakeImpl) NewWithContextReturns added in v0.9.4

func (fake *FakeImpl) NewWithContextReturns(result1 http.RoundTripper, result2 error)

func (*FakeImpl) NewWithContextReturnsOnCall added in v0.9.4

func (fake *FakeImpl) NewWithContextReturnsOnCall(i int, result1 http.RoundTripper, 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 added in v0.9.2

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

func (*FakeImpl) PayloadBytesArgsForCall added in v0.9.2

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

func (*FakeImpl) PayloadBytesCallCount added in v0.9.2

func (fake *FakeImpl) PayloadBytesCallCount() int

func (*FakeImpl) PayloadBytesCalls added in v0.9.2

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

func (*FakeImpl) PayloadBytesReturns added in v0.9.2

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

func (*FakeImpl) PayloadBytesReturnsOnCall added in v0.9.2

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 added in v0.8.0

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

func (*FakeImpl) SignFileInternalArgsForCall added in v0.8.0

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

func (*FakeImpl) SignFileInternalCallCount added in v0.8.0

func (fake *FakeImpl) SignFileInternalCallCount() int

func (*FakeImpl) SignFileInternalCalls added in v0.8.0

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

func (*FakeImpl) SignFileInternalReturns added in v0.8.0

func (fake *FakeImpl) SignFileInternalReturns(result1 error)

func (*FakeImpl) SignFileInternalReturnsOnCall added in v0.8.0

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

func (*FakeImpl) SignImageInternal

func (fake *FakeImpl) SignImageInternal(arg1 options.RootOptions, arg2 options.KeyOpts, arg3 options.SignOptions, arg4 []string) error

func (*FakeImpl) SignImageInternalArgsForCall

func (fake *FakeImpl) SignImageInternalArgsForCall(i int) (options.RootOptions, options.KeyOpts, options.SignOptions, []string)

func (*FakeImpl) SignImageInternalCallCount

func (fake *FakeImpl) SignImageInternalCallCount() int

func (*FakeImpl) SignImageInternalCalls

func (fake *FakeImpl) SignImageInternalCalls(stub func(options.RootOptions, options.KeyOpts, options.SignOptions, []string) error)

func (*FakeImpl) SignImageInternalReturns

func (fake *FakeImpl) SignImageInternalReturns(result1 error)

func (*FakeImpl) SignImageInternalReturnsOnCall

func (fake *FakeImpl) SignImageInternalReturnsOnCall(i int, result1 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 options.CertVerifyOptions, arg4 string, arg5 string) error

func (*FakeImpl) VerifyFileInternalArgsForCall

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

func (*FakeImpl) VerifyFileInternalCallCount

func (fake *FakeImpl) VerifyFileInternalCallCount() int

func (*FakeImpl) VerifyFileInternalCalls

func (fake *FakeImpl) VerifyFileInternalCalls(stub func(context.Context, options.KeyOpts, options.CertVerifyOptions, 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 options.CertVerifyOptions, arg3 string, arg4 []string, arg5 bool) (*sign.SignedObject, error)

func (*FakeImpl) VerifyImageInternalArgsForCall

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

func (*FakeImpl) VerifyImageInternalCallCount

func (fake *FakeImpl) VerifyImageInternalCallCount() int

func (*FakeImpl) VerifyImageInternalCalls

func (fake *FakeImpl) VerifyImageInternalCalls(stub func(context.Context, options.CertVerifyOptions, string, []string, bool) (*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