registryfakes

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	// contains filtered or unexported fields
}

func NewFakeClient

func NewFakeClient() *FakeClient

func (*FakeClient) AddImage

func (f *FakeClient) AddImage(repoName string, image v1.Image, keychain authn.Keychain)

func (*FakeClient) AddSaveKeychain

func (f *FakeClient) AddSaveKeychain(tag string, keychain authn.Keychain)

func (*FakeClient) Fetch

func (f *FakeClient) Fetch(keychain authn.Keychain, repoName string) (v1.Image, string, error)

func (*FakeClient) Save

func (f *FakeClient) Save(keychain authn.Keychain, tag string, image v1.Image) (string, error)

func (*FakeClient) SavedImages

func (f *FakeClient) SavedImages() map[string]v1.Image

func (*FakeClient) SetFetchError

func (f *FakeClient) SetFetchError(err error)

type FakeKeychain

type FakeKeychain struct {
	Name string
}

func (*FakeKeychain) Resolve

type FakeKeychainFactory

type FakeKeychainFactory struct {
	// contains filtered or unexported fields
}

func (*FakeKeychainFactory) AddKeychainForSecretRef

func (f *FakeKeychainFactory) AddKeychainForSecretRef(t *testing.T, secretRef registry.SecretRef, keychain authn.Keychain)

func (*FakeKeychainFactory) KeychainForSecretRef

func (f *FakeKeychainFactory) KeychainForSecretRef(ctx context.Context, secretRef registry.SecretRef) (authn.Keychain, error)

Jump to

Keyboard shortcuts

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