artifactfakes

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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 {
	ClientSecretStub func(options.OIDCOptions) (string, error)

	CopyStub func(context.Context, oras.ReadOnlyTarget, string, oras.Target, string, oras.CopyOptions) (v1.Descriptor, error)

	FileCloseStub func(*file.Store) error

	FileNewStub func(string) (*file.Store, error)

	FilepathAbsStub func(string) (string, error)

	MkdirTempStub func(string, string) (string, error)

	NewRepositoryStub func(string) (*remote.Repository, error)

	PackManifestStub func(context.Context, content.Pusher, oras.PackManifestVersion, string, oras.PackManifestOptions) (v1.Descriptor, error)

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

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

	ReadProfileStub func([]byte) (client.Object, error)

	RemoveAllStub func(string) error

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

	StoreAddStub func(context.Context, *file.Store, string, string, string) (v1.Descriptor, error)

	StoreTagStub func(context.Context, *file.Store, v1.Descriptor, string) error

	VerifyCmdStub func(context.Context, verify.VerifyCommand, string) error
	// contains filtered or unexported fields
}

func (*FakeImpl) ClientSecret

func (fake *FakeImpl) ClientSecret(arg1 options.OIDCOptions) (string, error)

func (*FakeImpl) ClientSecretArgsForCall

func (fake *FakeImpl) ClientSecretArgsForCall(i int) options.OIDCOptions

func (*FakeImpl) ClientSecretCallCount

func (fake *FakeImpl) ClientSecretCallCount() int

func (*FakeImpl) ClientSecretCalls

func (fake *FakeImpl) ClientSecretCalls(stub func(options.OIDCOptions) (string, error))

func (*FakeImpl) ClientSecretReturns

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

func (*FakeImpl) ClientSecretReturnsOnCall

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

func (*FakeImpl) Copy

func (fake *FakeImpl) Copy(arg1 context.Context, arg2 oras.ReadOnlyTarget, arg3 string, arg4 oras.Target, arg5 string, arg6 oras.CopyOptions) (v1.Descriptor, error)

func (*FakeImpl) CopyArgsForCall

func (*FakeImpl) CopyCallCount

func (fake *FakeImpl) CopyCallCount() int

func (*FakeImpl) CopyCalls

func (*FakeImpl) CopyReturns

func (fake *FakeImpl) CopyReturns(result1 v1.Descriptor, result2 error)

func (*FakeImpl) CopyReturnsOnCall

func (fake *FakeImpl) CopyReturnsOnCall(i int, result1 v1.Descriptor, result2 error)

func (*FakeImpl) FileClose

func (fake *FakeImpl) FileClose(arg1 *file.Store) error

func (*FakeImpl) FileCloseArgsForCall

func (fake *FakeImpl) FileCloseArgsForCall(i int) *file.Store

func (*FakeImpl) FileCloseCallCount

func (fake *FakeImpl) FileCloseCallCount() int

func (*FakeImpl) FileCloseCalls

func (fake *FakeImpl) FileCloseCalls(stub func(*file.Store) error)

func (*FakeImpl) FileCloseReturns

func (fake *FakeImpl) FileCloseReturns(result1 error)

func (*FakeImpl) FileCloseReturnsOnCall

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

func (*FakeImpl) FileNew

func (fake *FakeImpl) FileNew(arg1 string) (*file.Store, error)

func (*FakeImpl) FileNewArgsForCall

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

func (*FakeImpl) FileNewCallCount

func (fake *FakeImpl) FileNewCallCount() int

func (*FakeImpl) FileNewCalls

func (fake *FakeImpl) FileNewCalls(stub func(string) (*file.Store, error))

func (*FakeImpl) FileNewReturns

func (fake *FakeImpl) FileNewReturns(result1 *file.Store, result2 error)

func (*FakeImpl) FileNewReturnsOnCall

func (fake *FakeImpl) FileNewReturnsOnCall(i int, result1 *file.Store, result2 error)

func (*FakeImpl) FilepathAbs

func (fake *FakeImpl) FilepathAbs(arg1 string) (string, error)

func (*FakeImpl) FilepathAbsArgsForCall

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

func (*FakeImpl) FilepathAbsCallCount

func (fake *FakeImpl) FilepathAbsCallCount() int

func (*FakeImpl) FilepathAbsCalls

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

func (*FakeImpl) FilepathAbsReturns

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

func (*FakeImpl) FilepathAbsReturnsOnCall

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

func (*FakeImpl) Invocations

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

func (*FakeImpl) MkdirTemp

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

func (*FakeImpl) MkdirTempArgsForCall

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

func (*FakeImpl) MkdirTempCallCount

func (fake *FakeImpl) MkdirTempCallCount() int

func (*FakeImpl) MkdirTempCalls

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

func (*FakeImpl) MkdirTempReturns

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

func (*FakeImpl) MkdirTempReturnsOnCall

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

func (*FakeImpl) NewRepository

func (fake *FakeImpl) NewRepository(arg1 string) (*remote.Repository, error)

func (*FakeImpl) NewRepositoryArgsForCall

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

func (*FakeImpl) NewRepositoryCallCount

func (fake *FakeImpl) NewRepositoryCallCount() int

func (*FakeImpl) NewRepositoryCalls

func (fake *FakeImpl) NewRepositoryCalls(stub func(string) (*remote.Repository, error))

func (*FakeImpl) NewRepositoryReturns

func (fake *FakeImpl) NewRepositoryReturns(result1 *remote.Repository, result2 error)

func (*FakeImpl) NewRepositoryReturnsOnCall

func (fake *FakeImpl) NewRepositoryReturnsOnCall(i int, result1 *remote.Repository, result2 error)

func (*FakeImpl) PackManifest added in v0.8.1

func (fake *FakeImpl) PackManifest(arg1 context.Context, arg2 content.Pusher, arg3 oras.PackManifestVersion, arg4 string, arg5 oras.PackManifestOptions) (v1.Descriptor, error)

func (*FakeImpl) PackManifestArgsForCall added in v0.8.1

func (*FakeImpl) PackManifestCallCount added in v0.8.1

func (fake *FakeImpl) PackManifestCallCount() int

func (*FakeImpl) PackManifestCalls added in v0.8.1

func (*FakeImpl) PackManifestReturns added in v0.8.1

func (fake *FakeImpl) PackManifestReturns(result1 v1.Descriptor, result2 error)

func (*FakeImpl) PackManifestReturnsOnCall added in v0.8.1

func (fake *FakeImpl) PackManifestReturnsOnCall(i int, result1 v1.Descriptor, 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) ReadFile

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

func (*FakeImpl) ReadFileArgsForCall

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

func (*FakeImpl) ReadFileCallCount

func (fake *FakeImpl) ReadFileCallCount() int

func (*FakeImpl) ReadFileCalls

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

func (*FakeImpl) ReadFileReturns

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

func (*FakeImpl) ReadFileReturnsOnCall

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

func (*FakeImpl) ReadProfile added in v0.8.4

func (fake *FakeImpl) ReadProfile(arg1 []byte) (client.Object, error)

func (*FakeImpl) ReadProfileArgsForCall added in v0.8.4

func (fake *FakeImpl) ReadProfileArgsForCall(i int) []byte

func (*FakeImpl) ReadProfileCallCount added in v0.8.4

func (fake *FakeImpl) ReadProfileCallCount() int

func (*FakeImpl) ReadProfileCalls added in v0.8.4

func (fake *FakeImpl) ReadProfileCalls(stub func([]byte) (client.Object, error))

func (*FakeImpl) ReadProfileReturns added in v0.8.4

func (fake *FakeImpl) ReadProfileReturns(result1 client.Object, result2 error)

func (*FakeImpl) ReadProfileReturnsOnCall added in v0.8.4

func (fake *FakeImpl) ReadProfileReturnsOnCall(i int, result1 client.Object, result2 error)

func (*FakeImpl) RemoveAll

func (fake *FakeImpl) RemoveAll(arg1 string) error

func (*FakeImpl) RemoveAllArgsForCall

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

func (*FakeImpl) RemoveAllCallCount

func (fake *FakeImpl) RemoveAllCallCount() int

func (*FakeImpl) RemoveAllCalls

func (fake *FakeImpl) RemoveAllCalls(stub func(string) error)

func (*FakeImpl) RemoveAllReturns

func (fake *FakeImpl) RemoveAllReturns(result1 error)

func (*FakeImpl) RemoveAllReturnsOnCall

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

func (*FakeImpl) SignCmd

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

func (*FakeImpl) SignCmdArgsForCall

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

func (*FakeImpl) SignCmdCallCount

func (fake *FakeImpl) SignCmdCallCount() int

func (*FakeImpl) SignCmdCalls

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

func (*FakeImpl) SignCmdReturns

func (fake *FakeImpl) SignCmdReturns(result1 error)

func (*FakeImpl) SignCmdReturnsOnCall

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

func (*FakeImpl) StoreAdd

func (fake *FakeImpl) StoreAdd(arg1 context.Context, arg2 *file.Store, arg3 string, arg4 string, arg5 string) (v1.Descriptor, error)

func (*FakeImpl) StoreAddArgsForCall

func (fake *FakeImpl) StoreAddArgsForCall(i int) (context.Context, *file.Store, string, string, string)

func (*FakeImpl) StoreAddCallCount

func (fake *FakeImpl) StoreAddCallCount() int

func (*FakeImpl) StoreAddCalls

func (fake *FakeImpl) StoreAddCalls(stub func(context.Context, *file.Store, string, string, string) (v1.Descriptor, error))

func (*FakeImpl) StoreAddReturns

func (fake *FakeImpl) StoreAddReturns(result1 v1.Descriptor, result2 error)

func (*FakeImpl) StoreAddReturnsOnCall

func (fake *FakeImpl) StoreAddReturnsOnCall(i int, result1 v1.Descriptor, result2 error)

func (*FakeImpl) StoreTag

func (fake *FakeImpl) StoreTag(arg1 context.Context, arg2 *file.Store, arg3 v1.Descriptor, arg4 string) error

func (*FakeImpl) StoreTagArgsForCall

func (fake *FakeImpl) StoreTagArgsForCall(i int) (context.Context, *file.Store, v1.Descriptor, string)

func (*FakeImpl) StoreTagCallCount

func (fake *FakeImpl) StoreTagCallCount() int

func (*FakeImpl) StoreTagCalls

func (fake *FakeImpl) StoreTagCalls(stub func(context.Context, *file.Store, v1.Descriptor, string) error)

func (*FakeImpl) StoreTagReturns

func (fake *FakeImpl) StoreTagReturns(result1 error)

func (*FakeImpl) StoreTagReturnsOnCall

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

func (*FakeImpl) VerifyCmd

func (fake *FakeImpl) VerifyCmd(arg1 context.Context, arg2 verify.VerifyCommand, arg3 string) error

func (*FakeImpl) VerifyCmdArgsForCall

func (fake *FakeImpl) VerifyCmdArgsForCall(i int) (context.Context, verify.VerifyCommand, string)

func (*FakeImpl) VerifyCmdCallCount

func (fake *FakeImpl) VerifyCmdCallCount() int

func (*FakeImpl) VerifyCmdCalls

func (fake *FakeImpl) VerifyCmdCalls(stub func(context.Context, verify.VerifyCommand, string) error)

func (*FakeImpl) VerifyCmdReturns

func (fake *FakeImpl) VerifyCmdReturns(result1 error)

func (*FakeImpl) VerifyCmdReturnsOnCall

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

Jump to

Keyboard shortcuts

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