fakeimagemetadataprovider

package
v0.1.54 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeImageMetadataProvider

type FakeImageMetadataProvider interface {
	ImageMetadata(ctx context.Context, imageRef string, pullSecret []byte) (*dockerv1client.DockerImageConfig, error)
	GetManifest(ctx context.Context, imageRef string, pullSecret []byte) (distribution.Manifest, error)
	GetDigest(ctx context.Context, imageRef string, pullSecret []byte) (digest.Digest, *reference.DockerImageReference, error)
}

type FakeManifest added in v0.1.53

type FakeManifest struct {
	MediaType string
}

func (*FakeManifest) Payload added in v0.1.53

func (f *FakeManifest) Payload() (string, []byte, error)

func (*FakeManifest) References added in v0.1.53

func (f *FakeManifest) References() []distribution.Descriptor

type FakeRegistryClientImageMetadataProvider added in v0.1.53

type FakeRegistryClientImageMetadataProvider struct {
	MediaType string
	Result    *dockerv1client.DockerImageConfig
	Manifest  FakeManifest
	Digest    string
	Ref       *reference.DockerImageReference
}

func (*FakeRegistryClientImageMetadataProvider) GetDigest added in v0.1.53

func (f *FakeRegistryClientImageMetadataProvider) GetDigest(ctx context.Context, imageRef string, pullSecret []byte) (digest.Digest, *reference.DockerImageReference, error)

func (*FakeRegistryClientImageMetadataProvider) GetManifest added in v0.1.53

func (f *FakeRegistryClientImageMetadataProvider) GetManifest(ctx context.Context, imageRef string, pullSecret []byte) (distribution.Manifest, error)

func (*FakeRegistryClientImageMetadataProvider) GetMetadata added in v0.1.53

func (*FakeRegistryClientImageMetadataProvider) GetOverride added in v0.1.53

func (*FakeRegistryClientImageMetadataProvider) ImageMetadata added in v0.1.53

func (f *FakeRegistryClientImageMetadataProvider) ImageMetadata(ctx context.Context, imageRef string, pullSecret []byte) (*dockerv1client.DockerImageConfig, error)

Jump to

Keyboard shortcuts

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